arlmet.RecordSet#

class arlmet.RecordSet(file, position, time, *, forecast=None)[source]#

Records for one valid time within an ARL file.

Parameters:
  • file (File) – Parent ARL file handle.

  • position (int) – Byte offset of the index record on disk, or -1 for a new writable record set.

  • time (Timestamp) – Valid time represented by the record set.

  • forecast (int | None) – Forecast hour stored in the index record header.

Variables:
  • file (File) – Parent ARL file.

  • position (int) – Byte offset of the index record.

  • time (pandas.Timestamp) – Valid time of the record set.

  • forecast (int or None) – Forecast hour associated with the index record.

  • variables (VariableAccessor) – Lazy variable accessor inherited from RecordCollection.

Attributes

grid

RecordSet file grid

mode

Access mode of the record set, inferred from the position.

record_length

Record length in bytes for this record set, derived from the file grid.

records

List of DataRecords in this record set.

source

RecordSet file source

vertical_axis

RecordSet file vertical axis

Methods

create_datarecord(variable, level, *, forecast)

Create a writable DataRecord attached to this time step.