diff --git a/modules/util/viirs_l1b_l2.py b/modules/util/viirs_l1b_l2.py index 6b4dec43c515caf701e83937978aa917a75c984b..258c5425b2283bbf22437990e061c4ad18367e3d 100644 --- a/modules/util/viirs_l1b_l2.py +++ b/modules/util/viirs_l1b_l2.py @@ -66,10 +66,10 @@ def run_all(directory): num = len(l1b_tiles) - [label_valid_tiles.append(l2_tiles[k]) for k in range(6)] - [label_train_tiles.append(l2_tiles[k]) for k in range(6, num)] - [data_valid_tiles.append(l1b_tiles[k]) for k in range(6)] - [data_train_tiles.append(l1b_tiles[k]) for k in range(6, num)] + [label_valid_tiles.append(l2_tiles[k]) for k in range(10)] + [label_train_tiles.append(l2_tiles[k]) for k in range(10, num)] + [data_valid_tiles.append(l1b_tiles[k]) for k in range(10)] + [data_train_tiles.append(l1b_tiles[k]) for k in range(10, num)] if f_cnt == 10: cnt += 1 @@ -147,7 +147,7 @@ def run(l1b_h5f, l2_h5f, l1b_tiles, l2_tiles, factor=2): mod_data = np.stack(l1b_grd_s) img_data = np.stack(l2_grd_s) - num_keep_x_tiles = 3 + num_keep_x_tiles = 5 i_skip = 3 * mod_tile_width i_start = int(mod_num_pixels / 2) - int((num_keep_x_tiles * 3 * 64) / 2)