From df66a39b1c2bd871130da961cb4ee0c88a82b542 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Sun, 10 Oct 2021 12:27:51 -0500
Subject: [PATCH] snapshot...

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

diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py
index b94f2746..785be5bc 100644
--- a/modules/icing/pirep_goes.py
+++ b/modules/icing/pirep_goes.py
@@ -1843,11 +1843,14 @@ def run_make_images(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', ckpt_dir_s_pat
         ts_0 = dto_0.timestamp()
         ts_1 = dto_1.timestamp()
         if pirep_file is not None:
-            _, obs_lons, obs_lats, _ = time_filter_3(ice_dict, ts_0, ts_1)
-        else:
+            _, keep_lons, keep_lats, _ = time_filter_3(ice_dict, ts_0, ts_1)
+        elif obs_times is not None:
             keep = np.logical_and(obs_times >= ts_0, obs_times < ts_1)
             keep_lons = obs_lons[keep]
             keep_lats = obs_lats[keep]
+        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)
         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)
         print('Done: ', clvrx_str_time)
-- 
GitLab