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

minor

parent 1fe91d9f
No related branches found
No related tags found
No related merge requests found
......@@ -1796,7 +1796,8 @@ def tiles_info(filename):
def run_make_images(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', ckpt_dir_s_path='/Users/tomrink/tf_model/', prob_thresh=0.5, satellite='GOES16', domain='CONUS',
extent=[-105, -70, 15, 50],
pirep_file='/Users/tomrink/data/pirep/pireps_202109200000_202109232359.csv'):
ice_dict, no_ice_dict, neg_ice_dict = setup(pirep_file)
if pirep_file is not None:
ice_dict, no_ice_dict, neg_ice_dict = setup(pirep_file)
clvrx_ds = CLAVRx(clvrx_dir)
clvrx_files = clvrx_ds.flist
......@@ -1812,7 +1813,10 @@ def run_make_images(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', ckpt_dir_s_pat
dto_1 = dto + datetime.timedelta(minutes=60)
ts_0 = dto_0.timestamp()
ts_1 = dto_1.timestamp()
obs_times, obs_lons, obs_lats, _ = time_filter_3(ice_dict, ts_0, ts_1)
if pirep_file is not None:
obs_times, obs_lons, obs_lats, _ = time_filter_3(ice_dict, ts_0, ts_1)
else:
obs_lons, obs_lats = None
ice_lons, ice_lats = run_evaluate_static(h5f, ckpt_dir_s_path=ckpt_dir_s_path, prob_thresh=prob_thresh, satellite=satellite, domain=domain)
make_icing_image(h5f, ice_lons, ice_lats, clvrx_str_time, satellite, domain, ice_lons_vld=obs_lons, ice_lats_vld=obs_lats, extent=extent)
print('Done: ', clvrx_str_time)
......
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