From 33dff2a890118813f17a3fee564d5ac0a7eda7f6 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Mon, 27 Mar 2023 16:35:32 -0500
Subject: [PATCH] snapshot...

---
 modules/util/viirs_surfrad.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/util/viirs_surfrad.py b/modules/util/viirs_surfrad.py
index 38e11bb8..db9aa86e 100644
--- a/modules/util/viirs_surfrad.py
+++ b/modules/util/viirs_surfrad.py
@@ -92,11 +92,11 @@ def process_cld_opd(grd_k):
     keep = np.invert(np.isnan(grd_k))
     num_keep = np.sum(keep)
     keep_thin = np.where(keep, np.logical_and(grd_k > 0.1, grd_k < 4.0), False)
-    keep_thik = np.where(keep, np.logical_and(grd_k > 20.0, grd_k < 158.00), False)
+    keep_thik = np.where(keep, np.logical_and(grd_k > 4.0, grd_k < 40.0), False)
     frac_thin = np.sum(keep_thin) / num_keep
     frac_thik = np.sum(keep_thik) / num_keep
-    # if not (frac_thin >= 0.10 and frac_thik >= 0.10):
-    if not (frac_thin >= 0.20):
+    if not (frac_thin >= 0.20 and frac_thik >= 0.20):
+    # if not (frac_thin >= 0.20):
         return None
     grd_k = np.where(np.invert(keep), 0, grd_k)
     return grd_k
-- 
GitLab