pynxxas.io.xas_beamlines#

Classes for handling XAFS data in plaintext column files for various beamlines.

Basically, a class for XAFS Beamline data. This defines
  1. how to name the arrays for columns in the data file

  2. which column is most likely to hold the energy (or energy-definig) array

  3. what the energy units are most likely to be.

Specific beamline data should define a class that derives from GenericBeamlineData and has the following attributes/methods:

energy_column : int index for default energy column

energy_units : str (‘eV’, ‘keV’, ‘deg’) for default expected energy units

beamline_matches(): method to decide whether data may be from the beamline

should give more false positives than false negatives.

get_array_labels(): method to guess array labels.

The XXX__BeamlineData class will be given only the headerlines (a list of lines) from the text file.

By default, that header will defined all the text before the data table.

Functions

guess_beamline([header])

guess beamline data class used to parse headers from header lines

Classes

APS12BM_BeamlineData([headerlines])

APS sector 12BM data

APSGSE_BeamlineData([headerlines])

GSECARS EpicsScan data, APS 13ID, some NSLS-II XFM 4BM data

APSMRCAT_BeamlineData([headerlines])

APS sector 10ID or 10BM data

APSXSD_BeamlineData([headerlines])

APS sector 20ID, 20BM, 9BM

CLSHXMA_BeamlineData([headerlines])

CLS HXMA beamline data

GenericBeamlineData([headerlines])

Generic beamline data file - use as last resort

KEKPF_BeamlineData([headerlines])

KEK-PF (Photon Factory Data), as from BL12C

NSLSXDAC_BeamlineData([headerlines])

NSLS (I) XDAC collected data

SSRL_BeamlineData([headerlines])

SSRL EXAFS Data Collect beamline data