Unwanted rescaling of energy axis when importing ascii file into Athena (Demeter 0.9.26)
Hello, I am reporting an apparent bug in Athena (Demeter 0.9.26, Windows 10). When I import high energy resolution XAS data from an ascii file, the energy axis is automatically rescaled to 1.2eV step size, thus drastically reducing the resolution of the data. When the imported data has energy steps larger than 1.2eV, no rescaling occurs. This issue may be similar to the one reported in March 2018 under the topic "Athena (Demeter 0.9.26) does not import all datapoints from ascci file". However, the issue I am seeing always results in 1.2eV steps in the imported data. If my original file hast 0.3eV steps, the number of points is reduced by a factor of 4. If it has 0.6eV steps, the number of points is reduced by a factor of 2. I couldn't find any option to switch this recaling on / off, or to change the target energy step size. The problem does not occur with Demeter 0.9.25. Attached please find two screenshots of the data import dialog for both versions of Demeter. The plots show the difference in energy scale. I also attached the original data file "no_rebin.dat" as well as spectra exported from both Demeter versions, one of them showing the 1.2eV steps. Thank you and all the best, Lukas -- Lukas Grote University of Hamburg Center for Hybrid Nanostructures Institute for Nanostructures and Solid State Physics Luruper Chaussee 149, Bld. 600, Room 2.62 22761 Hamburg Germany +49 40 42838 1614
Hi, I switched your data from keV to eV before importing, and that does not have the same issue. -R. On 2019-01-09 6:35 a.m., Lukas Grote wrote:
Hello,
I am reporting an apparent bug in Athena (Demeter 0.9.26, Windows 10). When I import high energy resolution XAS data from an ascii file, the energy axis is automatically rescaled to 1.2eV step size, thus drastically reducing the resolution of the data. When the imported data has energy steps larger than 1.2eV, no rescaling occurs.
This issue may be similar to the one reported in March 2018 under the topic "Athena (Demeter 0.9.26) does not import all datapoints from ascci file". However, the issue I am seeing always results in 1.2eV steps in the imported data. If my original file hast 0.3eV steps, the number of points is reduced by a factor of 4. If it has 0.6eV steps, the number of points is reduced by a factor of 2.
I couldn't find any option to switch this recaling on / off, or to change the target energy step size.
The problem does not occur with Demeter 0.9.25. Attached please find two screenshots of the data import dialog for both versions of Demeter. The plots show the difference in energy scale. I also attached the original data file "no_rebin.dat" as well as spectra exported from both Demeter versions, one of them showing the 1.2eV steps.
Thank you and all the best, Lukas
-- Lukas Grote
University of Hamburg Center for Hybrid Nanostructures Institute for Nanostructures and Solid State Physics Luruper Chaussee 149, Bld. 600, Room 2.62 22761 Hamburg Germany
+49 40 42838 1614
_______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit Unsubscribe: http://millenia.cars.aps.anl.gov/mailman/options/ifeffit
Lukas, A mistake is made related to the keV units in the first column of your data file. This mistake is made only with the Ifeffit backend and only for data with keV energy units. The Larch backend does not suffer from this problem. Nor do data files with eV energy units. I just checked a fix for this into github. I hope to make a new windows release sometime soon ... it will have this fix. Two possible work-arounds: 1. Use data files with eV energy units. The problem only effects data measured in keV units. 2. If you cannot wait for a new Windows release, I can explain how to modify the relevant source code file to correct the mistake. It would involve editing 3 lines of a file installed on your computer. B On 01/09/2019 09:35 AM, Lukas Grote wrote:
Hello,
I am reporting an apparent bug in Athena (Demeter 0.9.26, Windows 10). When I import high energy resolution XAS data from an ascii file, the energy axis is automatically rescaled to 1.2eV step size, thus drastically reducing the resolution of the data. When the imported data has energy steps larger than 1.2eV, no rescaling occurs.
This issue may be similar to the one reported in March 2018 under the topic "Athena (Demeter 0.9.26) does not import all datapoints from ascci file". However, the issue I am seeing always results in 1.2eV steps in the imported data. If my original file hast 0.3eV steps, the number of points is reduced by a factor of 4. If it has 0.6eV steps, the number of points is reduced by a factor of 2.
I couldn't find any option to switch this recaling on / off, or to change the target energy step size.
The problem does not occur with Demeter 0.9.25. Attached please find two screenshots of the data import dialog for both versions of Demeter. The plots show the difference in energy scale. I also attached the original data file "no_rebin.dat" as well as spectra exported from both Demeter versions, one of them showing the 1.2eV steps.
Thank you and all the best, Lukas
-- Lukas Grote
University of Hamburg Center for Hybrid Nanostructures Institute for Nanostructures and Solid State Physics Luruper Chaussee 149, Bld. 600, Room 2.62 22761 Hamburg Germany
+49 40 42838 1614
_______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit Unsubscribe: http://millenia.cars.aps.anl.gov/mailman/options/ifeffit
-- Bruce Ravel ------------------------------------ bravel@bnl.gov National Institute of Standards and Technology Synchrotron Science Group at NSLS-II Lead Beamline Scientist, 6BM (BMM) Building 743, Room 114 Upton NY, 11973 Homepage: http://bruceravel.github.io/home/ Beamline: https://www.bnl.gov/ps/beamlines/beamline.php?r=6-BM Software: https://github.com/bruceravel Demeter: http://bruceravel.github.io/demeter/
participants (3)
-
Lukas Grote
-
Ravel, Bruce
-
Robert Gordon