Open srio opened 3 years ago
Hi Manolo,
Thanks for reporting this issue. I am currently planning on making a new release of xraylib this weekend or next week, and I don't have time to look into this before I do that.
This bug will be quite a bit of work to investigate and fix as the scripts I used to scrape the NIST server and process need to be rewritten from the current mix of Perl and IDL to Python...
Thanks a lot Tom, I think the problem would be more on the data treatment rather than in the download. I compared more elements and there are differences, also at the edges. We can wait, no problem. Just if it helps, I made a python script to retrieve the data: https://github.com/srio/shadow3-scripts/blob/master/NIST/retrieve.py and create a DABAX file: http://ftp.esrf.fr/pub/scisoft/DabaxFiles/MassEnergyAbsorption_NIST.dat
Cheers, M
Dear Tom,
we have discovered some inconsistencies with the data given by CS_Energy() compared with the NIST data (https://physics.nist.gov/PhysRefData/XrayMassCoef/tab3.html). I think NIST is the origin of the xraylib data for this function, therefore it looks like a bug. We tried Be and C. I attach the script I used to create it.
What do you think? May be a problem reading/interpolating the original data? Thanks a lot, Manolo