uataq.filesystem.groupspaces.horel.HorelGroup.get_datafiles#

HorelGroup.get_datafiles(SID, instrument, lvl, logger, time_range, pattern=None)[source]#

Return a list of data files for a given level and time range.

Extends DataFile.get_datafiles by supplying the instrument name to the DataFile subclass. A raw read also takes the month’s .h5_prior405upgrade file, for every instrument but the ES405 (see PRIOR_405_SUFFIX).

Parameters:
  • SID (str) – The site ID.

  • instrument (str) – The instrument name.

  • lvl (str) – The data level.

  • logger (str) – The logger name.

  • time_range (TimeRange) – The time range.

  • pattern (str | None) – The pattern to match file names.

Returns:

A list of data files.

Return type:

list[DataFile]