diff --git a/modules/deeplearning/srcnn_l1b_l2.py b/modules/deeplearning/srcnn_l1b_l2.py index 5f5d4e75325748cad9f18c38a0a96484467fddbb..89df1a27b08c53028cb28ecca874b049399c7683 100644 --- a/modules/deeplearning/srcnn_l1b_l2.py +++ b/modules/deeplearning/srcnn_l1b_l2.py @@ -675,8 +675,12 @@ def run_restore_static(directory, ckpt_dir): def run_evaluate_static(in_file, out_file, ckpt_dir): h5f = h5py.File(in_file, 'r') grd_a = get_grid_values_all(h5f, 'temp_11_0um_nom') + grd_a = grd_a[::2, ::2] + grd_b = get_grid_values_all(h5f, 'refl_0_65um_nom') + grd_c = get_grid_values_all(h5f, 'cloud_fraction') + grd_c = grd_c[::2, ::2] leny, lenx = grd_a.shape x = np.arange(lenx) @@ -688,6 +692,7 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): grd_a = normalize(grd_a, 'temp_11_0um_nom', mean_std_dct) grd_b = normalize(grd_b, 'refl_0_65um_nom', mean_std_dct) + grd_c = resample_2d_linear_one(x, y, grd_c, x_up, y_up) data = np.stack([grd_a, grd_b, grd_c], axis=2)