From 971a79db1a2cadf31f372cead9996aff59290342 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Sat, 29 Apr 2023 13:10:53 -0500
Subject: [PATCH] snapshot...

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

diff --git a/modules/deeplearning/cloud_opd_srcnn_viirs.py b/modules/deeplearning/cloud_opd_srcnn_viirs.py
index e64337f6..98e7806d 100644
--- a/modules/deeplearning/cloud_opd_srcnn_viirs.py
+++ b/modules/deeplearning/cloud_opd_srcnn_viirs.py
@@ -685,6 +685,9 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
     refl = get_grid_values_all(h5f, 'super/refl_0_65um')
     ylen, xlen = refl.shape
     refl = refl[0:int(ylen/2), :]
+    LEN_Y, LEN_X = refl.shape
+    LEN_Y -= 16
+    LEN_X -= 16
 
     bt = get_grid_values_all(h5f, 'orig/temp_11_0um')
     ylen, xlen = bt.shape
@@ -694,9 +697,6 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
     ylen, xlen = cld_opd.shape
     cld_opd = cld_opd[0:int(ylen/2), :]
 
-    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)
 
-- 
GitLab