diff --git a/modules/util/viirs_l1b_l2.py b/modules/util/viirs_l1b_l2.py index 2eb09c156b83ca59dcda287302ebe7952acdd3bf..c23a8c3de67647a4c05c74a29f47059785d7efd7 100644 --- a/modules/util/viirs_l1b_l2.py +++ b/modules/util/viirs_l1b_l2.py @@ -61,7 +61,6 @@ data_params = l2_params def keep_tile(param_s, tile): - pass k = param_s.index('cloud_fraction') grd_k = tile[k, ].flatten() keep = np.invert(np.isnan(grd_k)) @@ -82,8 +81,8 @@ def process_cld_prob(param_s, tile): grd_k = tile[k, ].flatten().copy() keep = np.invert(np.isnan(grd_k)) total = np.sum(keep) - # if total == 0: - if total != grd_k.size: + if total == 0: + # if total != grd_k.size: return None grd_k = np.where(np.logical_and(keep, grd_k < 0.5), 0.0, 1.0)