From f1170407486cccdbf631429a66e8ee77be8d2229 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Sun, 19 Mar 2023 11:22:15 -0500
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 daee8850..a4851554 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
-- 
GitLab