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
input_angle (numeric or array-like numeric) – Angles such as 0, 25, 45, 360, 410, etc
full (boolean) – True returns full text (South), False returns abbrieviated text (S)
level (int) – Level of detail (3 = N/NNE/NE/ENE/E… 2 = N/NE/E/SE… 1 = N/E/S/W)
- Returns
direction – The directional text