From f24e295e2ca527c4772616bec5b2db0fea68a2ea Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Mon, 20 Dec 2021 15:14:48 -0600 Subject: [PATCH] snapshot... --- modules/icing/pirep_goes.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index 0c157f20..25b37f76 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -2052,18 +2052,18 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h data_dct, ll, cc = make_for_full_domain_predict(h5f, name_list=train_params, satellite=satellite, domain=domain) # ancil_data_dct, _, _ = make_for_full_domain_predict(h5f, name_list=['cld_height_acha', 'cld_geo_thick']) - solzen, satzen = make_for_full_domain_predict2(h5f, satellite=satellite, domain=domain) - keep = np.logical_or(lats_2d > -63.0, lats_2d < 63.0) - keep = np.where(keep, satzen < 70, False) - if day_night == 'DAY': - keep = np.where(keep, solzen < 80, False) - if fidx == 0: num_elems = len(cc) num_lines = len(ll) nav = get_navigation(satellite, domain) lons_2d, lats_2d, x_rad, y_rad = get_lon_lat_2d_mesh(nav, ll, cc) + solzen, satzen = make_for_full_domain_predict2(h5f, satellite=satellite, domain=domain) + keep = np.logical_or(lats_2d > -63.0, lats_2d < 63.0) + keep = np.where(keep, satzen < 70, False) + if day_night == 'DAY': + keep = np.where(keep, solzen < 80, False) + preds_2d_dct, probs_2d_dct = run_evaluate_static(data_dct, num_lines, num_elems, day_night=day_night, ckpt_dir_s_path=model_path, prob_thresh=prob_thresh, use_flight_altitude=use_flight_altitude) -- GitLab