uataq.sodar.Sodar.parse#

static Sodar.parse(file, variables)[source]#

Parse a single SODAR HDF5 file into an xarray Dataset.

NoData (-9999) becomes NaN and each variable listed in variables is divided by its MULT scale factor.

Parameters:
  • file (str) – Path to a {SID}_{YYYY}_{MM}_sodar.h5 file.

  • variables (DataFrame) – Variable metadata indexed by SHORTNAME with a MULT column (Sodar.variables).

Returns:

STATION_ID on Time_UTC and one (Time_UTC, level) variable per profile field (e.g. HEIGHT, WD, WS).

Return type:

Dataset