-
Notifications
You must be signed in to change notification settings - Fork 71
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
Thin grid grib2 file parsing #993
Comments
All GRIB2 data that I know off ( with a reduced grid ) have this value set to 2 |
...
Conclusions:
|
My mistake. Apologies. I think it is best to report this to ECMWF ( https://confluence.ecmwf.int/site/support ) |
Hi @shahramn, thanks for reporting. That makes sense to me. @siggemannen: You say "In my files the octet value is 2." Is it possible you meant octet 11? Note that in our code octets are 1 based, to follow GRIB documentation conventions, because it was a Fortran world back then, I guess. |
Seems possible its a cdo error. Perhaps check there also. I imagine correctly translating GRIB1 to GRIB2 in a generic way is difficult. Maybe we could accept octet12 == 0 to really mean 1, if we in fact there are numPts monotonic? values at the end of section 3. Right now we are just throwing an Exception anyway. |
@JohnLCaron - When i debug this line: The value in octet12 was 2. |
Hello. I have a problem parsing some grib2 files with "thin grids". I think these files are generated from cdo grib1=>grib2 but not sure.
The problem is that this assertion is failing:
netcdf-java/grib/src/main/java/ucar/nc2/grib/grib2/Grib2Gds.java
Lines 237 to 241 in a742a9e
In my files the octet value is 2. But it doesn't seem that this assertion is needed because if i remove it, the file is parsed properly anyway.
I can also parse the same file using C# Grib.API.
So the question is if this assertion is really needed? I'm not a grib expert though :)
I'm using on Windows 10, java 17 (but same problem seems to exist in all java versions) and the following version:
Attaching zipped file containing the grib file i want to import
ECMWF_CAMS_total_column_nitric_acid2019010100.zip
The text was updated successfully, but these errors were encountered: