ecmwf / pdbufr

High-level BUFR interface for ecCodes
Apache License 2.0
23 stars 8 forks source link

KeyValueNotFoundError: Key/value not found for existing key #24

Closed meteoDaniel closed 3 years ago

meteoDaniel commented 3 years ago

Dear @alexamici,

pdbufr looks really nice but it does not work with bufr data e.g. from DWD and Aemet.

df = pdbufr.read_bufr( 
         'Z__C_EDZW_20210214100000_bda01,synop_bufr_GER_999999_999999__MW_536.bin', 
         columns=('airTemperature')
)

I receive KeyValueNotFoundError: Key/value not found during passing the attached file.

Using bufr_dump works as expected.

In case you do not have time to fix this issue pleas let me know where the bug should be and I will try to fix it. Thanks as lot and bets regards.

Daniel

eccodes version 2.6.0

Z__C_EDZW_20210214100000_bda01,synop_bufr_GER_999999_999999__MW_536.zip

meteoDaniel commented 3 years ago

I have upadted my ubuntu version today and now I am using eccodes 2.16. and it works.