lair.hrrr.winds_frame#
- lair.hrrr.winds_frame(u_grid, v_grid, lon, times)[source]#
Earth-relative 10 m winds at a point from HRRR grid-relative components.
- Parameters:
- Returns:
pd.DataFrame – Columns
u,v(earth-relative, m/s),ws(speed from u and v, m/s) andwd(direction, degrees).- Return type:
See also
WindsDownloads the components and calls this.
lair.air.rotate_windsTurns grid-relative components to earth-relative.
lair.air.wind_directionThe direction of a u and v.
Examples
At 97.5 W, the middle of the HRRR domain, the grid points north, so the components do not change. A wind blowing toward the south (v = -4) comes from the north (0 degrees); one blowing toward the east (u = 3), from the west (270):
>>> import datetime as dt >>> from lair.hrrr import winds_frame >>> times = [dt.datetime(2024, 1, 15, 12), dt.datetime(2024, 1, 15, 13)] >>> winds_frame([0.0, 3.0], [-4.0, 0.0], lon=-97.5, times=times).round(2) u v ws wd 2024-01-15 12:00:00 0.0 -4.0 4.0 0.0 2024-01-15 13:00:00 3.0 0.0 3.0 270.0