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

snapshot...

parent 4c79f813
No related branches found
No related tags found
No related merge requests found
import numpy as np
import deeplearning.icing_fcn as icing_fcn
import deeplearning.icing_cnn as icing_cnn
from icing.pirep_goes import setup, time_filter_3
from icing.moon_phase import moon_phase
from util.util import get_time_tuple_utc, is_day, check_oblique, get_median, homedir, \
......@@ -706,8 +704,10 @@ def run_icing_predict(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_dir=h
model_type='FCN', use_dnb=False):
if model_type == 'CNN':
import deeplearning.icing_cnn as icing_cnn
model_module = icing_cnn
elif model_type == 'FCN':
import deeplearning.icing_fcn as icing_fcn
model_module = icing_fcn
if use_flight_altitude is True:
......@@ -922,6 +922,7 @@ def run_icing_predict_fcn(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_d
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):
import deeplearning.icing_fcn as icing_fcn
model_module = icing_fcn
if day_model_path is not None:
......@@ -1034,8 +1035,10 @@ def run_icing_predict_image(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output
res_fac=1, model_type='CNN', extent=[-105, -70, 15, 50], pirep_file=None, icing_dict=None,
obs_lons=None, obs_lats=None, obs_times=None, obs_alt=None, obs_intensity=None):
if model_type == 'CNN':
import deeplearning.icing_cnn as icing_cnn
model_module = icing_cnn
elif model_type == 'FCN':
import deeplearning.icing_fcn as icing_fcn
model_module = icing_fcn
if day_model_path is not None:
......@@ -1236,6 +1239,7 @@ def run_icing_predict_image_fcn(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', ou
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, obs_intensity=None):
import deeplearning.icing_fcn as icing_fcn
model_module = icing_fcn
if day_model_path is not None:
......
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