[Ifeffit] Bug Report: incomplete data import in Athena when energy is given in keV

Voegelin, Andreas Andreas.Voegelin at eawag.ch
Thu Oct 25 04:39:52 CDT 2018


Dear Bruce & Ifeffit Mail-List

Working with Athena (executable Version 0.9.26 with Ifeffit 1.2.12 on Windows 10), I just noted a problem with data import when energy in the input file is given in keV.

Attached an example of recently collected Ce L3 edge data (original_format.txt), with the energy in keV in the first column and the DT-corrected and normalized fluorescence signal in column 44. The file contains 2 header rows and 308 lines of data. When this spectrum is loaded into Athena, it consists of only 186 instead of 308 datapoints (see information on spectrum “original_format,.txt” in Athena project file “test_bug_data_import_in_keV.prj”).  The problem also persisted when I reduced the input file to only two columns, energy and fluorescence data, and seemed not related to file size. The problem occurs on various computers all running with the latest version of Athena.

Interestingly, the problem does not occur if the energy in the original file is given in eV instead of keV.  From the original file, I created an input file “test_energy_in_keV_eV.txt” in which columns 1 and 4 contain the energy in keV and columns 2 and 5 the energy in eV. When I import the spectrum using any of the columns with energy in eV, the spectrum is loaded correctly and consist of 308 datapoints.  If I use any of the two columns with energy in keV, the imported spectrum again contains only 186 datapoints.

Comparing the mue output files of the spectra read in eV and keV (mue files attached), one can see that incomplete data import starts at 5703 eV, i.e., where the step size in the scan was changed from 2 eV to 0.5 eV.  Notably, if I select column 5 containing the energy in eV, but tell Athena that the energy is in keV and needs to be converted to eV, Athena loads all 308 datapoints (although with obviously wrong energy scale). This might suggest that the problem is related to the absolute difference in energy between datapoints rather than to the conversion from keV to eV.

I tested also other data collected at the Mn K and Tl L3 edges and the problem is the same.

For the moment, the easiest work-around may be to reprocess all input files by adding a column with energy in eV.  If an easy fix could be found for correct data import in Athena, however, this would be helpful.

Best regards, Andreas

°°° °°° °°° °°° °°° °°° °°° °°° °°° °°° °°° °°° °°° °°° °°° °°° °°° °°° °°° °°° °°°

Andreas Voegelin, PhD
Eawag - Swiss Federal Institute of Aquatic Science and Technology
Ueberlandstrasse 133, CH-8600 Duebendorf, Switzerland
Tel: +41 58 765 54 70
Fax: +41 58 765 52 10
mailto:andreas.voegelin at eawag.ch
http://www.eawag.ch/~voegelan





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://millenia.cars.aps.anl.gov/pipermail/ifeffit/attachments/20181025/81a9e343/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_energy_in_keV_eV.txt_energy_from_col2_in_eV.xmu
Type: application/octet-stream
Size: 48291 bytes
Desc: test_energy_in_keV_eV.txt_energy_from_col2_in_eV.xmu
URL: <http://millenia.cars.aps.anl.gov/pipermail/ifeffit/attachments/20181025/81a9e343/attachment-0003.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: original_format.txt
URL: <http://millenia.cars.aps.anl.gov/pipermail/ifeffit/attachments/20181025/81a9e343/attachment-0002.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test_energy_in_keV_eV.txt
URL: <http://millenia.cars.aps.anl.gov/pipermail/ifeffit/attachments/20181025/81a9e343/attachment-0003.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_bug_data_import_in_keV.prj
Type: application/octet-stream
Size: 7412 bytes
Desc: test_bug_data_import_in_keV.prj
URL: <http://millenia.cars.aps.anl.gov/pipermail/ifeffit/attachments/20181025/81a9e343/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_energy_in_keV_eV.txt_energy_from_col1_in_keV.xmu
Type: application/octet-stream
Size: 29829 bytes
Desc: test_energy_in_keV_eV.txt_energy_from_col1_in_keV.xmu
URL: <http://millenia.cars.aps.anl.gov/pipermail/ifeffit/attachments/20181025/81a9e343/attachment-0005.obj>


More information about the Ifeffit mailing list