Skip to content

Metars with missing cloud info #13

Description

@gpdawson

PAWI 140753Z AUTO 08034G41KT 1/4SM SN FZFG M18/M21 A2951 RMK PK WND 08041/0752 SLP995 P0000 T11831206 TSNO $ VIA AUTODIAL

This metar generates this exception: Bad format for clouds information, on chunk "M18/M21 A2951 RMK PK WND 08041/0752 SLP995 P0000 T11831206 TSNO $ VIA AUTODIAL"

Also, even in non-strict mode, it then fails to parse temperature information, presumably because parser has already jumped to next chunk after not finding cloud info when expected.

According to the specification here http://weatherfaqs.org.uk/book/export/html/197 the cloud info is "optional", although it also says "When fog or heavy snow is occurring, and it is not possible to determine cloud structure, then these groups are replaced by VVhhh or VV///".

I note that there are typically many metar reports (many thousand daily) which do not contain cloud info, mainly from AUTO stations.

So my question is, should missing cloud info be considered an error by this parser, and is there a better way of dealing with this particular case in order to ensure that temperature data is correctly parsed despite missing cloud info?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions