Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
EnMAP
sensormapgeo
Commits
3546686f
Commit
3546686f
authored
Nov 26, 2021
by
Daniel Scheffler
Browse files
Bugfix.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
d27092ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
sensormapgeo/transformer_2d.py
View file @
3546686f
...
...
@@ -303,10 +303,10 @@ class SensorMapGeometryTransformer(object):
elif
self
.
resamp_alg
==
'gauss'
:
# ensure that sigmas are provided as list if data is 3-dimensional
if
data
.
ndim
!=
2
:
n_sigmas
=
len
(
opts
[
'sigmas'
])
# noqa
if
not
isinstance
(
opts
[
'sigmas'
],
list
):
opts
[
'sigmas'
]
=
[
opts
[
'sigmas'
]]
*
data
.
ndim
n_sigmas
=
len
(
opts
[
'sigmas'
])
# noqa
if
not
n_sigmas
==
data
.
ndim
:
raise
ValueError
(
"The 'sigmas' parameter must have the same number of values like data.ndim."
"n_sigmas: %d; data.ndim: %d"
%
(
n_sigmas
,
data
.
ndim
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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