From 8ee50caab6dc8743d80439ddb655d3185083c177 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Thu, 22 Jun 2023 11:07:16 -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 220f09a9..e27b3dd9 100644
--- a/modules/deeplearning/cloud_opd_srcnn_viirs.py
+++ b/modules/deeplearning/cloud_opd_srcnn_viirs.py
@@ -688,16 +688,16 @@ 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[int(ylen/2):ylen, :]
+    refl = refl[int(ylen/2):ylen, (int(xlen/2)-800):(int(xlen/2)+800)]
     LEN_Y, LEN_X = refl.shape
 
     bt = get_grid_values_all(h5f, 'orig/temp_11_0um')
     ylen, xlen = bt.shape
-    bt = bt[int(ylen/2):ylen, :]
+    bt = bt[int(ylen/2):ylen, (int(xlen/2)-400):(int(xlen/2)+400)]
 
     cld_opd = get_grid_values_all(h5f, 'super/' + label_param)
     ylen, xlen = cld_opd.shape
-    cld_opd = cld_opd[int(ylen/2):ylen, :]
+    cld_opd = cld_opd[int(ylen/2):ylen, (int(xlen/2)-800):(int(xlen/2)+800)]
     cld_opd_hres = cld_opd.copy()
 
     refl = np.where(np.isnan(refl), 0, refl)
-- 
GitLab