From 7f63b70f12a09d804e64bf45434ae8c41cd1e574 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Mon, 27 Mar 2023 15:44:55 -0500
Subject: [PATCH] snapshot...

---
 modules/deeplearning/cloud_fraction_fcn.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/deeplearning/cloud_fraction_fcn.py b/modules/deeplearning/cloud_fraction_fcn.py
index 9817061f..8dc7cc0e 100644
--- a/modules/deeplearning/cloud_fraction_fcn.py
+++ b/modules/deeplearning/cloud_fraction_fcn.py
@@ -799,7 +799,8 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
     cld_frac = probs.argmax(axis=3)
     cld_frac = cld_frac.astype(np.int8)
     cld_frac_out = np.zeros((y_len, x_len), dtype=np.int8)
-    cld_frac_out[1:y_len - 1, 1:x_len - 1] = cld_frac[0, :, :]
+    border = int((KERNEL_SIZE - 1)/2)
+    cld_frac_out[border:y_len - border, border:x_len - border] = cld_frac[0, :, :]
 
     bt = denormalize(bt, 'temp_11_0um_nom', mean_std_dct)
     refl_avg = denormalize(refl_avg, 'refl_0_65um_nom', mean_std_dct)
-- 
GitLab