diff --git a/modules/deeplearning/cloud_opd_srcnn_viirs.py b/modules/deeplearning/cloud_opd_srcnn_viirs.py index 63cc155db79f88fef8e4ccf1da2e95ead9a08d11..637fc2072096bfcae050a853ca27072c17d93951 100644 --- a/modules/deeplearning/cloud_opd_srcnn_viirs.py +++ b/modules/deeplearning/cloud_opd_srcnn_viirs.py @@ -684,11 +684,13 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): refl = get_grid_values_all(h5f, 'super/refl_0_65um') LEN_Y, LEN_X = refl.shape + LEN_Y -= 16 + LEN_X -= 16 refl = np.where(np.isnan(refl), 0, refl) refl = normalize(refl, 'refl_0_65um_nom', mean_std_dct) refl = np.expand_dims(refl, axis=0) - nn = SRCNN(LEN_Y=LEN_Y-16, LEN_X=LEN_X-16) + nn = SRCNN(LEN_Y=LEN_Y, LEN_X=LEN_X) refl = refl[nn.slc_y, nn.slc_x]