| Description | Perl tools for X-ray Absorption Spectroscopy |
Demeter::Plugin::SRS - Import data from the XAS beamlines at the old SRS at Daresbury
This documentation refers to Demeter version 0.9.26.
This plugin converts monochromator angle into from millidegrees to energy and (as needed) disentangles the confusing layout of data from a multi-element detector, writing out a file that can easily be imported by Athena.
isRecognize the SRS file by the first line, which contains the string "&SRS".
fixConvert the angle column to energy and disentangle lines from the multi-element detector for files that contain them.
The file is lexically analyzed to determine whether it contains scalars from the multi-element detector. The SRS data aquisition system writes MED data spread out over several lines of text in the data file. (Which is very perverse!) The MED channels are written 4 to a line, using as many lines as necessary to write all the channels. A 9 element detector requires 3 additional lines per data point. A 32 element detector requires 8 additional lines. Data files not containing scalars from the MED do not have these additional lines.
Thanks to Qingping Wu, who providing some sample transmission data from DUBBLE, and to Eric Breynaert, who provided both some sample fluorescence data and an example conversion script which included the value of the monochromator lattice constant used at DUBBLE.
This plugin assumes the mono lattice constant is 3.13543, i.e. Si(111). Should SRS data ever turn up needing another lattice constant, that will need to become a configurable parameter.
This has been tested with 9 and 32 element data from SRS and with 9 element data from DUBBLE.
Does this still work with non-MED DUBBLE data?
Not tested against non-MED SRS data.
SRS data with C lines following the header. I need a real example of this sort of data -- the one I have does not appear to be XAS data.
Bruce Ravel L<http://bruceravel.github.io/home>
http://bruceravel.github.io/demeter
Athena copyright (c) 2001-2018