From 3469a9407167b01baeeb8b92c111a02e9ee9d45f Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Mon, 10 Oct 2022 14:34:47 -0500
Subject: [PATCH] snapshot...

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

diff --git a/modules/deeplearning/srcnn_l1b_l2.py b/modules/deeplearning/srcnn_l1b_l2.py
index 5f5d4e75..89df1a27 100644
--- a/modules/deeplearning/srcnn_l1b_l2.py
+++ b/modules/deeplearning/srcnn_l1b_l2.py
@@ -675,8 +675,12 @@ def run_restore_static(directory, ckpt_dir):
 def run_evaluate_static(in_file, out_file, ckpt_dir):
     h5f = h5py.File(in_file, 'r')
     grd_a = get_grid_values_all(h5f, 'temp_11_0um_nom')
+    grd_a = grd_a[::2, ::2]
+
     grd_b = get_grid_values_all(h5f, 'refl_0_65um_nom')
+
     grd_c = get_grid_values_all(h5f, 'cloud_fraction')
+    grd_c = grd_c[::2, ::2]
 
     leny, lenx = grd_a.shape
     x = np.arange(lenx)
@@ -688,6 +692,7 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
     grd_a = normalize(grd_a, 'temp_11_0um_nom', mean_std_dct)
 
     grd_b = normalize(grd_b, 'refl_0_65um_nom', mean_std_dct)
+
     grd_c = resample_2d_linear_one(x, y, grd_c, x_up, y_up)
 
     data = np.stack([grd_a, grd_b, grd_c], axis=2)
-- 
GitLab