diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index b94f2746358cac0437d8f305f5e64f35c128b54c..785be5bc230c23ba6b164ad3dd3c418c45f85791 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)