From 20bf6bedb74ec03a28a558fa0ab2b05d327fda50 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Thu, 4 Nov 2021 12:32:36 -0500
Subject: [PATCH] snapshot...

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

diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py
index 215aa899..8dc658a4 100644
--- a/modules/icing/pirep_goes.py
+++ b/modules/icing/pirep_goes.py
@@ -1904,7 +1904,7 @@ def run_make_images(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', ckpt_dir_s_pat
         h5f.close()
 
 
-def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', ckpt_dir_s_path=model_path, prob_thresh=0.5, satellite='GOES16', domain='CONUS'):
+def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=homedir, ckpt_dir_s_path=model_path, prob_thresh=0.5, satellite='GOES16', domain='CONUS', day_night='DAY'):
 
     train_params = ['cld_height_acha', 'cld_geo_thick', 'cld_temp_acha', 'cld_press_acha', 'supercooled_cloud_fraction',
                     'cld_emiss_acha', 'conv_cloud_fraction', 'cld_reff_dcomp', 'cld_opd_dcomp', 'iwc_dcomp', 'lwc_dcomp']
@@ -1940,7 +1940,7 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', ckpt_dir_s_p
             lats_2d = lat_s.reshape((num_lines, num_elems))
 
         preds_2d_dct, probs_2d_dct = run_evaluate_static_new(data_dct, num_lines, num_elems, ckpt_dir_s_path=ckpt_dir_s_path, prob_thresh=prob_thresh)
-        write_icing_file(clvrx_str_time, preds_2d_dct, probs_2d_dct, x_rad, y_rad, lons_2d, lats_2d)
+        write_icing_file(clvrx_str_time, output_dir, preds_2d_dct, probs_2d_dct, x_rad, y_rad, lons_2d, lats_2d)
 
         print('Done: ', clvrx_str_time)
         h5f.close()
-- 
GitLab