slv.meteorology.mesowest#
MesoWest surface observations for the SLV sites.
Reads the hourly station archives staged under $SLV_USER_DATA_DIR/mesowest:
synoptic/: our own Synoptic API pull (lair.synoptic; stations near the TRAX sources, Dec 2014 -> present;meteorology/data/mesowest/synoptic_pull), withhourly/files and astations.csv. Used whenever it has the station.hourly/: the fixedjohn_datapull (96 stations, 2015-01 -> 2025-09-30), withstations_metadata.csv.
Each station is one parquet file of hourly values with a Time column in UTC; the
columns vary by station, but wind speed, wind direction and air temperature are
near-universal. Wind direction is always returned as the direction of the hourly
vector-mean wind (from Uwind/Vwind): the john_data files store an arithmetic
mean of degrees, which is wrong whenever an hour straddles north.
Functions
Station code, name, latitude, longitude and elevation for the archived stations. |
|
The staged MesoWest directory, |
|
The archived station closest to a point, as |
|
Hourly observations for one station, indexed by |
|
Compass sector label (N, NNE, ...) for a wind direction in degrees. |