yadg.extractors.public.agilent package

Submodules

yadg.extractors.public.agilent.ch.extract(*, fn, timezone, **kwargs)

Agilent OpenLAB signal trace parser

One chromatogram per file with a single trace. Binary data format.

Parameters:
  • fn (str) – Filename to process.

  • encoding – Not used as the file is binary.

  • timezone (str) – Timezone information. This should be "localtime".

Returns:

class – A datatree.DataTree containing one xarray.Dataset per detector. As there is only one detector data in each CH file, this nesting is only for consistency with other filetypes.

Return type:

datatree.DataTree

yadg.extractors.public.agilent.csv.extract(*, fn, encoding, timezone, **kwargs)

Agilent Chemstation CSV (Chromtab) file parser

Each file may contain multiple chromatograms per file with multiple traces. Each chromatogram starts with a header section, and is followed by each trace, which includes a header line and x,y-data.

Parameters:
  • fn (str) – Filename to process.

  • encoding (str) – Encoding used to open the file.

  • timezone (str) – Timezone information. This should be "localtime".

Returns:

class – A datatree.DataTree containing one xarray.Dataset per detector. As When multiple timesteps are present in the file, the traces of each detector are expanded to match the longest trace, and collated along the uts-dimension.

Return type:

datatree.DataTree

yadg.extractors.public.agilent.dx.extract(*, fn, encoding, timezone, **kwargs)

Agilent OpenLab DX archive parser.

This is a simple wrapper around the Agilent OpenLab signal trace parser in yadg.parsers.chromtrace.agilentch. This wrapper first un-zips the DX file into a temporary directory, and then processess all CH files found within the archive, concatenating timesteps from multiple files.

Parameters:
  • fn (str) – Filename to process.

  • encoding (str) – Not used as the file is binary.

  • timezone (str) – Timezone information. This should be "localtime".

Returns:

class – A datatree.DataTree containing one xarray.Dataset per detector. If multiple timesteps are found in the zip archive, the datatree.DataTrees are collated along the uts dimension.

Return type:

datatree.DataTree