MetPy icon indicating copy to clipboard operation
MetPy copied to clipboard

Peak Wind Values from METAR

Open dopplershift opened this issue 2 years ago • 0 comments

Discussed in https://github.com/Unidata/MetPy/discussions/2445

Originally posted by wxbinge April 19, 2022 Hello,

I wondered if there is a way to get the peak wind information from METAR files using MetPy?

I was looking at the current metar.py script in the io directory, and these are the variables I see that can be parsed:

Configure the named tuple used for storing METAR data Metar = namedtuple('metar', ['station_id', 'latitude', 'longitude', 'elevation', 'date_time', 'wind_direction', 'wind_speed', 'wind_gust', 'visibility', 'current_wx1', 'current_wx2', 'current_wx3', 'skyc1', 'skylev1', 'skyc2', 'skylev2', 'skyc3', 'skylev3', 'skyc4', 'skylev4', 'cloudcover', 'temperature', 'dewpoint', 'altimeter', 'current_wx1_symbol', 'current_wx2_symbol', 'current_wx3_symbol', 'remarks'])

However, some stations report peak wind, and I would like to get that information.

KPAE 190249Z 20014G22KT 10SM OVC014 06/03 A2962 RMK AO2 PK WND 22029/0233 RAE04 P0000

Is there a way to do that with MetPy? I am using version 1.2.

dopplershift avatar Apr 19 '22 19:04 dopplershift