Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Scheffler
arosics
Commits
92340618
Commit
92340618
authored
Aug 10, 2018
by
Daniel Scheffler
Browse files
Bugfix.
parent
3d797200
Pipeline
#3089
failed with stages
in 3 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
arosics/CoReg.py
View file @
92340618
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment