在 xarray.Dataset 上调用 .metpy.parse_cf() 会给出未定义的“ctables”
import xarray as xr
import metpy
ds = xr.open_dataset('https://thredds.ucar.edu/thredds/dodsC/grib/NCEP/GFS/Global_0p25deg/Best')
>>> ds.metpy.parse_cf('u-component_of_wind_height_above_ground')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/ray/local/bin/anaconda3/envs/dev/lib/python3.8/site-packages/metpy/xarray.py", line 512, in parse_cf
from .plots.mapping import CFProjection
File "/home/ray/local/bin/anaconda3/envs/dev/lib/python3.8/site-packages/metpy/plots/__init__.py", line 19, in <module>
__all__ = ctables.__all__[:] # pylint: disable=undefined-variable
NameError: name 'ctables' is not defined