From de5dd52d5ddad129d0322d0708453013d05af719 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Fri, 19 May 2023 13:42:17 -0500
Subject: [PATCH] snapshot...

---
 .../deeplearning/cloud_fraction_fcn_abi.py    | 33 ++++++++++---------
 1 file changed, 17 insertions(+), 16 deletions(-)

diff --git a/modules/deeplearning/cloud_fraction_fcn_abi.py b/modules/deeplearning/cloud_fraction_fcn_abi.py
index 25d1d761..e82e3ed5 100644
--- a/modules/deeplearning/cloud_fraction_fcn_abi.py
+++ b/modules/deeplearning/cloud_fraction_fcn_abi.py
@@ -787,20 +787,21 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
     lons = get_grid_values_all(h5f, 'longitude')
     lats = get_grid_values_all(h5f, 'latitude')
 
-    bt_nh = bt[0:2501, :]
-    refl_nh = refl[0:2501, :]
-    refl_lo_nh = refl_lo[0:2501, :]
-    refl_hi_nh = refl_hi[0:2501, :]
-    refl_std_nh = refl_std[0:2501, :]
-    cp_nh = cp[0:2501, :]
-
-    bt_sh = bt[2499:y_len, :]
-    refl_sh = refl[2499:y_len, :]
-    refl_lo_sh = refl_lo[2499:y_len, :]
-    refl_hi_sh = refl_hi[2499:y_len, :]
-    refl_std_sh = refl_std[2499:y_len, :]
-    cp_sh = cp[2499:y_len, :]
-    print(bt_sh)
+    bt_nh = bt[0:2712+1, :]
+    refl_nh = refl[0:2712+1, :]
+    refl_lo_nh = refl_lo[0:2712+1, :]
+    refl_hi_nh = refl_hi[0:2712+1, :]
+    refl_std_nh = refl_std[0:2712+1, :]
+    cp_nh = cp[0:2712+1, :]
+    print(cp_nh.shape)
+
+    bt_sh = bt[2712-1:y_len, :]
+    refl_sh = refl[2712-1:y_len, :]
+    refl_lo_sh = refl_lo[2712-1:y_len, :]
+    refl_hi_sh = refl_hi[2712-1:y_len, :]
+    refl_std_sh = refl_std[2712-1:y_len, :]
+    cp_sh = cp[2712-1:y_len, :]
+    print(bt_sh.shape)
 
     h5f.close()
 
@@ -811,8 +812,8 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
 
     cld_frac_out = np.zeros((y_len, x_len), dtype=np.int8)
     border = int((KERNEL_SIZE - 1)/2)
-    cld_frac_out[border:2500, border:x_len - border] = cld_frac_nh[0, :, :]
-    cld_frac_out[2500:y_len - border, border:x_len - border] = cld_frac_sh[0, :, :]
+    cld_frac_out[border:2712, border:x_len - border] = cld_frac_nh[0, :, :]
+    cld_frac_out[2712:y_len - border, border:x_len - border] = cld_frac_sh[0, :, :]
 
     bt = denormalize(bt, 'temp_11_0um_nom', mean_std_dct)
     refl = denormalize(refl, 'refl_0_65um_nom', mean_std_dct)
-- 
GitLab