diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index 0714c9cac0a49445c256ecffae417d09bea226fa..2d5031d569dc641634c2624d12dc328b706a84b1 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -843,7 +843,9 @@ def fov_extract(): dat = f[ds_name][i, 10:30, 10:30].flatten() icing_data_dct[ds_name].append(dat[k_idxs]) - icing_int_s.append(icing_int) + ice_flags = np.full(len(k_idxs), icing_int[i]) + icing_int_s.append(ice_flags) + print(fname) for ds_name in train_params_day: @@ -891,7 +893,6 @@ def fov_extract(): no_icing_data_dct[ds_name] = np.concatenate(lst) no_icing_int_s = np.full(num_no_ice, -1) - ds_indexes = np.arange(num_ice + num_no_ice) ds_indexes = np.random.shuffle(ds_indexes) @@ -905,7 +906,6 @@ def fov_extract(): data_dct[ds_name] = data_dct[ds_name][ds_indexes] icing_intensity = icing_intensity[ds_indexes] - h5f_expl = h5py.File(a_clvr_file, 'r') h5f_out = h5py.File('/Users/tomrink/fovs_out.h5', 'w')