-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnicodeDecodeError when parsing BUFR file from DWD #28
Comments
Using the ecCodes bufr_filter tool with the rule
It worked for me (no errors issued) using the two input files: Z__C_EDZW_20210518110802_bda01,synop_bufr_999999_999999__MW_480.bin |
Can you please try with fewer keys to pin down which one is causing the error? |
You're right, without I bet it has to do with the fact that some station names contain weird characters :) Any workaround to avoid the encoding issue? |
Many thanks. |
Yes, from the dump of the bufr the only weird thing that I can see are some stations with missing names/type :) (in the dump JSON this is printed as |
I have confirmed that this is indeed a bug in the underlying ecCodes Python3 interface. I am working on a fix |
Can you try the following as a workaround:
Then try the rest of your code |
yep, that seems to work ;) |
The latest Python bindings for ecCodes fixes this (v1.3.3) |
I haven't seen an open issue on this, forgive me if that's not the case.
I'm running the master version with eccodes v2.21.0.
I can successfully read the BUFR files from German weather stations here https://opendata.dwd.de/weather/weather_reports/synoptic/germany/ (like @meteoDaniel) but not the international ones here https://opendata.dwd.de/weather/weather_reports/synoptic/international/. In the latter case after doing this
I get
I can successfully see file content using
grib_dump
but I would like to avoid having to dump everything into a json before :)The text was updated successfully, but these errors were encountered: