uataq.filesystem.groupspaces.lin.LGR_UGGA_File#

class uataq.filesystem.groupspaces.lin.LGR_UGGA_File(path)[source]#

Bases: DataFile

A class for parsing LGR UGGA data files.

Variables:
  • path (str) – The file path.

  • period (pd.Period) – The period of the data file.

  • logger (str) – The logger name.

  • serial (str) – The analyzer’s serial number (SN in the header).

  • version (str) – The analyzer’s software version (VC in the header).

  • meta (dict[str, str]) – The header’s values by key: VC, BD and SN.

  • file_freq (str) – The file frequency.

  • ext (str) – The file extension.

__init__(path)[source]#

Initialize the DataFile object.

Determines the period of the data file from the file name.

Parameters:

path (str) – The file path.

Attributes

max_utc_shift

The most the conversion moves a time later, that of Mountain standard time (UTC-7).

name_date_formats

The two ways the LGR software has named its files, matched on the name itself rather than looked up by software version, so a new version that keeps either style needs no change: gga01Apr2014_f0000.txt (904M, WBB 2014-2016) and gga_2015-11-17_f0000.txt (2f90039, cf32204).

utc_clock_switch

The day the analyzers' clocks were switched from Mountain time to UTC, as (start, stop).

Methods

get_files(SID[, instrument, lvl, time_range])

Get list of UGGA files for a given site.

get_meta(path)

Get meta data from UGGA file

get_serial(path)

Get serial number of UGGA from file.

parse()

Parse files transferred directly from LGR software.