From 238833151b98a09cad278b105214c8260eb95285 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Fri, 5 Jan 2024 13:12:38 -0600 Subject: [PATCH] snapshot... --- modules/util/abi_surfrad.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/util/abi_surfrad.py b/modules/util/abi_surfrad.py index b3ebbf4c..884eabab 100644 --- a/modules/util/abi_surfrad.py +++ b/modules/util/abi_surfrad.py @@ -15,13 +15,12 @@ group_name_m = 'orig/' solzen_name = group_name_m + 'solar_zenith' snow_class_name = group_name_m + 'snow_class' -params_i = [group_name_i+'temp_ch38', group_name_i+'refl_ch01', group_name_i+'cloud_probability', - group_name_i+target_param] +params_i = [group_name_i+'temp_ch38', group_name_i+'refl_ch01', group_name_i+target_param] params_m = [group_name_m+'temp_ch38', group_name_m+'refl_ch01', group_name_m+'refl_submin_ch01', group_name_m+'refl_submax_ch01', group_name_m+'refl_substddev_ch01', - group_name_m+'cloud_probability', group_name_m+target_param, + group_name_m+'cloud_probability', group_name_m+'cloud_fraction'] param_idx_m = params_m.index(group_name_m + target_param) @@ -75,7 +74,7 @@ def process_cloud_frac(grd_k): grd_by_cat = get_cloud_frac_5cat(grd_k) keep_mix = np.logical_and(grd_by_cat > 0, grd_by_cat < 4) frac_mix = np.sum(keep_mix)/keep_mix.size - if frac_mix < 0.20: # at least 20% mixed to pass + if frac_mix < 0.15: # at least 15% mixed to pass return None grd_k = np.where(np.invert(keep), 0, grd_k) # Convert NaN to 0 -- GitLab