From 68b770bc9000cf98cd2b540b54016cac932ee798 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Tue, 20 Apr 2021 08:59:03 -0500 Subject: [PATCH] snapshot... --- modules/icing/pirep_goes.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index e8bd0c97..21a29168 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -1291,13 +1291,18 @@ def normalize(data, param, mean_std_dict): if mean_std_dict.get(param) is None: return data + shape = data.shape + data = data.flatten() + mean, std = mean_std_dict.get(param) data -= mean data /= std - not_valid = np.invert(np.isnan(data)) + not_valid = np.isnan(data) data[not_valid] = 0 + data = np.reshape(data, shape) + return data -- GitLab