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 HEIGHT at every timestamp, so the result is correct even if the range gates change within data. Timestamps without a level at height are dropped.

Parameters:
Returns:

direction and speed columns indexed by Time_UTC.

Return type:

DataFrame

Raises:

ValueError – If no level is at height anywhere in data.