Commit 488f9d27 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

The tie point grid now also includes the last x any y grid points (bugfix).


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 9eb435f1
Pipeline #23028 passed with stages
in 16 minutes and 50 seconds
......@@ -228,8 +228,8 @@ class Tie_Point_Grid(object):
if not self.q:
print('Initializing tie points grid...')
Xarr, Yarr = np.meshgrid(np.arange(0, self.shift.shape[1], grid_res),
np.arange(0, self.shift.shape[0], grid_res))
Xarr, Yarr = np.meshgrid(np.arange(0, self.shift.shape[1] + grid_res, grid_res),
np.arange(0, self.shift.shape[0] + grid_res, grid_res))
mapXarr = np.full_like(Xarr, self.shift.gt[0], dtype=np.float64) + Xarr * self.shift.gt[1]
mapYarr = np.full_like(Yarr, self.shift.gt[3], dtype=np.float64) - Yarr * abs(self.shift.gt[5])
......
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