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

snapshot...

parent 8af73363
Branches
No related tags found
No related merge requests found
...@@ -82,7 +82,8 @@ def process_cld_prob(param_s, tile): ...@@ -82,7 +82,8 @@ def process_cld_prob(param_s, tile):
grd_k = tile[k, ].flatten().copy() grd_k = tile[k, ].flatten().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