diff --git a/modules/util/viirs_surfrad.py b/modules/util/viirs_surfrad.py index 54902c7274a0683ed3ec102e8650b14bbd380083..5343ee25476666c27cfad2e93a12b6e2b6edb498 100644 --- a/modules/util/viirs_surfrad.py +++ b/modules/util/viirs_surfrad.py @@ -39,8 +39,8 @@ def keep_tile(param, param_s, tile): def process_cld_prob_(grd_k): keep = np.invert(np.isnan(grd_k)) num_keep = np.sum(keep) - # if num_keep / grd_k.size < 0.98: - # return None + if num_keep / grd_k.size < 0.98: + return None keep = np.where(keep, np.logical_and(0.1 < grd_k, grd_k < 0.90), False) if np.sum(keep)/num_keep < 0.25: return None @@ -51,8 +51,8 @@ def process_cld_prob_(grd_k): def process_cld_opd_(grd_k): keep = np.invert(np.isnan(grd_k)) num_keep = np.sum(keep) - # if num_keep / grd_k.size < 0.98: - # return None + if num_keep / grd_k.size < 0.98: + return None grd_k = np.where(np.invert(keep), 0, grd_k) keep = np.where(keep, np.logical_and(0.1 < grd_k, grd_k < 158.0), False) if np.sum(keep)/num_keep < 0.50: