wind_components#

Calculate the U, V wind vector components from the speed and direction.

u, v (tuple of pint.Quantity ) – The wind components in the X (East-West) and Y (North-South) directions, respectively.

>>> from metpy.calc import wind_components >>> from metpy.units import units >>> wind_components(10. * units('m/s'), 225. * units.deg) (, ) 

Changed in version 1.0: Renamed wdir parameter to wind_direction