From f1c2ffb78cfa59e4d847ded46370c5c6979f0f34 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Fri, 17 Feb 2023 10:35:02 -0600
Subject: [PATCH] snapshot...

---
 modules/util/viirs_l1b_l2.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/modules/util/viirs_l1b_l2.py b/modules/util/viirs_l1b_l2.py
index 6a102f1e..566071e3 100644
--- a/modules/util/viirs_l1b_l2.py
+++ b/modules/util/viirs_l1b_l2.py
@@ -64,8 +64,9 @@ 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)
-    if np.sum(keep)/num_keep < 0.25:
+    # 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:
         return None
     grd_k = np.where(np.invert(keep), 0, grd_k)
     return grd_k
@@ -198,7 +199,7 @@ def run(data_h5f, param_s, train_tiles, valid_tiles, dum, num_keep_x_tiles=8, ti
 
     num_keep_y_tiles = int(num_lines / tile_width) - 3
 
-    num_y_valid = int(num_keep_y_tiles * 0.1) + 1
+    num_y_valid = int(num_keep_y_tiles * 0.15) + 1
     num_y_train = num_keep_y_tiles - num_y_valid - 1
 
     for j in range(num_y_train):
-- 
GitLab