From bc34300a33b0b06fa8c7b7b7acf54605521eef52 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Mon, 22 Aug 2022 11:07:19 -0500
Subject: [PATCH] fix bug in night mode

---
 modules/icing/util.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/icing/util.py b/modules/icing/util.py
index 85d8956f..bc6aa48a 100644
--- a/modules/icing/util.py
+++ b/modules/icing/util.py
@@ -126,6 +126,7 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h
         bt_10_4 = ancil_data_dct[bt_fld_name]
         day_idxs = []
         nght_idxs = []
+        all_idxs = []
         avg_bt = []
         for j in range(num_lines):
             for i in range(num_elems):
@@ -135,6 +136,7 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h
                 if not check_oblique(satzen[k]):
                     continue
 
+                all_idxs.append(k)
                 if is_day(solzen[k]):
                     day_idxs.append(k)
                 else:
@@ -213,8 +215,6 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h
 
         elif day_night == 'NIGHT':
             model_path = night_model_path
-            all_idxs = np.arange(num_lines * num_elems)
-
             mode = 'NIGHT'
             if use_dnb and lunar_illuminated:
                 model_path = day_model_path
-- 
GitLab