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

snapshot...

parent bcee1e03
No related branches found
No related tags found
No related merge requests found
...@@ -853,13 +853,11 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h ...@@ -853,13 +853,11 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h
if day_night == 'AUTO' or day_night == 'DAY': if day_night == 'AUTO' or day_night == 'DAY':
if num_day_tiles > 0: if num_day_tiles > 0:
day_data_dct = {name: [] for name in day_train_params} day_idxs = np.array(day_idxs)
for name in day_train_params:
for k in day_idxs:
day_data_dct[name].append(data_dct[name][k])
day_grd_dct = {name: None for name in day_train_params} day_grd_dct = {name: None for name in day_train_params}
for ds_name in day_train_params: for name in day_train_params:
day_grd_dct[ds_name] = np.stack(day_data_dct[ds_name]) day_grd_dct[name] = data_dct[name][day_idxs, ]
if use_max_cth_level: if use_max_cth_level:
day_grd_dct['cth_high_avg'] = day_cth_max day_grd_dct['cth_high_avg'] = day_cth_max
...@@ -867,7 +865,6 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h ...@@ -867,7 +865,6 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h
model_module.run_evaluate_static_2(day_model, day_grd_dct, num_day_tiles, model_module.run_evaluate_static_2(day_model, day_grd_dct, num_day_tiles,
prob_thresh=prob_thresh, prob_thresh=prob_thresh,
flight_levels=flight_levels) flight_levels=flight_levels)
day_idxs = np.array(day_idxs)
for flvl in flight_levels: for flvl in flight_levels:
day_preds = preds_day_dct[flvl] day_preds = preds_day_dct[flvl]
day_probs = probs_day_dct[flvl] day_probs = probs_day_dct[flvl]
...@@ -884,13 +881,11 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h ...@@ -884,13 +881,11 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h
mode = 'DAY' mode = 'DAY'
nght_train_params = train_params_dnb nght_train_params = train_params_dnb
nght_data_dct = {name: [] for name in nght_train_params} nght_idxs = np.array(nght_idxs)
for name in nght_train_params:
for k in nght_idxs:
nght_data_dct[name].append(data_dct[name][k])
nght_grd_dct = {name: None for name in nght_train_params} nght_grd_dct = {name: None for name in nght_train_params}
for ds_name in nght_train_params: for name in nght_train_params:
nght_grd_dct[ds_name] = np.stack(nght_data_dct[ds_name]) nght_grd_dct[name] = data_dct[name][nght_idxs, ]
if use_max_cth_level: if use_max_cth_level:
nght_grd_dct['cth_high_avg'] = nght_cth_max nght_grd_dct['cth_high_avg'] = nght_cth_max
...@@ -898,7 +893,6 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h ...@@ -898,7 +893,6 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h
model_module.run_evaluate_static_2(night_model, nght_grd_dct, num_nght_tiles, model_module.run_evaluate_static_2(night_model, nght_grd_dct, num_nght_tiles,
prob_thresh=prob_thresh, prob_thresh=prob_thresh,
flight_levels=flight_levels) flight_levels=flight_levels)
nght_idxs = np.array(nght_idxs)
for flvl in flight_levels: for flvl in flight_levels:
nght_preds = preds_nght_dct[flvl] nght_preds = preds_nght_dct[flvl]
nght_probs = probs_nght_dct[flvl] nght_probs = probs_nght_dct[flvl]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment