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

snapshot...

parent afe95104
No related branches found
No related tags found
No related merge requests found
...@@ -1843,11 +1843,14 @@ def run_make_images(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', ckpt_dir_s_pat ...@@ -1843,11 +1843,14 @@ def run_make_images(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', ckpt_dir_s_pat
ts_0 = dto_0.timestamp() ts_0 = dto_0.timestamp()
ts_1 = dto_1.timestamp() ts_1 = dto_1.timestamp()
if pirep_file is not None: if pirep_file is not None:
_, obs_lons, obs_lats, _ = time_filter_3(ice_dict, ts_0, ts_1) _, keep_lons, keep_lats, _ = time_filter_3(ice_dict, ts_0, ts_1)
else: elif obs_times is not None:
keep = np.logical_and(obs_times >= ts_0, obs_times < ts_1) keep = np.logical_and(obs_times >= ts_0, obs_times < ts_1)
keep_lons = obs_lons[keep] keep_lons = obs_lons[keep]
keep_lats = obs_lats[keep] keep_lats = obs_lats[keep]
else:
keep_lons = None
keep_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) 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=keep_lons, ice_lats_vld=keep_lats, extent=extent) make_icing_image(h5f, ice_lons, ice_lats, clvrx_str_time, satellite, domain, ice_lons_vld=keep_lons, ice_lats_vld=keep_lats, extent=extent)
print('Done: ', clvrx_str_time) 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