uataq.sodar#

SODAR wind profiles from the Horel group MesoWest archive.

Reads SODAR (SOnic Detection And Ranging) wind-profile data that the Horel group archives as monthly HDF5 files under horel-group/oper/mesowest/sodar_data/hdf5archive:

{SID}_full_metadata_log.h5    station metadata + variable scale factors
{SID}_{YYYY}_{MM}_sodar.h5    one month of profiles

The archive is located through the Horel group space (uataq.filesystem.groupspaces.horel.MESOWEST_DIR); pass mesowest_dir=... to read a copy elsewhere.

SODAR stations are MesoWest stations, not UATAQ sites, so they are not part of the configuration and are read directly with Sodar rather than through uataq.read_data(). Profiles are returned as an xarray.Dataset with dimensions (Time_UTC, level).

Examples

The examples read the archive, so the tests do not run them. A station has files for some months only (USDR1 has none for 2019): a range with no file raises FileNotFoundError.

>>> from uataq.sodar import Sodar
>>> sodar = Sodar("USDR1")
>>> data = sodar.read_data(time_range=["2021-01-01", "2021-01-31"])
>>> winds = Sodar.get_winds_at_height(data, height=100)

Attributes

NODATA

Horel group NoData value in the SODAR archive.

Functions

list_stations

List the SODAR station IDs available in the archive.

Classes

Sodar

Horel group SODAR wind profiler.