Skip to content
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

Reading NCEP BUFR with Local Tables #68

Closed
keltonhalbert opened this issue Oct 24, 2022 · 2 comments
Closed

Reading NCEP BUFR with Local Tables #68

keltonhalbert opened this issue Oct 24, 2022 · 2 comments

Comments

@keltonhalbert
Copy link

keltonhalbert commented Oct 24, 2022

Hello,

I am attempting to use eccodes-python to decode NCEP BUFR files that use local tables. I've been following the instructions located at https://confluence.ecmwf.int/display/UDOC/Local+configuration+-+ecCodes+BUFR+FAQ in order to create my own local table directory structure that reflects the NCEP Table B and Table D entries.

I have attached my formatted element.table and sequence.def files that are located in definitions/bufr/tables/0/local/1/7/3/, along with an example of the kind of BUFR file I am attempting to decode: eccodes-dump.zip

When I attempt to run the bufr_dump binary on the attached file using the attached configurations, I do successfully remove errors about definitions that have now been added. However, I cannot seem to decode message number 3 in the file due to a sequence that it cannot match:

ECCODES ERROR   :  hash_array: no match for sequences=360243
ERROR: unable to unpack data section: Hash array no match (message=3)

As best as I can tell, this sequence is a reference to an NCEP Table A entry about the data inside the BUFR file, which in this case it is a GFS BUFR sounding. There are no local subtypes for data type 243, but clearly eccodes isn't sure what it is or what to do with it.

Could I receive input/help on 1) whether or not I am approaching this correctly, and 2) how to fill out the rest of my local definitions to be able to decode this file? I'd be more than willing to share the final table configuration to help others who may wish to read NCEP BUFR data that uses local tables. I can see that there are plenty of other configuration files that can be touched, but I'm not entirely sure about what they are, what they do, and which ones are relevant.

Thanks in advance for the assistance!

@shahramn
Copy link
Collaborator

This is what is called PREP BUFR. I'm afraid ecCodes does not properly support this format.

@keltonhalbert
Copy link
Author

Ah, well then if it is not something supported, I will close this issue. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants