lair.air#
Winds and polar binning.
wind_components() and wind_direction() convert between a wind’s
speed and direction (the direction it blows from, in degrees clockwise from
north) and its u and v components; rotate_winds() turns HRRR’s
grid-relative components to earth-relative ones. bin_polar() and its
helpers bin data by wind direction into the 16 compass sectors of
WIND_SECTORS, for the polar plots of lair.plotter.
Attributes
The 16 compass sectors used by |
Functions
Bin data into polar coordinates. |
|
Circularize radial data for polar plots. |
|
Rotate HRRR winds from grid to earth coordinates. |
|
Radian values of the 16 direction sectors ( |
|
Calculate the u and v components of the wind. |
|
Convert u and v components to wind direction. |