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
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
Dear Dave, that's good idea - but then you have to ask every beamline owner to change the file names, at each synchrotron... and it will not help if you want to sort groups later ;) the another problem is with the length of files, can you imagine the file name such as myfilename_elem_edge_temp_date_XXXXXrXXX.dat or longer? ;) greetings darek BTW I am a "beamline owner"
-----Original Message----- From: ifeffit-bounces@millenia.cars.aps.anl.gov [mailto:ifeffit-bounces@millenia.cars.aps.anl.gov] On Behalf Of Barton, David (DG) Sent: Friday, February 22, 2008 2:21 PM To: XAFS Analysis using Ifeffit Subject: Re: [Ifeffit] sorting files in Athena
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
_______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
Darius,
but then you have to ask every beamline owner to change the file names, at each synchrotron...
Not necessarily, it really only applies to those generating 10's or 100's of scans such as scanning in QEXAFS mode. Not to mention that it is already implemented in many beamlines that had the foresight on this issue and implemented a solution when the beamlines were first created. :-) However, I do agree that some level of group cut/paste could be helpful in Athena. 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 Zajac, Dariusz Sent: Friday, February 22, 2008 8:38 AM To: XAFS Analysis using Ifeffit Subject: Re: [Ifeffit] sorting files in Athena Dear Dave, that's good idea - but then you have to ask every beamline owner to change the file names, at each synchrotron... and it will not help if you want to sort groups later ;) the another problem is with the length of files, can you imagine the file name such as myfilename_elem_edge_temp_date_XXXXXrXXX.dat or longer? ;) greetings darek BTW I am a "beamline owner"
-----Original Message----- From: ifeffit-bounces@millenia.cars.aps.anl.gov [mailto:ifeffit-bounces@millenia.cars.aps.anl.gov] On Behalf Of Barton, David (DG) Sent: Friday, February 22, 2008 2:21 PM To: XAFS Analysis using Ifeffit Subject: Re: [Ifeffit] sorting files in Athena
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
_______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
_______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
but then you have to ask every beamline owner to change the file names, at each synchrotron...
Not necessarily, it really only applies to those generating 10's or 100's of scans such as scanning in QEXAFS mode. Not to mention that it is already implemented in many beamlines that had the foresight on this issue and implemented a solution when the beamlines were first created. :-) However, I do agree that some level of group cut/paste could be helpful in Athena.
I am willing to go out on a limb and state in a public forum that the people who run beamlines and write data acquisition software have a responsibility to their users to think hard about the decisions they make, acknowledging that even the smallest detail may end up being important to someone. Darek's problem is *not* an Athena-specific problem. It is both well-known and correct to state that numbers should be zero-padded if sorting strings containing those numbers should be the same when done numerically as alphabetically. Athena is hardly the only program that would order these files other than how Darek wanted them. The beamlines DAQ software shares responsibility for this failure of Athena. You could argue that Athena should consider file time stamp when ordering files as they are read in, but sorting alphabetically is a valid and unsurprising choice. That Athena should be more flexible in resorting the data in the group list is a completely valid feature request and will get my attention. All that said, I agree with Dan. If there is a problem at the beamline, the user has a right to complain loudly (but politely, of course). Oh, and I, too, am a "beamline owner". B -- Bruce Ravel ----------------------------------- bravel@bnl.gov National Institute of Standards and Technology Synchrotron Methods Group at Brookhaven National Laboratory Building 535A Upton NY, 11973 My homepage: http://cars9.uchicago.edu/~ravel EXAFS software: http://cars9.uchicago.edu/~ravel/software/exafs/
participants (4)
-
Barton, David (DG)
-
Dominik Samuelis
-
Ravel, Bruce
-
Zajac, Dariusz