From 1750ed50db0c0ccf09bce60c8c05f64678d4d73e Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Mon, 19 Sep 2022 09:15:44 -0500 Subject: [PATCH] snaphot... --- modules/util/viirs_l1b_l2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/util/viirs_l1b_l2.py b/modules/util/viirs_l1b_l2.py index b071fa19..20f1a922 100644 --- a/modules/util/viirs_l1b_l2.py +++ b/modules/util/viirs_l1b_l2.py @@ -62,7 +62,7 @@ def keep_tile(param_s, tile): grd_k = tile[k, ].flatten() keep = np.invert(np.isnan(grd_k)) total = np.sum(keep) - keep = np.where(keep, np.invert(0.05 < grd_k < 0.95), False) + keep = np.where(keep, np.invert(np.logical_and(0.05 < grd_k, grd_k < 0.95)), False) if keep/total > 0.5: return True -- GitLab