#641133 metar: decoding problems

Package:
metar
Source:
metar
Description:
utility to download/decode METAR reports
Submitter:
Artem X
Date:
2024-09-15 07:45:02 UTC
Severity:
normal
Tags:
#641133#5
Date:
2011-09-10 17:07:46 UTC
From:
To:
Dear Maintainer, metar has problems with decoding of metar information,
particulary of wind data. I've tried several airports, such as:
UKKK, UKLL, URKA, UKOO and it seems they are all affected by this pro-
blem.

For example:

metar -dv UKKK
Retrieving URL http://weather.noaa.gov/pub/data/observations/metar/stations/UKKK.TXT
UKKK 101630Z 24003MPS CAVOK 16/07 Q1014 26CLRD70 NOSIG
Parsing token `UKKK'
   Found station UKKK
Parsing token `101630Z'
   Found Day/Time 10/1630
Parsing token `24003MPS'
   Unmatched token = 24003MPS
Parsing token `CAVOK'
   Unmatched token = CAVOK
Parsing token `16/07'
   Temp/dewpoint 16/7
Parsing token `Q1014'
   Pressure/unit 1014/hPa
Parsing token `26CLRD70'
   Unmatched token = 26CLRD70
Parsing token `NOSIG'
   Unmatched token = NOSIG
Station       : UKKK
Day           : 10
Time          : 16:30 UTC
Wind direction: 0 (N)
Wind speed    : 0
Wind gust     : 0
Visibility    : 0
Temperature   : 16 C
Dewpoint      : 7 C
Pressure      : 1014 hPa
Clouds        :
Phenomena     : Ceiling and visibility OK

#641133#10
Date:
2014-04-21 08:24:21 UTC
From:
To:
Dear Maintainer,

The bug still exists. Example:

USSS 210800Z 34005G08MPS 290V010 9999 SCT033CB BKN067 03/02 Q1015 7629//38
TEMPO 33018MPS 0500 +SHSN VV003 RMK QFE740
Station       : USSS
Day           : 21
Time          : 08:00 UTC
Wind direction: 0 (N)
Wind speed    : 0
Wind gust     : 0
Visibility    : 9999 M
Temperature   : 3 C
Dewpoint      : 2 C
Pressure      : 1015 hPa
Clouds        : BKN at 6700 ft
Phenomena     : Heavy Showers Snow

Looks like "34005G08MPS" causes some parse error.

Regards,
Alex

#641133#15
Date:
2024-09-15 07:43:33 UTC
From:
To: