Commit 380a4c19 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Bugfix.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 0d32f4ff
Pipeline #3903 failed with stage
in 1 minute and 59 seconds
......@@ -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
......
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