Skip to content
Snippets Groups Projects
Commit 1ec8f9e1 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 91bd67c0
No related branches found
No related tags found
No related merge requests found
...@@ -843,7 +843,9 @@ def fov_extract(): ...@@ -843,7 +843,9 @@ def fov_extract():
dat = f[ds_name][i, 10:30, 10:30].flatten() dat = f[ds_name][i, 10:30, 10:30].flatten()
icing_data_dct[ds_name].append(dat[k_idxs]) 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) print(fname)
for ds_name in train_params_day: for ds_name in train_params_day:
...@@ -891,7 +893,6 @@ def fov_extract(): ...@@ -891,7 +893,6 @@ def fov_extract():
no_icing_data_dct[ds_name] = np.concatenate(lst) no_icing_data_dct[ds_name] = np.concatenate(lst)
no_icing_int_s = np.full(num_no_ice, -1) no_icing_int_s = np.full(num_no_ice, -1)
ds_indexes = np.arange(num_ice + num_no_ice) ds_indexes = np.arange(num_ice + num_no_ice)
ds_indexes = np.random.shuffle(ds_indexes) ds_indexes = np.random.shuffle(ds_indexes)
...@@ -905,7 +906,6 @@ def fov_extract(): ...@@ -905,7 +906,6 @@ def fov_extract():
data_dct[ds_name] = data_dct[ds_name][ds_indexes] data_dct[ds_name] = data_dct[ds_name][ds_indexes]
icing_intensity = icing_intensity[ds_indexes] icing_intensity = icing_intensity[ds_indexes]
h5f_expl = h5py.File(a_clvr_file, 'r') h5f_expl = h5py.File(a_clvr_file, 'r')
h5f_out = h5py.File('/Users/tomrink/fovs_out.h5', 'w') h5f_out = h5py.File('/Users/tomrink/fovs_out.h5', 'w')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment