How to fix attribute error for Metpy data from a netcdf file involving xarray
问题 I am getting this error: AttributeError: 'Dataset' object has no attribute 'metpy' when I am running my code. The particular lines in particular are: import Scientific.IO.NetCDF as S import cartopy.crs as ccrs import cartopy.feature as cfeature import matplotlib.pyplot as plt import xarray as xr import metpy # Any import of metpy will activate the accessors import metpy.calc as mpcalc #from metpy.testing import get_test_data from metpy.units import units # Open the netCDF file as a xarray