如何正确安装cfgrib和eccodes?

问题描述 投票:0回答:1

我正在尝试在我的 Mac 上运行此代码:https://github.com/EWolffWX/MRMS_Derecho_Composites

当我运行它时,我从这行代码中收到此错误

ValueError: unrecognized engine cfgrib must be one of: ['netcdf4', 'h5netcdf', 'scipy', 'gini', 'pydap', 'store', 'zarr']

ds = xr.open_dataset(filepath, engine="cfgrib")

我已经尝试了网上能找到的所有解决方案,但没有任何效果。我尝试过

conda install eccodes
conda install -c conda-forge eccodes
来安装 eccodes 库,但都没有成功。

python python-xarray cfgrib eccodes
1个回答
0
投票

除了 Xarray 之外,您还需要安装 cfgrib:

conda install -c conda-forge cfgrib
© www.soinside.com 2019 - 2024. All rights reserved.