diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index 4fa25560b5389e469e570923cccebc06b5a590cc..9cca5b053ca1307740199c8407c08f7f8bc6aea4 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]