-
Notifications
You must be signed in to change notification settings - Fork 5
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
Issue with eccodes_jll v2.36.0+0 #35
Comments
Would a PR pinning the version of Ref: weech/GRIB.jl#19 |
After a bit of digging. This page has a list of some of the changed variable names. https://confluence.ecmwf.int/display/MTG2US/Changes+in+ecCodes+version+2.36.0+compared+to+the+previous+version It looks like, they don't considering changing the short names breaking. This is not good since GRIBDataset.jl clearly relies on the short names.
|
Hi! Indeed, the error comes from the change in those short names. It's because the tests are still using the old variable name. Here's the error with a higher level test: u10 = ds2["u10"]
ERROR: LoadError: The key `u10` was not found in the dataset. Available keys: ["lon", "lat", "hybrid", "heightAboveGround", "heightAboveGround_2", "valid_time", "u", "v", "etadot", "t", "sp", "q", "lsp", "acpcp", "sshf", "iews", "inss", "ssr", "avg_sd_m", "avg_msl", "tcc", "avg_10u", "avg_10v", "mean2t", "avg_2d", "avg_z", "lsm", "sdor", "cvl", "cvh", "avg_fsr"] Which is much more explicit :-) I'll fix that! BTW, I'm sorry I'm not really active anymore, I changed my job and I don't really use Julia anymore (unfortunately) |
Hi @tcarion
This is completely understandable. I really appreciate what you have done with the package so far. GRIBDataset.jl is useful for me in my work and I hope that I can contribute more to it in the future. That being said, I will probably not be able to do any significant contribution to the package the next 6 months but I hope I can do it after. BTW, I have made a PR to pin eccodes_jll to make the variable names stable. |
I would like to second @lupemba's appreciation of your work :-) Maybe, it would be useful to look-up the variable by the CF standard names? using GRIBDatasets
using CommonDataModel: @CF_str
ds = GRIBDataset("/home/abarth/.julia/dev/GRIBDatasets/test/sample-data/era5-levels-members.grib");
ds["isobaricInhPa"]
#isobaricInhPa (2)
# Datatype: Int64 (Int64)
# Dimensions: isobaricInhPa
# Attributes:
# units = hPa
# stored_direction = decreasing
# long_name = pressure
# axis = Z
# standard_name = air_pressure
# positive = down
ds["isobaricInhPa"][:] == ds[CF"air_pressure"][:]
# returns true This assumes that there is only one variable with a given |
Thank you very much both! Good idea, I will try to update the tests to use the CF standard names, and I agree this change in eccodes should be breaking |
I am investigating recent failures in the integration test (https://github.com/JuliaGeo/CommonDataModel.jl/actions/runs/10672550987). The error is reproducible, when I install the current main version of GRIBDatasets.jl (4f13871) is an empty environment. I get the following test error:
With the following dependencies:
If I manually downgrade eccodes_jll to v2.28.0 (the previous released version), all tests pass.
Independently of the test suite, the issue can be reproduced with the sample file ENH18080914:
Is this a known problem? Thank you for your insights!
The text was updated successfully, but these errors were encountered: