From 3ecf071b5cbba881a7dfe137d5fdb8e5dfc83aae Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Thu, 1 Dec 2022 14:28:21 -0600 Subject: [PATCH] snapshot... --- modules/deeplearning/srcnn_l1b_l2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/deeplearning/srcnn_l1b_l2.py b/modules/deeplearning/srcnn_l1b_l2.py index d9524657..c8d8d643 100644 --- a/modules/deeplearning/srcnn_l1b_l2.py +++ b/modules/deeplearning/srcnn_l1b_l2.py @@ -784,6 +784,7 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): grd_c = get_grid_values_all(h5f, label_param) grd_c = grd_c[y_0:y_0+sub_y, x_0:x_0+sub_x] + hr_grd_c = grd_c.copy() grd_c = grd_c[slc_y_2, slc_x_2] if label_param != 'cloud_probability': grd_c = normalize(grd_c, label_param, mean_std_dct) @@ -798,7 +799,7 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): if label_param != 'cloud_probability': out_sr = denormalize(out_sr, label_param, mean_std_dct) if out_file is not None: - np.save(out_file, out_sr) + np.save(out_file, [out_sr, hr_grd_c]) else: return out_sr, bt, refl -- GitLab