wmo-im / synop2bufr

Python package to transform SYNOP data into the WMO BUFR format.
https://synop2bufr.readthedocs.io
Apache License 2.0
6 stars 2 forks source link

Error handling improvements + new forked pymetdecoder #8

Closed RoryPTB closed 1 year ago

RoryPTB commented 1 year ago

__init__.py has been updated to display more useful information to the user in the command line and log non-critical errors rather than raising them. This means, for example, when one SYNOP report is incorrect, or a station is missing from the metadata file, synop2bufr informs the user of this and moves on to proceeding conversions to BUFR. Additionally, I have removed the logging basic config in the newest forked version of pymetdecoder so that this can be handled in cli.py instead, which meant the Dockerfile had to be updated.