From 05ec43c791a24a5c064942226d37df999bf7169b Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Mon, 24 Apr 2023 14:30:09 -0500
Subject: [PATCH] snapshot...

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

diff --git a/modules/deeplearning/cloud_opd_srcnn_viirs.py b/modules/deeplearning/cloud_opd_srcnn_viirs.py
index 0abf8819..4e7770db 100644
--- a/modules/deeplearning/cloud_opd_srcnn_viirs.py
+++ b/modules/deeplearning/cloud_opd_srcnn_viirs.py
@@ -323,6 +323,7 @@ class SRCNN:
         tmp = np.where(np.isnan(tmp), 0, tmp)
         tmp = tmp[:, slc_y_2, slc_x_2]
         tmp = upsample(tmp)
+        tmp = normalize(tmp, label_param, mean_std_dct)
         data_norm.append(tmp)
         # ---------
         data = np.stack(data_norm, axis=3)
@@ -331,7 +332,7 @@ class SRCNN:
         # -----------------------------------------------------
         # -----------------------------------------------------
         label = input_label[:, label_idx_i, :, :]
-        label = label.copy()
+        label = normalize(label, label_param, mean_std_dct)
         label = label[:, y_128, x_128]
 
         label = np.where(np.isnan(label), 0, label)
-- 
GitLab