From 0525860e130b482ba2d34a8fee7a0bd74c215042 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Fri, 23 Dec 2022 20:27:40 -0600 Subject: [PATCH] snapshot... --- modules/deeplearning/srcnn_l1b_l2.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/deeplearning/srcnn_l1b_l2.py b/modules/deeplearning/srcnn_l1b_l2.py index e2dd4f4f..20e1ae80 100644 --- a/modules/deeplearning/srcnn_l1b_l2.py +++ b/modules/deeplearning/srcnn_l1b_l2.py @@ -750,8 +750,10 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): y_0, x_0, = 2432 - int(sub_y/2), 2432 - int(sub_x/2) h5f = h5py.File(in_file, 'r') + grd_a = get_grid_values_all(h5f, 'temp_11_0um_nom') grd_a = grd_a[y_0:y_0+sub_y, x_0:x_0+sub_x] + grd_a = np.where(np.isnan(grd_a), 0, grd_a) hr_grd_a = grd_a.copy() hr_grd_a = hr_grd_a[y_128, x_128] grd_a = grd_a[slc_y_2, slc_x_2] @@ -768,6 +770,7 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): grd_c = get_grid_values_all(h5f, label_param) # grd_c = gaussian_filter(grd_c, sigma=1.0) grd_c = grd_c[y_0:y_0+sub_y, x_0:x_0+sub_x] + grd_c = np.where(np.isnan(grd_c), 0, grd_c) hr_grd_c = grd_c.copy() hr_grd_c = hr_grd_c[y_128, x_128] grd_c = grd_c[slc_y_2, slc_x_2] -- GitLab