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

Support GRIB GDT 140 and PDT 73 #22

Open
rschmunk opened this issue Jul 16, 2019 · 6 comments
Open

Support GRIB GDT 140 and PDT 73 #22

rschmunk opened this issue Jul 16, 2019 · 6 comments
Labels
iosp: grib grib file format

Comments

@rschmunk
Copy link
Contributor

A user sent me a GRIB2 file of ECMWF flood data that netCDF-Java will not open.

The first problem I encountered in trying to figure out why e.g. Panoply and IDV would not open the file is that it specified Grid Definition 140, which is the Lambert Azimuthal Equal Area projection. Some Googling indicates that this projection was first proposed for addition to GRIB in 2012, which I expect is after most/all of the grids that NJ understands were coded.

After an attempt at hacking Grib2Gds to accept template 140, I then ran into the problem that the file uses Product Definition 73, which is missing from Grib2Pds.

Perhaps there are further problems, but that was where I quit.

@rschmunk
Copy link
Contributor Author

The dataset creator has suggested they might switch to a different Product Definition Template. He didn't say which, but I would think it would be likely one of the other forecast templates 70-72.

@lesserwhirls
Copy link
Collaborator

Thanks for the report, @msdsoftware! I'll take a look once we get 5.0.0 stable out the door (likely today). Do you have a sample file I could work with? Even if they switch templates, it'd still be nice to take a look and see if we can support it.

@rschmunk
Copy link
Contributor Author

@lesserwhirls, I have a couple sample datasets. Would have to double-check but I think one should be okay for redistribution.

@cofinoa
Copy link
Contributor

cofinoa commented Jul 29, 2019

@msdsoftware please can you share the sample datasets?

@ms-daniel-bailey
Copy link

ms-daniel-bailey commented Jan 12, 2020

Hi guys, hope it's appropriate to piggyback this issue as it seems relevant and I have a couple of example files I can share for reference sake.

I'd been wrestling with reading these files with software I am working on, despite the software being stable until encountering these particular grid data types. I ended up deciding to try loading them in Panoply which has also crashed and burned with the same NullException I have been experiencing - which comes as a result of Grib2PDS not handling product definition 32, which is required to handle these files.

If there are any suggestions of how to work around this, that would be appreciated - but otherwise this seems like something which should be able to work as it appears that this product definition is known.

Cheers,
Dan
ACCESS-G-APS3-MEDIA_2019122212_000_95.228.zip

ACCESS-G-APS3-MEDIA_2019122212_000_96.228.zip

@rschmunk
Copy link
Contributor Author

FWIW, the issue of Product Definition 32 support arose two years ago in Unidata/thredds#846. Looks like @cofinoa took a whack at it but it turned out to be pretty complex and so apparently was not completed.

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

No branches or pull requests

5 participants