parse_angle#

metpy.calc.parse_angle(input_dir)[source]#

Calculate the meteorological angle from directional text.

Works for abbreviations or whole words (E -> 90 | South -> 180) and also is able to parse 22.5 degree angles such as ESE/East South East.

Parameters:

input_dir (str or Sequence[str]) – Directional text such as west, [south-west, ne], etc.

Returns:

pint.Quantity – The angle in degrees

Examples using metpy.calc.parse_angle#

Parse angles

Parse angles

Mesonet Station Plot

Mesonet Station Plot