From d3db6ae09925d4563d1a3e07d1464dbef342e4ee Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Thu, 15 Apr 2021 10:28:51 -0500 Subject: [PATCH] snapshot... --- modules/icing/pirep_goes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index 4fa25560..9cca5b05 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -892,10 +892,10 @@ def fov_extract(outfile='/home/rink/fovs_out.h5', train_params=train_params_day) for i in range(num_obs): keep_0 = np.logical_or(cld_mask[i,] == 2, cld_mask[i,] == 3) # cloudy - # keep_1 = np.invert(np.isnan(cld_top_temp[i,])) - # keep = keep_0 & keep_1 - # keep = np.where(keep, cld_top_temp[i,] > 273.0, False) - k_idxs = sub_indexes[keep_0] + keep_1 = np.invert(np.isnan(cld_top_temp[i,])) + keep = keep_0 & keep_1 + keep = np.where(keep, cld_top_temp[i,] > 273.0, False) + k_idxs = sub_indexes[keep] np.random.shuffle(k_idxs) if len(k_idxs) > 10: k_idxs = k_idxs[0:10] -- GitLab