diff --git a/modules/util/abi_surfrad.py b/modules/util/abi_surfrad.py index 1c0be958bba7c79fbb143ed47f9ec8156664a0d1..450e761d221acaf540d622ff8814c308caf0438a 100644 --- a/modules/util/abi_surfrad.py +++ b/modules/util/abi_surfrad.py @@ -48,12 +48,11 @@ def keep_tile(p_idx, tile): def process_cld_prob(grd_k): keep = np.invert(np.isnan(grd_k)) num_keep = np.sum(keep) - keep_clr = np.where(keep, grd_k < 0.30, False) + # keep_clr = np.where(keep, grd_k < 0.30, False) keep_cld = np.where(keep, grd_k > 0.70, False) - frac_clr = np.sum(keep_clr)/num_keep + # frac_clr = np.sum(keep_clr)/num_keep frac_cld = np.sum(keep_cld)/num_keep - # if not (frac_clr >= 0.20 and frac_cld >= 0.20): - if not frac_cld >= 0.15: + if not (0.10 <= frac_cld <= 0.90): return None grd_k = np.where(np.invert(keep), 0, grd_k) # Convert NaN to 0 return grd_k