get_wind_dir

metpy.calc.get_wind_dir(u, v)[source]

Compute the wind direction from u and v-components.

Parameters:
  • u (array_like) – Wind component in the X (East-West) direction
  • v (array_like) – Wind component in the Y (North-South) direction
Returns:

wind direction (pint.Quantity) – The direction of the wind, specified as the direction from which it is blowing, with 0 being North.