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

fix bug

parent 4252db82
No related branches found
No related tags found
No related merge requests found
...@@ -181,9 +181,11 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h ...@@ -181,9 +181,11 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h
if (day_night == 'AUTO' or day_night == 'NIGHT') and num_nght_tiles > 0: if (day_night == 'AUTO' or day_night == 'NIGHT') and num_nght_tiles > 0:
model_path = night_model_path model_path = night_model_path
mode = 'NIGHT'
if use_dnb and lunar_illuminated: if use_dnb and lunar_illuminated:
model_path = day_model_path model_path = day_model_path
day = '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_data_dct = {name: [] for name in nght_train_params}
...@@ -195,7 +197,7 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h ...@@ -195,7 +197,7 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h
nght_grd_dct[ds_name] = np.stack(nght_data_dct[ds_name]) nght_grd_dct[ds_name] = np.stack(nght_data_dct[ds_name])
preds_nght_dct, probs_nght_dct = model_module.run_evaluate_static(nght_grd_dct, num_nght_tiles, model_path, preds_nght_dct, probs_nght_dct = model_module.run_evaluate_static(nght_grd_dct, num_nght_tiles, model_path,
day_night=day, l1b_or_l2=l1b_andor_l2, day_night=mode, l1b_or_l2=l1b_andor_l2,
prob_thresh=prob_thresh, prob_thresh=prob_thresh,
use_flight_altitude=use_flight_altitude, use_flight_altitude=use_flight_altitude,
flight_levels=flight_levels) flight_levels=flight_levels)
......
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