Demeter

Description Perl tools for X-ray Absorption Spectroscopy
Demeter > Perl Modules > Demeter::Plugins::SRS
Source

NAME

Demeter::Plugin::SRS - Import data from the XAS beamlines at the old SRS at Daresbury

VERSION

This documentation refers to Demeter version 0.9.26.

SYNOPSIS

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.

Methods

is

Recognize the SRS file by the first line, which contains the string "&SRS".

fix

Convert 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.

ACKNOWLEDGMENTS

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.

BUGS AND LIMITATIONS

AUTHOR

  Bruce Ravel L<http://bruceravel.github.io/home>
  http://bruceravel.github.io/demeter
  Athena copyright (c) 2001-2018