Skip to content
Snippets Groups Projects
Commit 82070dd5 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 61653fe0
No related branches found
No related tags found
No related merge requests found
...@@ -78,12 +78,10 @@ def keep_tile(param_s, tile): ...@@ -78,12 +78,10 @@ def keep_tile(param_s, tile):
def process_cld_prob(param_s, tile): def process_cld_prob(param_s, tile):
k = param_s.index('cloud_probability') k = param_s.index('cloud_probability')
# grd_k = tile[k, ].flatten().copy()
grd_k = tile[k,].copy() grd_k = tile[k,].copy()
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: if total == 0:
# if total != grd_k.size:
return None return None
grd_k = np.where(np.logical_and(keep, grd_k < 0.5), 0.0, 1.0) grd_k = np.where(np.logical_and(keep, grd_k < 0.5), 0.0, 1.0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment