From ea55efe420f90fd90266539c837fc002d00fa341 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Tue, 24 May 2022 13:59:56 -0500 Subject: [PATCH] deal with bigger data --- modules/util/viirs_l1b_l2.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/util/viirs_l1b_l2.py b/modules/util/viirs_l1b_l2.py index 6b4dec43..258c5425 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) -- GitLab