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
70f4989c
Commit
70f4989c
authored
2 years ago
by
tomrink
Browse files
Options
Downloads
Patches
Plain Diff
snapshot...
parent
8972d98a
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
+7
-11
7 additions, 11 deletions
modules/icing/util.py
with
7 additions
and
11 deletions
modules/icing/util.py
+
7
−
11
View file @
70f4989c
...
@@ -341,19 +341,19 @@ def run_icing_predict_fcn(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_d
...
@@ -341,19 +341,19 @@ def run_icing_predict_fcn(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output_d
def
run_icing_predict_image
(
clvrx_dir
=
'
/Users/tomrink/data/clavrx/RadC/
'
,
output_dir
=
homedir
,
def
run_icing_predict_image
(
clvrx_dir
=
'
/Users/tomrink/data/clavrx/RadC/
'
,
output_dir
=
homedir
,
day_model_path
=
model_path_day
,
night_model_path
=
model_path_night
,
day_model_path
=
model_path_day
,
night_model_path
=
model_path_night
,
prob_thresh
=
0.5
,
satellite
=
'
GOES16
'
,
domain
=
'
CONUS
'
,
day_night
=
'
AUTO
'
,
prob_thresh
=
0.5
,
satellite
=
'
GOES16
'
,
domain
=
'
CONUS
'
,
day_night
=
'
AUTO
'
,
l1b_andor_l2
=
'
BOTH
'
,
use_flight_altitude
=
True
,
res_fac
=
1
,
model_type
=
'
CNN
'
,
l1b_andor_l2
=
'
BOTH
'
,
use_flight_altitude
=
True
,
flight_levels
=
[
0
,
1
,
2
,
3
,
4
],
extent
=
[
-
105
,
-
70
,
15
,
50
],
res_fac
=
1
,
model_type
=
'
CNN
'
,
extent
=
[
-
105
,
-
70
,
15
,
50
],
pirep_file
=
None
,
icing_dict
=
None
,
pirep_file
=
'
/Users/tomrink/data/pirep/pireps_202109200000_202109232359.csv
'
,
obs_lons
=
None
,
obs_lats
=
None
,
obs_times
=
None
,
obs_alt
=
None
,
obs_intensity
=
None
):
icing_dict
=
None
,
obs_lons
=
None
,
obs_lats
=
None
,
obs_times
=
None
,
obs_alt
=
None
,
obs_intensity
=
None
,
flight_level
=
None
):
if
model_type
==
'
CNN
'
:
if
model_type
==
'
CNN
'
:
model_module
=
icing_cnn
model_module
=
icing_cnn
elif
model_type
==
'
FCN
'
:
elif
model_type
==
'
FCN
'
:
model_module
=
icing_fcn
model_module
=
icing_fcn
alt_lo
,
alt_hi
=
0.0
,
15000.0
if
use_flight_altitude
is
True
:
if
use_flight_altitude
is
True
:
flight_levels
=
[
0
,
1
,
2
,
3
,
4
]
flight_levels
=
flight_levels
alt_lo
=
flt_level_ranges
[
flight_levels
[
0
]][
0
]
alt_hi
=
flt_level_ranges
[
flight_levels
[
-
1
]][
1
]
else
:
else
:
flight_levels
=
[
0
]
flight_levels
=
[
0
]
...
@@ -362,10 +362,6 @@ def run_icing_predict_image(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output
...
@@ -362,10 +362,6 @@ def run_icing_predict_image(clvrx_dir='/Users/tomrink/data/clavrx/RadC/', output
if
icing_dict
is
not
None
:
if
icing_dict
is
not
None
:
ice_dict
=
icing_dict
ice_dict
=
icing_dict
alt_lo
,
alt_hi
=
0.0
,
15000.0
if
flight_level
is
not
None
:
alt_lo
,
alt_hi
=
flt_level_ranges
[
flight_level
]
day_train_params
,
_
,
_
=
get_training_parameters
(
day_night
=
'
DAY
'
,
l1b_andor_l2
=
l1b_andor_l2
)
day_train_params
,
_
,
_
=
get_training_parameters
(
day_night
=
'
DAY
'
,
l1b_andor_l2
=
l1b_andor_l2
)
nght_train_params
,
_
,
_
=
get_training_parameters
(
day_night
=
'
NIGHT
'
,
l1b_andor_l2
=
l1b_andor_l2
)
nght_train_params
,
_
,
_
=
get_training_parameters
(
day_night
=
'
NIGHT
'
,
l1b_andor_l2
=
l1b_andor_l2
)
...
...
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