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

Bugfix.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 322a88ce
Pipeline #15840 passed with stage
in 21 seconds
...@@ -157,8 +157,8 @@ def warp_ndarray_rasterio(ndarray, in_gt, in_prj, out_prj, out_gt=None, outRowsC ...@@ -157,8 +157,8 @@ def warp_ndarray_rasterio(ndarray, in_gt, in_prj, out_prj, out_gt=None, outRowsC
raise NotImplementedError('Different projections are currently not supported.') raise NotImplementedError('Different projections are currently not supported.')
else: # ('projected','geographic') else: # ('projected','geographic')
px_size_LatLon = np.array(pixelToLatLon([1, 1], geotransform=in_gt, projection=in_prj)) - \ px_size_LatLon = np.array(pixelToLatLon([[1, 1]], geotransform=in_gt, projection=in_prj)) - \
np.array(pixelToLatLon([0, 0], geotransform=in_gt, projection=in_prj)) np.array(pixelToLatLon([[0, 0]], geotransform=in_gt, projection=in_prj))
out_res = tuple(reversed(abs(px_size_LatLon))) out_res = tuple(reversed(abs(px_size_LatLon)))
print('OUT_RES NOCHMAL CHECKEN: ', out_res) print('OUT_RES NOCHMAL CHECKEN: ', out_res)
......
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