From 9908d5cd1d71f0e77112855bcc96c3d2daab49cf Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Tue, 13 Jun 2023 13:45:03 -0500
Subject: [PATCH] snapshot...

---
 modules/deeplearning/cloud_opd_srcnn_abi.py | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/modules/deeplearning/cloud_opd_srcnn_abi.py b/modules/deeplearning/cloud_opd_srcnn_abi.py
index 5c6392b6..75720812 100644
--- a/modules/deeplearning/cloud_opd_srcnn_abi.py
+++ b/modules/deeplearning/cloud_opd_srcnn_abi.py
@@ -694,20 +694,23 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
     h5f = h5py.File(in_file, 'r')
 
     refl = get_grid_values_all(h5f, 'refl_0_65um_nom')
-    ylen, xlen = refl.shape
+    refl = refl[::2, ::2]
     LEN_Y, LEN_X = refl.shape
     print(LEN_Y, LEN_X)
 
     bt = get_grid_values_all(h5f, 'temp_11_0um_nom')
-    ylen, xlen = bt.shape
+    bt = bt[::2, ::2]
 
     cld_opd = get_grid_values_all(h5f, 'cld_opd_dcomp_1')
-    ylen, xlen = cld_opd.shape
-    cld_opd_hres = cld_opd.copy()
+    cld_opd = cld_opd[::2, ::2]
+    # cld_opd_hres = cld_opd.copy()
 
     refl_sub_lo = get_grid_values_all(h5f, 'refl_0_65um_nom_min_sub')
+    refl_sub_lo = refl_sub_lo[::2, ::2]
     refl_sub_hi = get_grid_values_all(h5f, 'refl_0_65um_nom_max_sub')
+    refl_sub_hi = refl_sub_hi[::2, ::2]
     refl_sub_std = get_grid_values_all(h5f, 'refl_0_65um_nom_stddev_sub')
+    refl_sub_std = refl_sub_std[::2, ::2]
 
     nn = SRCNN()
 
-- 
GitLab