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

Revised some docstrings.

parent 191a3c32
Pipeline #369 passed with stages
in 1 minute and 1 second
......@@ -303,6 +303,7 @@ class COREG_LOCAL(object):
'Y_WIN_SIZE','X_SHIFT_PX','Y_SHIFT_PX', 'X_SHIFT_M', 'Y_SHIFT_M', 'ABS_SHIFT' and 'ANGLE' containing all
information containing all the results frm coregistration for all points in the geometric quality grid.
"""
return self.tiepoint_grid.CoRegPoints_table
......
......@@ -74,11 +74,11 @@ class DESHIFTER(object):
self.init_kwargs = self.init_args['kwargs']
# unpack args
self.im2shift = im2shift if isinstance(im2shift, GeoArray) else GeoArray(im2shift)
self.GCPList = coreg_results['GCPList'] if 'GCPList' in coreg_results else None
self.ref_gt = coreg_results['reference geotransform']
self.ref_grid = coreg_results['reference grid']
self.ref_prj = coreg_results['reference projection']
self.im2shift = im2shift if isinstance(im2shift, GeoArray) else GeoArray(im2shift)
self.GCPList = coreg_results['GCPList'] if 'GCPList' in coreg_results else None
self.ref_gt = coreg_results['reference geotransform']
self.ref_grid = coreg_results['reference grid']
self.ref_prj = coreg_results['reference projection']
# unpack kwargs
self.path_out = kwargs.get('path_out' , None)
......@@ -96,10 +96,10 @@ class DESHIFTER(object):
self.q = kwargs.get('q' , False) if not self.v else False # overridden by v
self.progress = kwargs.get('progress' , True) if not self.q else False # overridden by q
self.im2shift.nodata = kwargs.get('nodata', self.im2shift.nodata)
self.im2shift.q = self.q
self.shift_prj = self.im2shift.projection
self.shift_gt = list(self.im2shift.geotransform)
self.im2shift.nodata = kwargs.get('nodata', self.im2shift.nodata)
self.im2shift.q = self.q
self.shift_prj = self.im2shift.projection
self.shift_gt = list(self.im2shift.geotransform)
if not self.GCPList:
# in case of global de-shifting -> the updated map info from coreg_results already has the final map info
......@@ -132,9 +132,9 @@ class DESHIFTER(object):
def _get_out_grid(self):
# parse given params
out_gsd = self.init_kwargs.get('out_gsd' , None)
match_gsd = self.init_kwargs.get('match_gsd' , False)
out_grid = self.init_kwargs.get('target_xyGrid', None)
out_gsd = self.init_kwargs.get('out_gsd' , None)
match_gsd = self.init_kwargs.get('match_gsd' , False)
out_grid = self.init_kwargs.get('target_xyGrid', None)
# assertions
assert out_grid is None or (isinstance(out_grid,(list, tuple)) and len(out_grid)==2)
......
......@@ -127,6 +127,7 @@ class Tie_Point_Grid(object):
def GCPList(self):
"""Returns a list of GDAL compatible GCP objects.
"""
if self._GCPList:
return self._GCPList
else:
......@@ -146,6 +147,7 @@ class Tie_Point_Grid(object):
:param grid_res:
:return:
"""
if not self.q:
print('Initializing tie points grid...')
......@@ -573,6 +575,7 @@ class Tie_Point_Grid(object):
:param skip_nodata_col: <str> determines which column of Tie_Point_Grid.CoRegPoints_table is used to
identify points where no valid match could be found
"""
GDF = self.CoRegPoints_table
GDF2pass = GDF if not skip_nodata else GDF[GDF[skip_nodata_col]!=self.outFillVal]
......
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