metpy

How to fix attribute error for Metpy data from a netcdf file involving xarray

筅森魡賤 提交于 2021-01-29 17:53:23
问题 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

cTables Undefined when importing from metpy.plots?

无人久伴 提交于 2020-07-30 08:12:38
问题 longtime programmer but new to python and metpy. I'm trying to learn by following the examples on the unidata site and youtube (metpy mondays) I'm trying to follow along with building a simple skew-t lesson and running into an issue. When I try to use imports like so: from datetime import datetime from siphon.simplewebservice.wyoming import WyomingUpperAir from metpy.units import units import matplotlib.pyplot as plt import metpy.plots as plots %matplotlib inline I get this error: -----------