Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tom Rink
python
Commits
b583a075
Commit
b583a075
authored
1 year ago
by
tomrink
Browse files
Options
Downloads
Patches
Plain Diff
snapshot...
parent
4c79f813
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/icing/util.py
+6
-2
6 additions, 2 deletions
modules/icing/util.py
with
6 additions
and
2 deletions
modules/icing/util.py
+
6
−
2
View file @
b583a075
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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment