From 0887bcf2256d22e0b9f5bc86a10ecf2037011eb1 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Sun, 30 Jan 2022 12:08:34 -0600 Subject: [PATCH] snapshot... --- modules/icing/pirep_goes.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index 3057a4de..aa5a68e5 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -2178,7 +2178,7 @@ def run_make_images(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', ckpt_dir_s_pat def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=homedir, day_model_path=model_path_day, night_model_path=model_path_night, prob_thresh=0.5, satellite='GOES16', domain='CONUS', day_night='AUTO', - l1b_andor_l2='BOTH', use_flight_altitude=True): + l1b_andor_l2='BOTH', use_flight_altitude=True, res_fac=1): flight_levels = [0, 1, 2, 3, 4] day_train_params = get_training_parameters(day_night='DAY', l1b_andor_l2=l1b_andor_l2) @@ -2203,17 +2203,17 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h ts = dto.timestamp() clvrx_str_time = dto.strftime('%Y-%m-%d_%H:%M') - data_dct, ll, cc = make_for_full_domain_predict(h5f, name_list=train_params, satellite=satellite, domain=domain) + data_dct, ll, cc = make_for_full_domain_predict(h5f, name_list=train_params, satellite=satellite, domain=domain, res_fac=res_fac) if fidx == 0: num_elems = len(cc) num_lines = len(ll) nav = get_navigation(satellite, domain) - lons_2d, lats_2d, x_rad, y_rad = get_lon_lat_2d_mesh(nav, ll, cc, offset=8) + lons_2d, lats_2d, x_rad, y_rad = get_lon_lat_2d_mesh(nav, ll, cc, offset=int(8 / res_fac)) ancil_data_dct, _, _ = make_for_full_domain_predict(h5f, name_list= ['solar_zenith_angle', 'sensor_zenith_angle', 'cld_height_acha', 'cld_geo_thick'], - satellite=satellite, domain=domain) + satellite=satellite, domain=domain, res_fac=res_fac) satzen = ancil_data_dct['sensor_zenith_angle'] solzen = ancil_data_dct['solar_zenith_angle'] @@ -2306,7 +2306,7 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h def run_icing_predict_image(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=homedir, day_model_path=model_path_day, night_model_path=model_path_night, prob_thresh=0.5, satellite='GOES16', domain='CONUS', day_night='AUTO', - l1b_andor_l2='BOTH', use_flight_altitude=True, + l1b_andor_l2='BOTH', use_flight_altitude=True, res_fac=1, extent=[-105, -70, 15, 50], pirep_file='/Users/tomrink/data/pirep/pireps_202109200000_202109232359.csv', obs_lons=None, obs_lats=None, obs_times=None, obs_alt=None, flight_level=None): @@ -2342,17 +2342,17 @@ def run_icing_predict_image(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output ts = dto.timestamp() clvrx_str_time = dto.strftime('%Y-%m-%d_%H:%M') - data_dct, ll, cc = make_for_full_domain_predict(h5f, name_list=train_params, satellite=satellite, domain=domain) + data_dct, ll, cc = make_for_full_domain_predict(h5f, name_list=train_params, satellite=satellite, domain=domain, res_fac=res_fac) if fidx == 0: num_elems = len(cc) num_lines = len(ll) nav = get_navigation(satellite, domain) - lons_2d, lats_2d, x_rad, y_rad = get_lon_lat_2d_mesh(nav, ll, cc, offset=8) + lons_2d, lats_2d, x_rad, y_rad = get_lon_lat_2d_mesh(nav, ll, cc, offset=int(8 / res_fac)) ancil_data_dct, _, _ = make_for_full_domain_predict(h5f, name_list= ['solar_zenith_angle', 'sensor_zenith_angle', 'cld_height_acha', 'cld_geo_thick'], - satellite=satellite, domain=domain) + satellite=satellite, domain=domain, res_fac=res_fac) satzen = ancil_data_dct['sensor_zenith_angle'] solzen = ancil_data_dct['solar_zenith_angle'] -- GitLab