From d85bd5ca320ed1be124068fd30f072eaa582b99d Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Sat, 18 Feb 2023 13:25:34 -0600 Subject: [PATCH] snapshot... --- modules/util/viirs_l1b_l2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/util/viirs_l1b_l2.py b/modules/util/viirs_l1b_l2.py index f62e5c5c..a1ff0055 100644 --- a/modules/util/viirs_l1b_l2.py +++ b/modules/util/viirs_l1b_l2.py @@ -64,10 +64,10 @@ 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.10 < grd_k, grd_k < 0.90), False) - keep = np.where(keep, grd_k < 0.50, False) + # keep = np.where(keep, grd_k < 0.50, False) + keep = np.where(keep, np.logical_or(0.15 > grd_k, grd_k < 0.85), False) frac_keep = np.sum(keep)/num_keep - if 0.30 < frac_keep < 0.70: + if 0.40 < frac_keep < 0.60: return None grd_k = np.where(np.invert(keep), 0, grd_k) return grd_k -- GitLab