Closed bbakernoaa closed 5 years ago
Thanks for reporting the issue!
The bug itself is trivial to fix and I will make a minor release soon. In the meanwhile you can try to pass the encode_parameter=False
option to xarray_store.open_dataset
.
@bbakernoaa please upgrade with pip install cfgrib>=0.8.4.5
and test if it solves your issue. Thanks!
@alexamici I am a little worried. It opens a single variable under atmosphere, a single variable under surface, and no variables under the 'unknown' typeOfLevel. I'm trying to figure out if this is an issue with how NCEP is writing the grib data or if there is something that can be done in cfgrib.
@bbakernoaa this is a different issue, right? The KeyError: 'GRIB_name'
is solved.
I'll have a look at it and open a new issue if it is needed. I'll close this one for now.
@alexamici Yes I suppose this is a separate issue. The KeyError: 'Grib_name'
itself has been resolved
@bbakernoaa I'd say ecCodes itself has no support for this kind of GRIB2 files, very few key values are recognised. All variables are mixed up in the single variable unknown
and I think the resulting Dataset
is unusable.
As cfgrib relies on ecCodes for GRIB decoding there is not much that I can do except filing a bug report to ecCodes.
Thanks again for reporting.
I’m talking with the guys in NCEP now. I’m convinced that this is an issue with how they are storing the data in the files. Seeing as our group is the only operational usage of this product no one has problably complained before or checked into the specifics. I’ll keep you posted on what I can find out.
Other variables that are not atmospheric composition types do not seem to have issue.
On Sat, Sep 15, 2018 at 11:20 AM Alessandro Amici notifications@github.com wrote:
@bbakernoaa https://github.com/bbakernoaa I'd say ecCodes itself has no support for this kind of GRIB2 files, very few key values are recognised. All variables are mixed up in the single variable unknown and I think the resulting Dataset is unusable.
As cfgrib relies on ecCodes for GRIB decoding there is not much that I can do except filing a bug report to ecCodes.
Thanks again for reporting.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ecmwf/cfgrib/issues/16#issuecomment-421586002, or mute the thread https://github.com/notifications/unsubscribe-auth/AVFKt5we_C7mo-qlpbnHUX3kS36HF50Aks5ubRrRgaJpZM4WoDHv .
First off I think this project is an awesome idea and I am interested.
I'm trying this out on some of the NCEP data. Particularly the NGAC data.
http://www.ftp.ncep.noaa.gov/data/nccf/com/ngac/prod/
I am trying to read in some of the AOD variables and such but am getting an error
Now these variables are present in the NCEP grib tables but seems to be missing the GRIB_name attribute. From wgrib2