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

snapshot...

parent 052e6d06
No related branches found
No related tags found
No related merge requests found
......@@ -80,12 +80,12 @@ def process_cld_prob(param_s, tile):
k = param_s.index('cloud_probability')
grd_k = tile[k, ].copy()
keep = np.invert(np.isnan(grd_k))
total = np.sum(keep)
if total == 0:
if keep / grd_k.size < 0.95:
return None
grd_k = np.where(np.logical_and(keep, grd_k < 0.5), 0.0, 1.0)
grd_k = np.where(np.invert(keep), 0, grd_k)
grd_k = np.where(grd_k < 0.5, 0.0, 1.0)
tile[k,] = grd_k
return tile
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment