From 46246e2c8f6e6068b20477103ee0c9660b5d474e Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Wed, 18 Jan 2023 11:31:19 -0600
Subject: [PATCH] snapshot...

---
 modules/deeplearning/srcnn_l1b_l2.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/deeplearning/srcnn_l1b_l2.py b/modules/deeplearning/srcnn_l1b_l2.py
index 4c54b2b8..6c82da3e 100644
--- a/modules/deeplearning/srcnn_l1b_l2.py
+++ b/modules/deeplearning/srcnn_l1b_l2.py
@@ -778,7 +778,9 @@ 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()
+    hr_grd_c = np.where(np.isnan(hr_grd_c), 0, grd_c)
     hr_grd_c = hr_grd_c[y_128, x_128]
+    # hr_grd_c = smooth_2d_single(hr_grd_c, sigma=1.0)
     grd_c = np.where(np.isnan(grd_c), 0, grd_c)
     grd_c = grd_c.copy()
     # grd_c = smooth_2d_single(grd_c, sigma=1.0)
-- 
GitLab