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
geomultisens
gms_preprocessing
Commits
380a4c19
Commit
380a4c19
authored
Apr 11, 2019
by
Daniel Scheffler
Browse files
Bugfix.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
0d32f4ff
Pipeline
#3903
failed with stage
in 1 minute and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gms_preprocessing/algorithms/classification.py
View file @
380a4c19
...
...
@@ -510,7 +510,7 @@ def calc_sam(s1_norm, s2_norm, axis=0):
upper
=
np
.
sum
(
s1_norm
*
s2_norm
,
axis
=
axis
)
lower
=
np
.
sqrt
(
np
.
sum
(
s1_norm
*
s1_norm
,
axis
=
axis
))
*
np
.
sqrt
(
np
.
sum
(
s2_norm
*
s2_norm
,
axis
=
axis
))
if
lower
.
ndim
>
1
:
if
isinstance
(
lower
,
np
.
ndarray
)
:
lower
[
lower
==
0
]
=
1e-10
else
:
lower
=
lower
or
1e-10
...
...
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