> Hi there
>
> I've been using JMol

Please say "Jmol" instead of "JMol" ... lower case M

There is another project known as 'JMol'

> for about a year for visualising XYZ files and it
> works great but once in a while I come across a file I can't open. They
> are usually rather big (>50,000 atoms) but some are actually a lot
> smaller (<5000 atoms). This is what the console says:
>
> <console>
> FileManager.openFile(C:\Program Files\JMol\sb4394.xyz)
> SmarterJmolAdapter:The Resolver thinks:Xyz
> openFile(C:\Program Files\JMol\sb4394.xyz) 141 ms
> Exception in thread "Thread-6" java.lang.ArrayIndexOutOfBoundsException:
> 64

[snip]

> Does anyone have an idea?

This is a bug that has been fixed.

I do not recall all the details, but I believe it had to do with a
relatively large number of atoms with exactly the same coordinate value
along one or more dimensions.

> There is of course the possibility that
> these files are corrupt but all my XYZ files are created by the same
> programme and they usually work fine. Btw I'm using JMol 10.00 and Java
> 1.5.0_04 on Windows XP.

This works in the 'prerelease' development version of Jmol. It can be
downloaded from

   www.jmol.org/files

> Here are two examples which don't work for me:
> http://www2.phys.canterbury.ac.nz/~muk10/sb4394.xyz (180kB)
> http://www2.phys.canterbury.ac.nz/~muk10/sb71104.xyz (3MB!)

These files both work fine with Jmol Version 10.00.18

If you are regularly working with large files, you may want consider
compressing them with gzip. Jmol will automatically recoginze the fact
that they are compressed and will decompress them. File extension does not
matter, so sb71104.xyz -> sb71104.xyz.gz is fine.



Miguel



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to