ARPA-SIMC / wreport

C++ library and applications to work with weather reports. The library provides featureful BUFR and CREX encoding and decoding.
Other
9 stars 9 forks source link

Impossible to decode bufr #26

Closed dcesari closed 5 years ago

dcesari commented 5 years ago

The attached file wigos.zip containing bufr messages cannot be decoded with wrep, for each message I get "end of buffer while looking for 4 bits of bit-packed data". I cannot swear it is coded correctly, but I know that somebody uses these data with other libraries. Could you give it a check? wrep -t or wrep -D show something reasonable before crashing.

spanezz commented 5 years ago

I reproduced the issue. That BUFR uses the C modifier for a change of reference value, which was not supported yet in wreport. Now that I have a sample that uses it, I can go ahead and implement it.

spanezz commented 5 years ago

Would you be able to access correct values for these two fields for the first BUFR in the file, to have as a reference for implementing support for this?

007030 Height of station ground above mean sea level[M]
007031 Height of barometer above mean sea level[M]
spanezz commented 5 years ago

I found this via eccodes. I'll take it for valid:

heightOfStationGroundAboveMeanSeaLevel: 10m
heightOfBarometerAboveMeanSeaLevel: 11m
dcesari commented 5 years ago

Sorry I was not online last Friday, thanks a lot!