From db17682a4728333ac2311e6bf9d767e8accb1fac Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Fri, 29 Apr 2022 11:46:57 -0500
Subject: [PATCH] snapshot...

---
 modules/icing/util.py | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/modules/icing/util.py b/modules/icing/util.py
index 66a7000d..2b9ef39d 100644
--- a/modules/icing/util.py
+++ b/modules/icing/util.py
@@ -3,7 +3,8 @@ import deeplearning.icing_fcn as icing_fcn
 import deeplearning.icing_cnn as icing_cnn
 from icing.pirep_goes import setup, time_filter_3
 from util.util import get_time_tuple_utc, is_day, check_oblique, get_average, homedir, write_icing_file_nc4,\
-    make_for_full_domain_predict, prepare_evaluate
+    write_icing_file_nc4_viirs,\
+    make_for_full_domain_predict, make_for_full_domain_predict_viirs_clavrx, prepare_evaluate
 from util.plot import make_icing_image
 from util.geos_nav import get_navigation, get_lon_lat_2d_mesh
 from util.setup import model_path_day, model_path_night
@@ -184,8 +185,13 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h
         avg_bt = np.array(avg_bt)
         bt_10_4_2d = avg_bt.reshape((num_lines, num_elems))
 
-        write_icing_file_nc4(clvrx_str_time, output_dir, preds_2d_dct, probs_2d_dct,
-                             x_rad, y_rad, lons_2d, lats_2d, cc, ll,
+        # write_icing_file_nc4(clvrx_str_time, output_dir, preds_2d_dct, probs_2d_dct,
+        #                      x_rad, y_rad, lons_2d, lats_2d, cc, ll,
+        #                      satellite=satellite, domain=domain, use_nan=use_nan, has_time=has_time,
+        #                      prob_thresh=prob_thresh, bt_10_4=bt_10_4_2d)
+
+        write_icing_file_nc4_viirs(clvrx_str_time, output_dir, preds_2d_dct, probs_2d_dct,
+                             lons_2d, lats_2d,
                              satellite=satellite, domain=domain, use_nan=use_nan, has_time=has_time,
                              prob_thresh=prob_thresh, bt_10_4=bt_10_4_2d)
 
-- 
GitLab