Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Parser failure on METARs on the 31st day. #167

@jmct

Description

@jmct

It's possible I'm misunderstanding something, but the following is a historical METAR report from January 31st, 2000:

'KUAO 310053Z AUTO 31009KT 10SM -RA FEW046 BKN055 OVC070 05/00 A2980 RMK AO2 RAB52 SLP094 P0000 T00500000 TSNO $'

When using this library I get the following exception:

>>> Metar.Metar("KUAO 310053Z AUTO 31009KT 10SM -RA FEW046 BKN055 OVC070 05/00 A2980 RMK AO2 RAB52 SLP094 P0000 T00500000 TSNO $")
[... stack trace elided ...]
ParserError: _handleTime failed while processing '310053Z AUTO 31009KT 10SM -RA FEW046 BKN055 OVC070 05/00 A2980 RMK AO2 RAB52 SLP094 P0000 T00500000 TSNO $ '
	day is out of range for month

I'm happy to hear that I've misunderstood something or I'm using it wrong. I'm also happy to patch the bug myself if it is indeed a bug.

Thanks for the library!

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