diff --git a/modules/util/viirs_l1b_l2.py b/modules/util/viirs_l1b_l2.py index 4cf6eb97e28509c01245ac1ed2ab1731e3a2a0cb..824077d52d59948724cbf7be918e5e271418bae1 100644 --- a/modules/util/viirs_l1b_l2.py +++ b/modules/util/viirs_l1b_l2.py @@ -64,7 +64,7 @@ def keep_tile(param_s, tile): total = np.sum(keep) keep = np.where(keep, np.invert(np.logical_and(0.05 < grd_k, grd_k < 0.95)), False) - if keep/total > 0.5: + if np.sum(keep)/total > 0.5: return True else: return False