From 5e683e4688f0af0f18b8fcb310143c7cbb5c4d2f Mon Sep 17 00:00:00 2001 From: Jesse Mapel <jmapel@usgs.gov> Date: Thu, 17 Oct 2019 16:13:08 -0700 Subject: [PATCH] Updated LRO NAC comparison NB --- knoten/vis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/knoten/vis.py b/knoten/vis.py index e7cefff..f2c3a5e 100644 --- a/knoten/vis.py +++ b/knoten/vis.py @@ -294,7 +294,7 @@ def plot_diff_3d_cone(data, title='3D diff plot', colx='x', coly='y', colz='z', return fig -def reprojection_diff(isd, cube, nx=10, ny=50, width=500, height=500): +def reprojection_diff(isd, cube, nx=10, ny=50, width=500, height=500, edge_pad=0.0): """ """ @@ -304,7 +304,7 @@ def reprojection_diff(isd, cube, nx=10, ny=50, width=500, height=500): nsamples = isdjson['image_samples'] # generate meshgrid - xs, ys = np.mgrid[0:nsamples:nsamples/nx, 0:nlines:nlines/ny] + xs, ys = np.mgrid[edge_pad:nsamples-edge_pad:nsamples/nx, edge_pad:nlines-edge_pad:nlines/ny] xs, ys = xs.flatten(), ys.flatten() csmcam = csm.create_csm(isd) -- GitLab