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

snapshot...

parent 32b822d7
No related branches found
No related tags found
No related merge requests found
...@@ -248,6 +248,16 @@ def run_icing_predict_fcn(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_d ...@@ -248,6 +248,16 @@ def run_icing_predict_fcn(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_d
day_model_path=model_path_day, night_model_path=model_path_night, day_model_path=model_path_day, night_model_path=model_path_night,
prob_thresh=0.5, satellite='GOES16', domain='CONUS', day_night='AUTO', prob_thresh=0.5, satellite='GOES16', domain='CONUS', day_night='AUTO',
l1b_andor_l2='both', use_flight_altitude=False, res_fac=1, use_nan=False): l1b_andor_l2='both', use_flight_altitude=False, res_fac=1, use_nan=False):
model_module = icing_fcn
if day_model_path is not None:
day_model = model_module.load_model(day_model_path, day_night='DAY', l1b_andor_l2=l1b_andor_l2,
satellite=satellite, use_flight_altitude=use_flight_altitude)
if night_model_path is not None:
night_model = model_module.load_model(night_model_path, day_night='NIGHT', l1b_andor_l2=l1b_andor_l2,
satellite=satellite, use_flight_altitude=use_flight_altitude)
if use_flight_altitude is True: if use_flight_altitude is True:
flight_levels = [0, 1, 2, 3, 4] flight_levels = [0, 1, 2, 3, 4]
else: else:
...@@ -304,11 +314,10 @@ def run_icing_predict_fcn(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_d ...@@ -304,11 +314,10 @@ def run_icing_predict_fcn(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_d
if (day_night == 'AUTO' or day_night == 'DAY') and num_day_tiles > 0: if (day_night == 'AUTO' or day_night == 'DAY') and num_day_tiles > 0:
preds_day_dct, probs_day_dct = icing_fcn.run_evaluate_static(data_dct, 1, day_model_path, preds_day_dct, probs_day_dct = icing_fcn.run_evaluate_static_2(day_model, data_dct, 1,
day_night='DAY', 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)
for flvl in flight_levels: for flvl in flight_levels:
preds = preds_day_dct[flvl] preds = preds_day_dct[flvl]
probs = probs_day_dct[flvl] probs = probs_day_dct[flvl]
...@@ -318,11 +327,10 @@ def run_icing_predict_fcn(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_d ...@@ -318,11 +327,10 @@ def run_icing_predict_fcn(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_d
fd_probs[day_idxs] = probs[day_idxs] fd_probs[day_idxs] = probs[day_idxs]
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:
preds_nght_dct, probs_nght_dct = icing_fcn.run_evaluate_static(data_dct, 1, night_model_path, preds_nght_dct, probs_nght_dct = icing_fcn.run_evaluate_static_2(night_model, data_dct, 1,
day_night='NIGHT', 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)
for flvl in flight_levels: for flvl in flight_levels:
preds = preds_nght_dct[flvl] preds = preds_nght_dct[flvl]
probs = probs_nght_dct[flvl] probs = probs_nght_dct[flvl]
......
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