diff --git a/modules/util/viirs_l1b_l2.py b/modules/util/viirs_l1b_l2.py index daee8850becb60b2c1eef593f435f92c9f62e3b3..a4851554b300e5f706456c591b5bc490f2198b7f 100644 --- a/modules/util/viirs_l1b_l2.py +++ b/modules/util/viirs_l1b_l2.py @@ -88,11 +88,11 @@ def keep_tile(p_idx, tile): def process_cld_prob(grd_k): keep = np.invert(np.isnan(grd_k)) num_keep = np.sum(keep) - keep_clr = np.where(keep, grd_k < 0.20, False) - keep_cld = np.where(keep, grd_k > 0.80, False) + keep_clr = np.where(keep, grd_k < 0.30, False) + keep_cld = np.where(keep, grd_k > 0.70, False) frac_clr = np.sum(keep_clr)/num_keep frac_cld = np.sum(keep_cld)/num_keep - if not (frac_clr >= 0.23 and frac_cld >= 0.23): + if not (frac_clr >= 0.22 and frac_cld >= 0.22): return None grd_k = np.where(np.invert(keep), 0, grd_k) # Convert NaN to 0 return grd_k