avwx-rest / avwx-engine

Aviation Weather parsing engine. METAR & TAF
MIT License
89 stars 30 forks source link

Handle bad TAF headers #51

Closed cquinlan-cirium closed 1 year ago

cquinlan-cirium commented 1 year ago

Description

Occasionally, TAF reports come with the headers out of order. See below for an example:

KNGU TAF COR 2315/2415 18011KT 9999 VCTS FEW020CB BKN050 BKN150 QNH2986INS TEMPO 2315/2319 VRB30G60KT 0400 +TSRAGR FG BKN020CB OVC050 TEMPO 2319/2401 VRB30G60KT 0400 +TSRAGR FG BKN020CB OVC050 FM240200 19008KT 9999 BKN030 OVC100 QNH2986INS FM240800 20005KT 9999 BKN010 OVC030 QNH2985INS TEMPO 2408/2414 6000 BR BKN006 OVC015 FM241400 22008KT 9999 SCT015 BKN150 QNH2980INS TX30/2319Z TN23/2410Z COR 1520 FN20004

Checklist