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

Provide an utility to convert bufr tables of other formats #15

Open
ywangd opened this issue Nov 4, 2020 · 3 comments
Open

Provide an utility to convert bufr tables of other formats #15

ywangd opened this issue Nov 4, 2020 · 3 comments

Comments

@ywangd
Copy link
Owner

ywangd commented Nov 4, 2020

PyBufrKit has its own format for bufr tables and these are not used anywhere else. It would be useful if there is tool to convert tables of more popular formats, e.g. wmo and ecCdoes to pybufrkit's own format.

@ywangd
Copy link
Owner Author

ywangd commented May 8, 2021

f3ab6af adds a script to convert WMO tables published at https://github.com/wmo-im/BUFR4

@vasilesirbu95
Copy link

Hi Yang,

I have the same problem (UnknownDescriptor: Error: Cannot process descriptor 001241 of type: UndefinedElementDescriptor) and I tried to insert the descriptor (001241) into table B. I downloaded the files from https://github.com/wmo-im/BUFR4, after that I put the descriptor in the .csv file "BUFRCREX_Table_en_01.csv" [01,Identification,001241,State/Federal state identifier, CCITT IA5,0,0,32,Character,0,4,,,Operational]. After that I converted the tables into .txt files using "scripts/makeLegacyFormats.sh".
I also executed the following commands from "main.yml":

ls txt
ls xml
git config --global user.email "[email protected]"
git config --global user.name "Enrico Fucile"
git branch

On the last command I got the following error:
[fatal: not a git repository (or any parent up to mount point /mnt)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).]

Is this procedure correct?
What steps do I have to take specifically to initialize the missing descriptors.
How can I connect the tables from https://github.com/wmo-im/BUFR4 to pybufrkit, since pybufrkit already has its own tables.
Can I ignore the descriptors at all if I don't need them?
Can I initialize the missing descriptors using pybufrkit?

Thanks in advance!

@ywangd
Copy link
Owner Author

ywangd commented Dec 21, 2022

On the last command I got the following error:
[fatal: not a git repository (or any parent up to mount point /mnt)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).]

You got this error while working with the github.com/wmo-im/BUFR4 repo. This is not related to PyBufrKit. I suggest you ask elsewhere.

Can I ignore the descriptors at all if I don't need them?

Yes you can specify a different location (with command line option -t) for it to load all the descriptors. You'll need provide all descriptors needed for working with the BUFR messages since PyBufrKit won't use the builtin tables at all once you tell it to load tables from another location.

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