-
Notifications
You must be signed in to change notification settings - Fork 78
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
Unable to open GRIB2 with duplicate shortName fields #101
Comments
@Plantain you should be able to get the missing variable by passing Please report back if it helps. |
Unfortunately it doesn't help, because the long names are the same as well. Actually, every single parameter that cfgrib exposes to filter on seems to be identical. The single parameter that does seem to differ is "typeOfFirstFixedSurface", so I've patched DATA_ATTRIBUTES_KEYS in cfgrib/dataset.py to allow me to filter by that. Which makes me wonder, why have the DATA_ATTRIBUTES_KEYS limitation at all, why not let users filter by whatever keys they please? These particular GRIB2 files are published operationally by a national weather agency... |
@Plantain in the branch
This will be included in the upcoming 0.9.7.2 release. |
Ok, I just released it. |
I have a series of grib files with duplicate shortName fields for one parameter, with the distinguishing data being in the "name" field.
Opening these with cfgrib.open_datasets() seems to stomp on one of them and return only one of the them.
See attached, field(s) icaht
cb.grb2.gz
Can I workaround this with a filter by name somehow to still get both values out of the file with cfgrib?
The text was updated successfully, but these errors were encountered: