From cd55c9061c8f3689dd8de0cf8052b6e7dba56d0e Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Wed, 22 Jun 2022 12:49:31 -0500
Subject: [PATCH] fix some cf issues

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

diff --git a/modules/icing/util.py b/modules/icing/util.py
index 562485ec..f18c0bb0 100644
--- a/modules/icing/util.py
+++ b/modules/icing/util.py
@@ -191,6 +191,7 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h
             model_path = night_model_path
             if lunar:
                 model_path = day_model_path
+                day = 'DAY'
 
             nght_data_dct = {name: [] for name in nght_train_params}
             for name in nght_train_params:
@@ -201,7 +202,7 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h
                 nght_grd_dct[ds_name] = np.stack(nght_data_dct[ds_name])
 
             preds_nght_dct, probs_nght_dct = model_module.run_evaluate_static(nght_grd_dct, num_nght_tiles, model_path,
-                                                                              day_night='NIGHT', l1b_or_l2=l1b_andor_l2,
+                                                                              day_night=day, l1b_or_l2=l1b_andor_l2,
                                                                               prob_thresh=prob_thresh,
                                                                               use_flight_altitude=use_flight_altitude,
                                                                               flight_levels=flight_levels)
-- 
GitLab