Skip to content
Snippets Groups Projects
Commit 7c3ca6a6 authored by tomrink's avatar tomrink
Browse files

snaphot...

parent 5990e46c
No related branches found
No related tags found
No related merge requests found
...@@ -62,6 +62,8 @@ def keep_tile(param_s, tile): ...@@ -62,6 +62,8 @@ def keep_tile(param_s, tile):
grd_k = tile[k, ].flatten() grd_k = tile[k, ].flatten()
keep = np.invert(np.isnan(grd_k)) keep = np.invert(np.isnan(grd_k))
total = np.sum(keep) total = np.sum(keep)
if total == 0:
return False
keep = np.where(keep, np.invert(np.logical_and(0.05 < grd_k, grd_k < 0.95)), False) keep = np.where(keep, np.invert(np.logical_and(0.05 < grd_k, grd_k < 0.95)), False)
if np.sum(keep)/total > 0.5: if np.sum(keep)/total > 0.5:
......
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