From b2cca1c56dfcef6e785f551d9afcd7e0be45c14c Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Mon, 20 Mar 2023 10:48:50 -0500 Subject: [PATCH] snapshot... --- modules/util/viirs_surfrad.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/modules/util/viirs_surfrad.py b/modules/util/viirs_surfrad.py index 9735b512..6a83650f 100644 --- a/modules/util/viirs_surfrad.py +++ b/modules/util/viirs_surfrad.py @@ -65,17 +65,6 @@ def keep_tile(p_idx, tile): return None -# 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.20, False) -# frac_keep = np.sum(keep_clr)/num_keep -# if not (0.30 < frac_keep < 0.70): -# return None -# grd_k = np.where(np.invert(keep), 0, grd_k) # Convert NaN to 0 -# return grd_k - - def process_cld_prob(grd_k): keep = np.invert(np.isnan(grd_k)) num_keep = np.sum(keep) -- GitLab