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

snapshot...

parent 3b64c0c1
No related branches found
No related tags found
No related merge requests found
......@@ -373,7 +373,8 @@ def run_icing_predict_image(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output
extent=[-105, -70, 15, 50],
pirep_file='/Users/tomrink/data/pirep/pireps_202109200000_202109232359.csv',
icing_dict=None,
obs_lons=None, obs_lats=None, obs_times=None, obs_alt=None, flight_level=None):
obs_lons=None, obs_lats=None, obs_times=None, obs_alt=None, obs_intensity=None,
flight_level=None):
if model_type == 'CNN':
model_module = icing_cnn
elif model_type == 'FCN':
......@@ -521,6 +522,7 @@ def run_icing_predict_image(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output
elif obs_times is not None:
keep = np.logical_and(obs_times >= ts_0, obs_times < ts_1)
keep = np.where(keep, np.logical_and(obs_alt >= alt_lo, obs_alt < alt_hi), False)
keep = np.where(keep, obs_intensity > 1, False)
keep_lons = obs_lons[keep]
keep_lats = obs_lats[keep]
else:
......
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