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

eccodes compatible local definitions (grib tables) for NCEP WMO Grib2 #293

Open
emfdavid opened this issue Nov 21, 2023 · 4 comments
Open
Assignees
Labels
question Further information is requested

Comments

@emfdavid
Copy link

I am working with the HRRR & GFS grib2 files via NODD.
I would like to use CFGRIB to read your products, but I can't seem to find any local definitions that implement the recent NCEP WMO GRIB2 Documentation?

My colleague has also started a rust grib reader which is built by hand from the NCEP WMO doc - it looks similar to some of the fortran code in this repo.

Any assistance in building a machine readable table format (I don't love the eccodes format but it exists and has an implementation) to go with the PDF would be most appreciated.

@edwardhartnett
Copy link
Contributor

Have you looked at the NCEPLIBS-g2tmpl project? Perhaps it contains what you need.

@edwardhartnett edwardhartnett added the question Further information is requested label Mar 22, 2024
@edwardhartnett edwardhartnett self-assigned this Mar 22, 2024
@emfdavid
Copy link
Author

Have you looked at the NCEPLIBS-g2tmpl project? Perhaps it contains what you need.

So that NCEPLIBS-g2tmpl implements the NCEP grib spec in Fortran90.
Is it possible to dump the definitions in a machine readable form (json?) from that library? Or would we need to write a fortran application or an f2py wrapper to access the table definitions?

@edwardhartnett
Copy link
Contributor

I would like have this in a machine-readable format. However it's not clear how that will happen yet.

@JackKelly
Copy link

JackKelly commented Oct 11, 2024

gdal/frmts/grib/data/ contains a lot of (all of??) the GRIB2 tables stored as CSV.

Specifically, this CSV contains the NCEP-specific GRIB table (although I haven't checked if this CSV is complete or up-to-date): gdal/frmts/grib/data/grib2_table_4_2_local_NCEP.csv

The README for the GDAL GRIB CSVs is here: gdal/frmts/grib/degrib/README.TXT

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

No branches or pull requests

4 participants