skydivejkl / metar.js

Javascript parser for METAR weather reports
http://skydivejkl.github.io/metar.js
MIT License
47 stars 23 forks source link

Cant parse corrected metars #12

Open ilblog opened 10 years ago

ilblog commented 10 years ago

The parser can parse XX% of metars, but any metar with a little bit different sequence of infos will confuse it. For instance any corrected metars.

PAOM 302353Z COR 32005KT 10SM CLR M03/M09 A2993

djmartinnz commented 10 years ago

Thanks for the example.

ilblog commented 9 years ago

For your info, I parsed all world metars under parser and those are metars, taht failed.

Seems to me like a good score for a script

KLQK [Error: Bad wind unit: 10SM] KLQK 310035Z AUTO 10SM CLR 09/07 A2998 RMK AO2 T00850070 EKHN [Error: Bad wind unit: /////] EKHN 310020Z AUTO ///// 1400NDV -RA BR BKN003/// 13/10 Q1022 PAOM [Error: Bad wind unit: COR] PAOM 302353Z COR 32005KT 10SM CLR M03/M09 A2993 KCLM [Error: Bad wind unit: 3SM] KCLM 310039Z AUTO 3SM +RA BR BKN005 BKN019 OVC030 12/11 A2972 KCNO [Error: Bad wind unit: COR] KCNO 302353Z COR 25013KT 10SM FEW180 23/14 A2994 RMK AO2 SLP133 T02330139 10306 20217 55002 KBKL [Error: Bad wind unit: 10SM] KBKL 302353Z 10SM SCT080 KVBG [Error: Bad wind unit: COR] KVBG 302355Z COR 23008KT 10SM FEW010 SCT120 BKN250 20/16 A2995 RMK AO2 SLP132 T02000156 10239 20172 58005 LAST COR 2356 ROTM [Error: Bad wind unit: COR] ROTM 302358Z COR 11006KT 9999 FEW015 BKN060 BKN180 24/23 A3002 RMK SHRAB14E50 SLP151 P0002 60011 T02390233 10244 20233 54000 KMNZ [Error: Bad wind unit: 10SM] KMNZ 310035Z AUTO 10SM -RA SCT060 BKN080 OVC095 22/17 A3010 RMK AO2 LTG DSNT NW P0001 T02170165 KOBE [Error: Bad wind unit: CLR] KOBE 310035Z AUTO CLR 21/18 RMK AO2 PACM [Error: Bad wind unit: 10SM] PACM 302356Z AUTO 10SM OVC028 M03/M07 A2986 RMK AO2 FZRANO TSNO 58027 T10331066 11027 21033 SLP105 $ PAPM [Error: Bad wind unit: 10SM] PAPM 302356Z AUTO 10SM CLR M01/M04 A2974 RMK AO2 TSNO 5//// 6//// T10051044 10000 21027 SLP071 $ KSBO [Error: Bad wind unit: 10SM] KSBO 310035Z AUTO 10SM CLR 14/10 A2995 RMK AO2 RKSO [Error: Bad wind unit: COR] RKSO 310009Z COR 09004KT 3SM -RA BR SCT030 OVC080 11/11 A3016 RMK AO2 COR 0023 KSKF [Error: Bad wind unit: COR] KSKF 302358Z COR 18003KT 10SM CLR 26/16 A3002 RMK AO2A SLP160 T02600159 10292 20259 55001 $ COR 0015 UTAV [Error: Bad wind unit: 02001�PS] UTAV 310000Z 02001�PS 7000 SKC 01/00 Q1027 NOSIG SVBI [Error: Bad wind unit: 11009] SVBI 310000Z 11009 9999 FEW020CB 28/26 Q1008