arlmet.VerticalAxis#

class arlmet.VerticalAxis(levels, *, offset=0.0)[source]#

Abstract base class for ARL vertical coordinate axes.

Use from_flag() to construct from a raw ARL flag integer, or instantiate a subclass directly (e.g. PressureAxis(levels=[...])).

Parameters:
  • levels (sequence of float) – Native level values stored in the file.

  • offset (float, default 0.0) – Pressure offset used by sigma and hybrid coordinate conversions.

Methods

VerticalAxis.__init__(levels, *[, offset])

VerticalAxis.calculate_coords()

Return the native level coordinate values stored in the file.

VerticalAxis.from_flag(flag, levels, *[, offset])

Construct the appropriate subclass from an ARL vertical flag.

VerticalAxis.to_height_agl(**kwargs)

Compute height above ground level [m] at each level.

VerticalAxis.to_pressure(**kwargs)

Compute pressure [hPa] at each level.

Attributes

VerticalAxis.levels

VerticalAxis.flag

VerticalAxis.coord_system