Open barronh opened 2 years ago
p.s., I think this is related to incompatible GEOS libraries, which should only matter when shapely optimizations are on... maybe. Maybe try import shapely; shapely.speedups.disable()
before running with cartopy
and see if that helps
Some users are experiencing crashing while plotting spatial maps. This is not a problem with PseudoNetCDF. This is often due to conflicting libraries associated with
basemap
andcartopy
in anaconda.basemap
alone is installed, everything works well.PseudoNetCDF
findsbasemap
and plots accordingly.cartopy
is installed alone, PseudoNetCDF doesn't add maps.basemap
libgeos expected version is not available (replaced by thecartopy
version) and the system may crash.Basically, it is possible to create an environment where
basemap
is available but will fail. Because this is a deep library issue, it does not just error and return control to python. Instead, the system crashes. This is an environment problem, not aPseudoNetCDF
problem.There are two easy work arounds. The
plot
command acceptsmap_kw=False
to disable mapping. This will work, but you get no map.A work around that includes a map uses
pycno
.pycno
is easily installable withpip
and only requirespyproj
for projected maps.pyproj
is also easily installable withpip.
See thepycno
documentation for lat/long and projected plots. For projection plots and IOAPI files, you can define the projection using thePseudoNetCDF.getproj
method with thewithgrid=True
option.