angle_to_direction#
- metpy.calc.angle_to_direction(input_angle, full=False, level=3)[source]#
Convert the meteorological angle to directional text.
Works for angles greater than or equal to 360 (360 -> N | 405 -> NE) and rounds to the nearest angle (355 -> N | 404 -> NNE)
- Parameters:
- Returns:
direction – The directional text
Examples
>>> from metpy.calc import angle_to_direction >>> from metpy.units import units >>> angle_to_direction(225. * units.deg) 'SW'
Examples using metpy.calc.angle_to_direction
#
Angle to Direction