Skip to content
Snippets Groups Projects
Commit 457628d2 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 2a7ad757
No related branches found
No related tags found
No related merge requests found
......@@ -186,7 +186,7 @@ def run_all(directory, out_directory, day_night='ANY', pattern='clavrx_*.nc', st
if len(data_tiles_m) > 0:
valid_i = np.stack(data_tiles_i)
valid_m = np.stack(data_tiles_m)
if valid_m.shape[0] != valid_i.shape[1]:
if valid_m.shape[0] != valid_i.shape[0]:
print('problem: number of samples dont match', valid_m.shape, valid_i.shape)
continue
if DO_WRITE_OUTFILE:
......@@ -211,7 +211,7 @@ def run_all(directory, out_directory, day_night='ANY', pattern='clavrx_*.nc', st
if len(data_tiles_m) > 0:
valid_i = np.stack(data_tiles_i)
valid_m = np.stack(data_tiles_m)
if valid_m.shape[0] != valid_i.shape[1]:
if valid_m.shape[0] != valid_i.shape[0]:
print('problem: number of samples dont match', valid_m.shape, valid_i.shape)
elif DO_WRITE_OUTFILE:
np.save(out_directory + 'valid_mres_' + f'{cnt:04d}', valid_m)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment