From 6040b6ab8d989e27e0437f30fc0edc81513e3892 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Mon, 27 Sep 2021 14:57:26 -0500 Subject: [PATCH] base pass_threshold on number of valid points (not total) in the box --- modules/icing/pirep_goes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index 0da623a6..20166a07 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -709,7 +709,8 @@ def run_qc(filename, filename_l1b, day_night='ANY', pass_thresh_frac=0.20, icing keep_idxs = [] for i in range(len(mask)): - frac = np.sum(mask[i]) / nx_x_ny + # frac = np.sum(mask[i]) / nx_x_ny + frac = np.sum(mask[i]) / num_tested[i] if icing: if frac > pass_thresh_frac: keep_idxs.append(idxs[i]) -- GitLab