Commit 8e4fa256 authored by Julien Michel's avatar Julien Michel
Browse files

BUG: Fix scaling formula

parent 6f90f6b8
......@@ -220,7 +220,8 @@ class Landsat:
# Skip first dimension
np_arr = np_arr[0, ...]
np_arr_rescaled = (factors * np_arr) + shifts
np_arr_rescaled = (factors[:, None, None] *
np_arr) + shifts[:, None, None]
for i, b in enumerate(bands):
np_arr_rescaled[i, ...][np_arr[i, ...] ==
......
Supports Markdown
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