pyiem.ncei package

Submodules

pyiem.ncei.ds3505 module

Implementation of the NCEI DS3505 format

https://www1.ncdc.noaa.gov/pub/data/ish/ish-format-document.pdf

pyiem.ncei.ds3505.gen_metar(data)

Convert our parsed dictionary into a METAR

pyiem.ncei.ds3505.parse_extra(data, extra)

Parse the additional data fields

pyiem.ncei.ds3505.parser(msg, call_id, add_metar=False)

Parse the message(single line) into a dict

Parameters:
  • msg (str) – the single line of data to parse into a dict

  • call_id (str) – hard coded call_id as the data can’t be trusted, sigh

  • add_metar (bool,optional) – should a METAR be generated? Default: False

Returns:

dict or None

pyiem.ncei.ds3505.vsbyfmt(val)

Tricky formatting of vis

Module contents

Placeholder