uataq.filesystem.groupspaces.horel.HorelFile#

class uataq.filesystem.groupspaces.horel.HorelFile(path, instrument)[source]#

Bases: DataFile

Abstract base class for Horel data files.

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

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

  • logger (str) – The logger name.

  • date_slicer (slice) – A slice object to extract the date from the file name.

  • file_freq (str) – The file frequency.

  • ext (str) – The file extension.

  • time_col (str) – The time column name.

  • instrument (str) – The instrument name.

  • es642_column_dates (TimeRange or None) – For an ES405 file: when the file’s ES642-named columns are the ES405’s (the instrument’s config es642_column_dates for this group, set by MetOne_ES405.get_datafiles). None takes none of them.

__init__(path, instrument)[source]#

Initialize a HorelFile subclass object.

The instrument parameter is used to filter columns based on the instrument name.

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

  • instrument (str) – The instrument name - used to filter columns.

Methods

coerce_numeric(data[, exclude])

Coerce columns to numeric.

convert_nodata(data[, nodata])

Convert NoData values to NaN.

format_time(data, **kwargs)

Format the time column in the data DataFrame.

usecols(col)

Check if a column should be used based on the instrument.

Inherited

From DataFile: parse