lair.air.rotate_winds#

lair.air.rotate_winds(u, v, lon)[source]#

Rotate HRRR winds from grid to earth coordinates.

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:

tuple[Any, Any]

See also

lair.hrrr.winds_frame

HRRR winds at a point, rotated with this.