Commit cfd1b29d authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

added keyword to view_CoRegPoints to make figures zoomable

- view_CoRegPoints(): added keyword to make figure zoomable

- updated __version__
parent a36ae95f
......@@ -9,7 +9,7 @@ from .components import utilities
from .components import geometry
__author__ = 'Daniel Scheffler'
__version__= '2017-03-15_01'
__version__= '2017-03-16_01'
......@@ -301,7 +301,7 @@ class COREG_LOCAL(object):
def view_CoRegPoints(self, attribute2plot='ABS_SHIFT', cmap=None, exclude_fillVals=True, backgroundIm='tgt',
hide_filtered=True, figsize=None, savefigPath='', savefigDPI=96, showFig=True):
hide_filtered=True, figsize=None, savefigPath='', savefigDPI=96, showFig=True, zoomable=False):
"""Shows a map of the calculated quality grid with the target image as background.
:param attribute2plot: <str> the attribute of the quality grid to be shown (default: 'ABS_SHIFT')
......@@ -315,6 +315,7 @@ class COREG_LOCAL(object):
:param savefigPath:
:param savefigDPI:
:param showFig: <bool> whether to show or to hide the figure
:param zoomable: <bool> enable or disable zooming via mpld3
......@@ -322,7 +323,7 @@ class COREG_LOCAL(object):
if backgroundIm not in ['tgt','ref']: raise ValueError('backgroundIm')
backgroundIm = self.im2shift if backgroundIm=='tgt' else self.imref
fig, ax, map2show = backgroundIm.show_map(figsize=figsize, nodataVal=self.nodata[1], return_map=True,
band=self.COREG_obj.shift.band4match, zoomable=zoomable)
# fig, ax, map2show = backgroundIm.show_map_utm(figsize=(20,20), nodataVal=self.nodata[1], return_map=True)
Markdown is supported
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