Closed nlhll closed 3 years ago
The latest version of cfgrib is compatible only with fairly new version of the eccodes
python package, but I failed to add this minimum version in the setup.py
. I'll add it and make a new release.
As a work-around you need to update the package with ecCodes python bindings depending on you install setup. This is different for pip, conda and other installation strategies.
Thanks for the report.
I also have this question :
ds = xr.open_dataset("C:\\Users\\liuc\\Downloads\\era5-levels-members.grib", engine="cfgrib")
W:\software\anaconda\lib\site-packages\cfgrib\messages.py in multi_enabled(file) 49 # @alexamici: I'm note sure this is thread-safe. See :#141 50 # ---> 51 eccodes.codes_grib_multi_support_reset_file(file) 52 try: 53 yield
AttributeError: module 'eccodes' has no attribute 'codes_grib_multi_support_reset_file'
eccodes 2.14.1 hbda0969_1 conda-forge python-eccodes 0.9.3 py38hc8d92b1_1 conda-forge xarray 0.18.0 pyhd3eb1b0_1
Hi there,
Worked fine on 0.9.8.5 version, however started throwing an AttributeError on the 0.9.9.0 one. As an example:
cfgrib.open_dataset(file_path, backend_kwargs={"filter_by_keys": {"numberOfPoints": 2556, "typeOfLevel": "hybrid", "edition": 2, "level": 128}})
Any idea on what might be the cause of that?