flowdata: Flow data parser

The flowdata parser handles the reading and processing of flow meter data. Files parsed through this parser are guaranteed to contain the "flow" entry in the derived keys.

Usage

The use of flowdata can be specified using the "parser" keyword in the schema. The allowed list of "parameters" is a subset of that available for basiccsv:

  • "filetype" (str): The file type of the raw data file. See here for details.

  • "calfile" (str): A calibration file in a json format.

  • "convert" (dict): Calibration/conversion specification in a dictionary, overrides that provided in "calfile". The processing of the combined calibration is handled in yadg.parsers.basiccsv.process_row().

  • "date" (str): Optional date specification for the DryCal parser.

Provides

The parser is used to extract all tabular data in the input file, storing them in the "raw" entry, using the column headers as keys.

The "metadata" section currently stores all metadata available from the flowdata files.

The flowdata parser automatically assigns a best-guess value to "flow" in the "derived" keys. This behaviour can be modified by supplying either the "calfile" and/or "convert".

This parser processes calibration information analogously to basiccsv, storing the results in the "derived" entry.