You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 and cartopy in anaconda.
If basemap alone is installed, everything works well. PseudoNetCDF finds basemap and plots accordingly.
If cartopy is installed alone, PseudoNetCDF doesn't add maps.
If both are installed, the basemap libgeos expected version is not available (replaced by the cartopy 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 a PseudoNetCDF problem.
There are two easy work arounds. The plot command accepts map_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 with pip and only requires pyproj for projected maps. pyproj is also easily installable with pip. See the pycno documentation for lat/long and projected plots. For projection plots and IOAPI files, you can define the projection using the PseudoNetCDF.getproj method with the withgrid=True option.
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.The text was updated successfully, but these errors were encountered: