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

Bugfix.

parent 3d797200
Pipeline #3089 failed with stages
in 3 minutes and 22 seconds
......@@ -432,13 +432,15 @@ class COREG(object):
if self.grid2use == 'ref':
# resample target image to reference image
self.shift.get_subset(zslice=slice(self.shift.band4match, self.shift.band4match + 1))
if self.shift.bands > 1:
self.shift = self.shift.get_subset(zslice=slice(self.shift.band4match, self.shift.band4match + 1))
self.shift.reproject_to_new_grid(prototype=self.ref, CPUs=self.CPUs)
self.shift.band4match = 0 # after resampling there is only one band in the GeoArray
else:
# resample reference image to target image
self.ref.get_subset(zslice=slice(self.ref.band4match, self.ref.band4match + 1))
if self.ref.bands > 1:
self.ref = self.ref.get_subset(zslice=slice(self.ref.band4match, self.ref.band4match + 1))
self.ref.reproject_to_new_grid(prototype=self.shift, CPUs=self.CPUs)
self.ref.band4match = 0 # after resampling there is only one band in the GeoArray
......
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