From 01b570ff2a02f1520511dcc2dc79a26b8f6d81e3 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Tue, 12 Sep 2023 12:04:13 -0500 Subject: [PATCH] snapshot... --- modules/util/abi_surfrad_opd.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/util/abi_surfrad_opd.py b/modules/util/abi_surfrad_opd.py index 3583f9ad..ae22e342 100644 --- a/modules/util/abi_surfrad_opd.py +++ b/modules/util/abi_surfrad_opd.py @@ -98,11 +98,10 @@ def get_cloud_frac_5cat(grd_k): def process_cld_opd(grd_k): keep = np.invert(np.isnan(grd_k)) num_keep = np.sum(keep) - keep_cld = np.where(keep, np.logical_and(2.0 < grd_k, grd_k < 158.0), False) - # keep_cld = np.where(keep, 2.0 < grd_k, False) + keep_cld = np.where(keep, np.logical_and(0.8 < grd_k, grd_k < 158.0), False) frac_cld = np.sum(keep_cld)/num_keep - if not (0.20 < frac_cld < 0.90): # if not (0.20 < frac_cld): + if not (0.20 < frac_cld < 0.90): return None grd_k = np.where(np.invert(keep), 0, grd_k) # Convert NaN to 0 return grd_k -- GitLab