diff --git a/modules/deeplearning/cloud_fraction_fcn_viirs.py b/modules/deeplearning/cloud_fraction_fcn_viirs.py index 3417af38485c322d5036d4fc1d3c5456edae1eb2..bfab3245c9bcc8928b4da165611e83892d95be23 100644 --- a/modules/deeplearning/cloud_fraction_fcn_viirs.py +++ b/modules/deeplearning/cloud_fraction_fcn_viirs.py @@ -175,7 +175,6 @@ def get_label_data(grd_k): def get_label_data_5cat(grd_k): grd_k = np.where(np.isnan(grd_k), 0, grd_k) - # grd_u = np.where(np.logical_and(grd_k > 0.45, grd_k < 0.55), 1, 0) grd_k = np.where(grd_k < 0.5, 0, 1) a = grd_k[:, 0::2, 0::2] @@ -196,14 +195,6 @@ def get_label_data_5cat(grd_k): s[cat_3] = 3 s[cat_4] = 4 - # a = grd_u[:, 0::2, 0::2] - # b = grd_u[:, 1::2, 0::2] - # c = grd_u[:, 0::2, 1::2] - # d = grd_u[:, 1::2, 1::2] - # s_u = a + b + c + d - # cat_u = (s_u == 4) - # s[cat_u] = 5 - return s