From d05650006b20d711cf8e4540b1b56260bc65339d Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Sun, 5 Mar 2023 13:05:46 -0600 Subject: [PATCH] snapshot... --- modules/deeplearning/cnn_cld_frac_mod_res.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/deeplearning/cnn_cld_frac_mod_res.py b/modules/deeplearning/cnn_cld_frac_mod_res.py index 5e84bc80..48b13e47 100644 --- a/modules/deeplearning/cnn_cld_frac_mod_res.py +++ b/modules/deeplearning/cnn_cld_frac_mod_res.py @@ -186,7 +186,7 @@ def get_min_max_std(grd_k): std = np.nanstd([a, b, c, d], axis=0) avg = np.nanmean([a, b, c, d], axis=0) - return lo, hi, std, mean + return lo, hi, std, avg def get_label_data(grd_k): @@ -353,10 +353,11 @@ class SRCNN: idx = params.index(param) tmp = input_data[:, idx, :, :] - lo, hi, std = get_min_max_std(tmp) + lo, hi, std, avg = get_min_max_std(tmp) lo = normalize(lo, param, mean_std_dct) hi = normalize(hi, param, mean_std_dct) std = np.where(np.isnan(std), 0, std) + data_norm.append(lo[:, 0:66, 0:66]) data_norm.append(hi[:, 0:66, 0:66]) data_norm.append(std[:, 0:66, 0:66]) -- GitLab