Skip to content
Snippets Groups Projects
Commit 2e8faa6a authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fix dimension bug.


Signed-off-by: default avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 1979ca1d
No related branches found
Tags v0.20.1
1 merge request!103Enhancement/update to sensormapgeo 1.0.0
......@@ -95,9 +95,9 @@ class Orthorectifier(object):
lons_vnir, lats_vnir = enmap_ImageL1.vnir.detector_meta.lons, enmap_ImageL1.vnir.detector_meta.lats
lons_swir, lats_swir = enmap_ImageL1.swir.detector_meta.lons, enmap_ImageL1.swir.detector_meta.lats
if not enmap_ImageL1.vnir.detector_meta.geolayer_has_keystone:
if not enmap_ImageL1.vnir.detector_meta.geolayer_has_keystone and lons_vnir.ndim == 3:
lons_vnir, lats_vnir = lons_vnir[:, :, 0], lats_vnir[:, :, 0]
if not enmap_ImageL1.swir.detector_meta.geolayer_has_keystone:
if not enmap_ImageL1.swir.detector_meta.geolayer_has_keystone and lons_swir.ndim == 3:
lons_swir, lats_swir = lons_swir[:, :, 0], lats_swir[:, :, 0]
# get target EPSG code and common extent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment