diff --git a/modules/util/viirs_l1b_l2.py b/modules/util/viirs_l1b_l2.py
index 2f175956276770e8b8ba46b8e44bff7ab318881c..5fa881c075b34f143f9fd656b148361d81173cfd 100644
--- a/modules/util/viirs_l1b_l2.py
+++ b/modules/util/viirs_l1b_l2.py
@@ -198,14 +198,11 @@ def run(data_h5f, param_s, train_tiles, valid_tiles, dum, num_keep_x_tiles=8, ti
     i_start = int(num_pixels / 2) - int((num_keep_x_tiles * tile_width) / 2)
     j_start = 0
 
-    num_keep_y_tiles = int(num_lines / tile_width) - 3
-
-    num_y_valid = int(num_keep_y_tiles * 0.15) + 1
-    num_y_train = num_keep_y_tiles - num_y_valid - 1
+    num_y_tiles = int(num_lines / tile_width) - 1
 
     tiles = []
 
-    for j in range(num_y_train):
+    for j in range(num_y_tiles):
         j_a = j_start + j * j_skip
         j_b = j_a + tile_width