ecmwf / pdbufr

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

problem with reading 'General weather indicator (TAF/METAR)' #34

Closed bikasbhattarai closed 2 years ago

bikasbhattarai commented 2 years ago

Hello, I tried to read .bufr file with the following code, but it return empty dataframe, pdbufr.read_bufr('test.bufr', columns=('generalWeatherIndicatorTafMetar')) other parameters are OK, only for this parameter did not work

shahramn commented 2 years ago

Can you share with us the BUFR file (just one message) you are using as input?

shahramn commented 2 years ago

This may be a simple typo. We do have the key generalWeatherIndicatorTafOrMetar

in your example the "Or" is missing. Is this the descriptor you meant? (its code is 020009)

bikasbhattarai commented 2 years ago

Oh yes 'Or' was missing. Thank you :)