From 9d90a4c6c44964adb539e8ee8af307533f1be2b5 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Thu, 18 May 2023 11:21:28 -0500
Subject: [PATCH] snapshot...

---
 modules/deeplearning/cloud_fraction_fcn_abi.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/deeplearning/cloud_fraction_fcn_abi.py b/modules/deeplearning/cloud_fraction_fcn_abi.py
index 8077855f..58164148 100644
--- a/modules/deeplearning/cloud_fraction_fcn_abi.py
+++ b/modules/deeplearning/cloud_fraction_fcn_abi.py
@@ -783,6 +783,8 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
     lats = get_grid_values_all(h5f, 'latitude')
     bt = np.where(np.isnan(bt), 0, bt)
     bt = normalize(bt, 'temp_11_0um_nom', mean_std_dct)
+    refl = np.where(np.isnan(refl), 0, refl)
+    refl = normalize(refl, 'refl_0_65um_nom', refl)
 
     # refl_lo = get_grid_values_all(h5f, 'refl_submin_ch01')
     refl_lo = get_grid_values_all(h5f, 'refl_0_65um_nom_min_sub')
@@ -797,8 +799,8 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
     cp = get_grid_values_all(h5f, label_param)
     cp = np.where(np.isnan(cp), 0, cp)
 
-    # data = np.stack([bt, refl, refl_lo, refl_hi, refl_std, cp], axis=2)
-    data = np.stack([bt, refl_lo, refl_hi, refl_std, cp], axis=2)
+    # data = np.stack([bt, refl_lo, refl_hi, refl_std, cp], axis=2)
+    data = np.stack([bt, refl, refl_lo, refl_hi, refl_std, cp], axis=2)
     data = np.expand_dims(data, axis=0)
 
     h5f.close()
-- 
GitLab