Demeter

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

NAME

Demeter::Plugin::DUBBLE - Import data from the DUBBLE beamline at ESRF

VERSION

This documentation refers to Demeter version 0.9.26.

SYNOPSIS

This plugin converts monochromator angle into from millidegrees to energy and (as needed) disentanlges the confusing layout of data from the multi-element detector, writing out a file that can easily be imported by Athena.

Methods

is

Recognize the DUBBLE file by the first line, which contains the string "&SRS", and a subsequent header line, which contains the string "dubble".

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. DUBBLE writes MED data spread out over four lines of text in the data file. (Which is very perverse!) Data files not containing scalars from the MED do not have these additional lines. So a file containing MED data is recognized by the fact that the first number on each line is not monotonically decreasing. This filter examines the first forty lines of data. When it finds the situation of the first number not being monotonically decreasing (which it should be as data are stored as a function of mono angle in millidegrees), the file is assumed to contain MED data and is processed accordingly.

Note that this filter assumes that the MED data is spread out over three additional lines. Apparently DUBBLE uses a 9-element detector. At most, four MED scalars are written per line, thus it takes three additional lines to record the MED data. Should DUBBLE ever use a different detector, a more clever lexical analysis will be required to determine the number of MED channels.

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