From 8a355ccc0a96ba7adaa407460f20f3fec13674b0 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Fri, 14 Jul 2023 12:02:38 -0500
Subject: [PATCH] `snapshot...`

---
 modules/deeplearning/cloud_opd_srcnn_abi.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/modules/deeplearning/cloud_opd_srcnn_abi.py b/modules/deeplearning/cloud_opd_srcnn_abi.py
index 6bb63bdf..ecc1844e 100644
--- a/modules/deeplearning/cloud_opd_srcnn_abi.py
+++ b/modules/deeplearning/cloud_opd_srcnn_abi.py
@@ -268,7 +268,8 @@ class SRCNN:
             tmp = np.where(np.isnan(tmp), 0.0, tmp)
             tmp = tmp[:, self.slc_y_m, self.slc_x_m]
             tmp = self.upsample(tmp)
-            tmp = smooth_2d(tmp)
+            if DO_SMOOTH:
+                tmp = smooth_2d(tmp)
             tmp = normalize(tmp, param, mean_std_dct)
             data_norm.append(tmp)
 
@@ -286,7 +287,8 @@ class SRCNN:
         # tmp = np.where(np.isnan(tmp), 0.0, tmp)
         # tmp = tmp[:, self.slc_y_2, self.slc_x_2]
         # tmp = self.upsample(tmp)
-        # tmp = smooth_2d(tmp)
+        # if DO_SMOOTH:
+        #   tmp = smooth_2d(tmp)
         # tmp = normalize(tmp, label_param, mean_std_dct)
         # data_norm.append(tmp)
 
@@ -295,7 +297,8 @@ class SRCNN:
         tmp = np.where(np.isnan(tmp), 0.0, tmp)
         tmp = tmp[:, self.slc_y_2, self.slc_x_2]
         tmp = self.upsample(tmp)
-        tmp = smooth_2d(tmp)
+        if DO_SMOOTH:
+            tmp = smooth_2d(tmp)
         tmp = normalize(tmp, label_param, mean_std_dct)
         data_norm.append(tmp)
 
-- 
GitLab