[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[python #KDG-595508]: Problem with metpy.plots



Hello! Thanks for your question.

MetPy has run into a compatibility issue with the recently-released cartopy 
0.18 that we are aware of. In the mean time the solution is to roll back to 
cartopy 0.17 until we are able to get a fix out for MetPy 0.12.


I hope this helps!

Drew


> Hi,
> 
> I am new to MetPy and I am excited to be able to make some plots. Trying to
> use some of the metpy plots in the youtube examples, I am getting an error
> that I am not being able to get past to.
> 
> from datetime import datetime
> import matplotlib.pyplot as plt
> import metpy.calc as mpcalc
> from metpy.plots import SkewT
> from metpy.units import units
> from siphon.simplewebservice.wyoming import WyomingUpperAir
> %matplotlib inline
> 
> I get the following error:
> 
> NameError                                 Traceback (most recent call
> last)<ipython-input-54-1e463be99531> in <module>      2 import
> matplotlib.pyplot as plt      3 import metpy.calc as mpcalc----> 4
> from metpy.plots import SkewT      5 from metpy.units import units
> 6 from siphon.simplewebservice.wyoming import WyomingUpperAir
> ~/opt/anaconda3/lib/python3.7/site-packages/metpy/plots/__init__.py in
> <module>     17 logger = logging.getLogger(__name__)     18 ---> 19
> __all__ = ctables.__all__[:]  # pylint: disable=undefined-variable
> 20 __all__.extend(declarative.__all__)  # pylint:
> disable=undefined-variable     21 __all__.extend(skewt.__all__)  #
> pylint: disable=undefined-variable
> NameError: name 'ctables' is not defined
> 
> 
> I see this error anytime I try to import some plot from metpy.plots. I
> tried to research the error but I found no help online. Any help is
> appreciated.
> 


Ticket Details
===================
Ticket ID: KDG-595508
Department: Support Python
Priority: Low
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.



pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy