Commit 90d09cb4 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Some attempts to fix extraterrestial compatibility in GeoArray.show_map(). See...

Some attempts to fix extraterrestial compatibility in GeoArray.show_map(). See arosics#65

.
Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 1386f061
Pipeline #29339 failed with stage
in 1 minute and 58 seconds
......@@ -1389,10 +1389,16 @@ class GeoArray(object):
crs_in = get_cartopy_crs_from_epsg(gA2plot.epsg)
crs_out = get_cartopy_crs_from_epsg(out_epsg if out_epsg is not None else gA2plot.epsg)
# from cartopy.crs import Globe
# crs_in = Globe(ellipse='MARS_localRadius')
# crs_out = Globe(ellipse='MARS_localRadius')
fig = plt.figure(figsize=figsize)
# ax = plt.axes(projection=gA2plot.prj)
ax = plt.axes(projection=crs_out)
ax.set_extent(gA2plot.box.boundsMap, crs=crs_in)
# ax.set_extent(gA2plot.box.boundsMap, crs=gA2plot.prj)
palette, vmin, vmax = gA2plot._get_cmap_vmin_vmax(cmap, vmin, vmax, pmin, pmax, image2plot, nodataVal)
if nodataVal is not None and np.std(image2plot) != 0: # do not show nodata
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment