【发布时间】:2020-11-12 14:55:54
【问题描述】:
我在 macOS 上使用 cfgrib,当我尝试使用隐蔽的 grib 文件到 xarray 时出现以下错误:
AttributeError: module 'pyeccodes.compat' has no attribute 'codes_grib_multi_support_off'
这是我目前的代码:
import xarray as xr
import matplotlib.pyplot as plt
import matplotlib.style as sty
sty.use('classic')
import numpy as np
import cartopy.crs as ccrs
d7 = xr.open_dataset('2007_BLH.grib', engine='cfgrib')
我已经下载了所有似乎需要的东西,包括 eccodes、pyeccodes、cfgrib。我该如何解决这个问题?
【问题讨论】:
-
为此,您需要 cfgrib、eccodes 和 python-eccodes,而不是 pyeccodes IIRC。
标签: python grib cfgrib eccodes