lair.air.rotate_winds#
- lair.air.rotate_winds(u, v, lon)[source]#
Rotate HRRR winds from grid to earth coordinates.
Note
Based on https://rapidrefresh.noaa.gov/faq/HRRR.faq.html Modified from https://gist.github.com/fischcheng/411d0bafe7762e6b5d7b1233b625a2bb
- Parameters:
u (np.array) – u component of wind
v (np.array) – v component of wind
lon (float | np.array) – longitude of point, in -180..180 or 0..360
- Returns:
tuple[np.array, np.array] – u and v components of wind in earth coordinates
- Return type:
See also
lair.hrrr.winds_frameHRRR winds at a point, rotated with this.