Skip to content
Snippets Groups Projects
Commit 895b6748 authored by Paolo Veglio's avatar Paolo Veglio
Browse files

fixed type in get_b1_thresholds

parent ade6b7cf
No related branches found
No related tags found
No related merge requests found
...@@ -223,7 +223,7 @@ def get_b1_thresholds(data, thresholds, scene_idx): ...@@ -223,7 +223,7 @@ def get_b1_thresholds(data, thresholds, scene_idx):
x[idx] = (ndvi[idx] - x1[idx])/(x2[idx] - x1[idx]) x[idx] = (ndvi[idx] - x1[idx])/(x2[idx] - x1[idx])
x = np.clip(x, 0, 1) x = np.clip(x, 0, 1)
indvi = np.array(indvi, dtype=np.int) indvi = np.array(indvi, dtype=np.int32)
thr = np.empty((ndvi.shape[0], 4)) thr = np.empty((ndvi.shape[0], 4))
thr_adj = np.empty((ndvi.shape[0], 4)) thr_adj = np.empty((ndvi.shape[0], 4))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment