-
Notifications
You must be signed in to change notification settings - Fork 124
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
xarray cfgrib backend changed data variable name #678
Comments
the cfgrib package can probably excluded from the list of suspects: downgrading didn't help. |
Turned out that the change happened between eccodes 2.26 and 2.28. The release notes on 2.28 state that some names have changed but the details seem to be hidden in a non-accessible confluence page. |
Indeed, the linked issue [ECC-1465] mentions parameter shortname 'i10fg'. I will research how the code could be adjusted, and how this might resolved together with the current restriction on cfgrib and eccodes. |
I did not have time yet to start fixing. this issue, but hope to have time soon, so we can increase the eccodes version freely again. |
eccodes v2.32 was released in October. If the problem persists, we should find a way to update our code and become compatible with newer versions. @emanuel-schmid @ThomasRoosli Does this only affect |
Hey so I tried updating the changed parameter name in |
@luseverin Excellent work, thanks for looking into this. Are these the latest versions of the two dependencies, and if not, can you try with the latest?
|
Latest versions of the packages are (to my knowledge)
So I think @emanuel-schmid or someone who knows about it should look into it to update the packages beyond |
Why |
No help. It looks like we need cfgrib>=0.9.10 and eccodes>=2.31. |
Up to xarray=2023.2.0, cfgrib=0.9.9.1 and eccodes=2.26.0 reading the storm_europe test files named "test_storm_europe_icon_2021012800" created a dataset with a Data variable 'gust'.
With xarray=2023.2.0, cfgrib=0.9.10.3 and eccodes=2.29.0 the (seemingly) same Data variable is called 'i20fg'.
The following code snippet (mostly taken from
StormEurope.from_icon_grib
) illustrates this:This is relevant since the current conda installation comes with the updated versions as above, and consequently runs into a unittest failure for
climada.hazard.test.test_storm_europe.TestReader.test_icon_read
The text was updated successfully, but these errors were encountered: