Dariusz, One other reasonable solution to this problem is to request that your beamline owner change their file naming scheme to truly name the file something like "scan_0001rXXX, where the XXX is the scan number and it is padded with zeros... Such as: scan_0001r001.dat, then all problems with lexigraphical ordering in Windows and other platforms is solved because scan_0001r001.dat will then be listed before scan_0001r010.dat in the file list. As a result, programs that import lists of files (not just Athena) will then be able to handle multiple files in the manner that you expect. Dave _________________________________ David Barton The Dow Chemical Company Catalysis R&D -----Original Message----- From: ifeffit-bounces@millenia.cars.aps.anl.gov [mailto:ifeffit-bounces@millenia.cars.aps.anl.gov] On Behalf Of Dominik Samuelis Sent: Friday, February 22, 2008 5:52 AM To: ifeffit@millenia.cars.aps.anl.gov Subject: [Ifeffit] sorting files in Athena Hi Dariusz,
I use Iffefit under Win XP, and every time when I open (import) more files I have them in such order: 1, 11, 12, 13, ... , 19, 2, 20, 21, 22, ... , 29, 3, 30, 31 ... etc. So, my question is if there is some "hidden" way to sort automatically files during importing or in the menue. Do you know something about? Is the sorting lexigraphical (from Windows)?
this is a typical problem with the Windows file selection dialog. Windows always puts the file, which is currently selected, at the first position of the files list. Now, when you're shift-clicking on your last file, you automatically select this one. That's why file 31 is in first position. The easiest workaround for this issue is to select your files backwards, i.e. first click on file 31, then shift-click on file 1. Now, with HASYLAB files, it gets a little more complicated, due to filenames like scan_00001rxx, where xx is the scan number during a QEXAFS scan. I usually just open them in two chunks, one with xx=1-9 and then xx=10-99. This way, you can use the lexical sorting of Windows. Cheers, dominik -- Dipl.-Ing. Dominik Samuelis samuelis@pc.rwth-aachen.de Physikalische Chemie I RWTH Aachen University Phone: +49-241-80-94840 Fax: +49-241-80-92128 Landoltweg 2 52074 Aachen Germany _______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit