diff --git a/modules/util/viirs_l1b_l2.py b/modules/util/viirs_l1b_l2.py index 566071e301794d712a5bf40557aa455ac39c6581..c0e24df4e428ad9c245041c75cc0b29439a9613f 100644 --- a/modules/util/viirs_l1b_l2.py +++ b/modules/util/viirs_l1b_l2.py @@ -64,9 +64,8 @@ def process_cld_prob_(grd_k, dum): if num_keep / grd_k.size < 0.98: return None # hist_10 += np.histogram(grd_k.flatten(), range=[0.0, 1.0], bins=10)[0] - # keep = np.where(keep, np.logical_and(0.1 < grd_k, grd_k < 0.90), False) - keep = np.where(keep, grd_k < 0.50, False) - if np.sum(keep)/num_keep < 0.50: + keep = np.where(keep, np.logical_and(0.10 < grd_k, grd_k < 0.90), False) + if np.sum(keep)/num_keep < 0.30: return None grd_k = np.where(np.invert(keep), 0, grd_k) return grd_k