From 26adda3b100334e959e6e12682bc53c20fc905e7 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Mon, 7 Feb 2022 12:45:03 -0600 Subject: [PATCH] snapshot... --- modules/icing/pirep_goes.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index 5388ef34..8a639189 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -2296,13 +2296,12 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h for flvl in flight_levels: fd_preds = preds_2d_dct[flvl] fd_probs = probs_2d_dct[flvl] - if use_nan: - fd_probs = np.where(fd_probs < prob_thresh, np.nan, fd_probs) preds_2d_dct[flvl] = fd_preds.reshape((num_lines, num_elems)) probs_2d_dct[flvl] = fd_probs.reshape((num_lines, num_elems)) write_icing_file_nc4(clvrx_str_time, output_dir, preds_2d_dct, probs_2d_dct, - x_rad, y_rad, lons_2d, lats_2d, cc, ll, satellite=satellite, domain=domain, use_nan=use_nan) + x_rad, y_rad, lons_2d, lats_2d, cc, ll, + satellite=satellite, domain=domain, use_nan=use_nan, prob_thresh=prob_thresh) print('Done: ', clvrx_str_time) h5f.close() -- GitLab