From a391b7b98bc0aab9d89ed1ed5dbe3f1f24352cfb Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Tue, 19 Oct 2021 11:51:13 -0500 Subject: [PATCH] snapshot... --- modules/icing/pirep_goes.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index f781fec0..e3920395 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -4,7 +4,7 @@ import pickle import matplotlib.pyplot as plt import os from util.util import get_time_tuple_utc, GenericException, add_time_range_to_filename, is_night, is_day, \ - check_oblique, make_times, find_bin_index, get_timestamp, homedir + check_oblique, make_times, find_bin_index, get_timestamp, homedir, write_icing_file from util.plot import make_icing_image from aeolus.datasource import CLAVRx, CLAVRx_VIIRS, GOESL1B, CLAVRx_H08 import h5py @@ -1883,7 +1883,9 @@ def run_make_images(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', ckpt_dir_s_pat else: keep_lons = None keep_lats = None - ice_lons, ice_lats = run_evaluate_static(h5f, ckpt_dir_s_path=ckpt_dir_s_path, prob_thresh=prob_thresh, satellite=satellite, domain=domain) + + ice_lons, ice_lats, preds_2d, lons_2d, lats_2d, x_rad, y_rad = run_evaluate_static(h5f, ckpt_dir_s_path=ckpt_dir_s_path, prob_thresh=prob_thresh, satellite=satellite, domain=domain) make_icing_image(h5f, ice_lons, ice_lats, clvrx_str_time, satellite, domain, ice_lons_vld=keep_lons, ice_lats_vld=keep_lats, extent=extent) + write_icing_file('/home/rink/icing_pred.h5', clvrx_str_time, preds_2d, x_rad, y_rad, lons_2d, lats_2d) print('Done: ', clvrx_str_time) h5f.close() -- GitLab