diff --git a/modules/util/abi_surfrad.py b/modules/util/abi_surfrad.py index 7ae58dd743547ebe4d2240126ebf2dbae242c165..394b44e3b6540d85a28f6f64b1c5bff445d7d1d4 100644 --- a/modules/util/abi_surfrad.py +++ b/modules/util/abi_surfrad.py @@ -170,7 +170,7 @@ def run_all(directory, out_directory, day_night='ANY', pattern='clavrx_*.nc', st np.save(out_directory + 'valid_ires_' + str(cnt), valid_i) num_valid_samples = valid_m.shape[0] - param_valid_hist += np.histogram(valid_m[param_idx_m, ], bins=20, range=[0.0, 160.0])[0] + param_valid_hist += np.histogram(valid_m[param_idx_m, ], bins=14)[0] data_tiles_i = [] data_tiles_m = [] @@ -191,7 +191,7 @@ def run_all(directory, out_directory, day_night='ANY', pattern='clavrx_*.nc', st np.save(out_directory + 'valid_mres_' + str(cnt), valid_m) np.save(out_directory + 'valid_ires_' + str(cnt), valid_i) num_valid_samples = valid_m.shape[0] - param_valid_hist += np.histogram(valid_m[param_idx_m, ], bins=20, range=[0.0, 160.0])[0] + param_valid_hist += np.histogram(valid_m[param_idx_m, ], bins=14)[0] total_num_valid_samples += num_valid_samples print('total_num_valid_samples, total_num_not_missing: ', total_num_valid_samples, total_num_not_missing) print(param_valid_hist) @@ -242,7 +242,7 @@ def run_all(directory, out_directory, day_night='ANY', pattern='clavrx_*.nc', st np.save(out_directory + 'train_mres_' + str(cnt), train_m) num_train_samples = train_m.shape[0] - param_train_hist += np.histogram(train_m[param_idx_m, ], bins=20, range=[0.0, 160.0])[0] + param_train_hist += np.histogram(train_m[param_idx_m, ], bins=14)[0] data_tiles_i = [] data_tiles_m = [] @@ -263,7 +263,7 @@ def run_all(directory, out_directory, day_night='ANY', pattern='clavrx_*.nc', st np.save(out_directory + 'train_ires_' + str(cnt), train_i) np.save(out_directory + 'train_mres_' + str(cnt), train_m) num_train_samples = train_m.shape[0] - param_train_hist += np.histogram(train_m[param_idx_m, ], bins=20, range=[0.0, 160.0])[0] + param_train_hist += np.histogram(train_m[param_idx_m, ], bins=14)[0] total_num_train_samples += num_train_samples print('total_num_train_samples, total_num_not_missing: ', total_num_train_samples, total_num_not_missing) print(param_train_hist)