From 86eb2e6c7a17505a8ffde57bac88c19923e5934d Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Fri, 28 Apr 2023 12:07:05 -0500
Subject: [PATCH] snapshot...

---
 modules/deeplearning/cloud_opd_srcnn_viirs.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/deeplearning/cloud_opd_srcnn_viirs.py b/modules/deeplearning/cloud_opd_srcnn_viirs.py
index 63cc155d..637fc207 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]
 
-- 
GitLab