diff --git a/modules/util/viirs_l1b_l2.py b/modules/util/viirs_l1b_l2.py index c578ff7c6c9db6b91c429c575bcce12111612f45..3f06a155f7c6f0c27fec1b4ca88fd73a5f756534 100644 --- a/modules/util/viirs_l1b_l2.py +++ b/modules/util/viirs_l1b_l2.py @@ -98,7 +98,7 @@ def run_all(directory, out_directory): [data_valid_tiles.append(data_tiles[k]) for k in range(n_vld)] [data_train_tiles.append(data_tiles[k]) for k in range(n_vld, num)] - if f_cnt == 40: + if f_cnt == 10: cnt += 1 label_valid = np.stack(label_valid_tiles) @@ -187,11 +187,11 @@ def run(data_h5f, label_h5f, data_tiles, label_tiles, mod_tile_width=64, kernel_ #num_keep_x_tiles = 3 num_keep_x_tiles = 1 - # i_skip = 3 * mod_tile_width - i_skip = 1 + i_skip = 3 * mod_tile_width + #i_skip = 1 j_skip = 1 * mod_tile_width - #i_start = int(mod_num_pixels / 2) - int((num_keep_x_tiles * 3 * mod_tile_width) / 2) - i_start = int(mod_num_pixels / 2) - int((mod_tile_width) / 2) + i_start = int(mod_num_pixels / 2) - int((num_keep_x_tiles * 3 * mod_tile_width) / 2) + #i_start = int(mod_num_pixels / 2) - int((mod_tile_width) / 2) num_keep_y_tiles = 96 for j in range(num_keep_y_tiles):