uataq.sodar.Sodar.get_winds_at_height#
- static Sodar.get_winds_at_height(data, height)[source]#
Extract wind direction and speed at a given height.
The level is matched against
HEIGHTat every timestamp, so the result is correct even if the range gates change withindata. Timestamps without a level atheightare dropped.- Parameters:
data (
Dataset) – SODAR profiles fromread_data()orparse().height (
float) – Height of the range gate, in the units ofHEIGHT(m AGL).
- Returns:
directionandspeedcolumns indexed byTime_UTC.- Return type:
- Raises:
ValueError – If no level is at
heightanywhere indata.