From 8fa6dd8784ea9a63fb1dd35fa18e47296be38805 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Mon, 29 Apr 2024 12:55:00 -0500
Subject: [PATCH] snapshot...

---
 modules/icing/pirep_goes.py | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py
index c464a4aa..21f24ff1 100644
--- a/modules/icing/pirep_goes.py
+++ b/modules/icing/pirep_goes.py
@@ -1084,7 +1084,7 @@ def run_qc(filename, filename_l1b, day_night='ANY', pass_thresh_frac=0.20, cloud
         mask, idxs, num_tested = apply_qc_icing_pireps_v3(icing_alt, cld_top_hgt, cld_geo_dz, cld_phase, cld_opd, cld_mask, bt_11um, sol_zen, sat_zen, cld_temp, day_night=day_night, cloudy_frac=cloudy_frac)
 
     keep_idxs = []
-    mask_keep_idxs = []
+    keep_mask = []
 
     for i in range(len(mask)):
         # keep_idxs.append(idxs[i])
@@ -1092,10 +1092,10 @@ def run_qc(filename, filename_l1b, day_night='ANY', pass_thresh_frac=0.20, cloud
         if icing:
             if frac > pass_thresh_frac:
                 keep_idxs.append(idxs[i])
-                mask_keep_idxs.append(i)
+                keep_mask.append(mask)
         elif frac > pass_thresh_frac:
             keep_idxs.append(idxs[i])
-            mask_keep_idxs.append(i)
+            keep_mask.append(mask)
 
     if len(keep_idxs) == 0:
         f.close()
@@ -1105,9 +1105,7 @@ def run_qc(filename, filename_l1b, day_night='ANY', pass_thresh_frac=0.20, cloud
     print('day_night, icing, all, valid, pass: ', day_night, icing, len(icing_alt), len(mask), len(keep_idxs))
     print('-----------------------')
     keep_idxs = np.array(keep_idxs)
-    mask_keep_idxs = np.array(mask_keep_idxs)
     mask = np.concatenate(mask).reshape((-1, ny, nx))
-    mask = mask[mask_keep_idxs,]
 
     data_dct = {}
     for didx, ds_name in enumerate(ds_list):
-- 
GitLab