Browse Source

fix plotting static fits: plotting w/o topography is fixed

master
Henriette Sudhaus 2 weeks ago
parent
commit
6cb3e4570c
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      src/targets/satellite/plot.py

+ 5
- 2
src/targets/satellite/plot.py View File

@ -251,8 +251,11 @@ edge marking the upper fault edge. Complete data extent is shown.
except Exception as e:
logger.warning('could not plot hillshaded topo')
logger.exception(e)
return mappable.to_rgba(arr)
rgb_arr = mappable.to_rgba(arr)
rgb_arr[num.isnan(arr)] = 1.
rgb_arr[scene.displacement_mask] = 1.
return rgb_arr
def draw_leaves(ax, scene, offset_e=0., offset_n=0.):
rects = scene.quadtree.getMPLRectangles()


Loading…
Cancel
Save