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
d71f99a2
Commit
d71f99a2
authored
4 years ago
by
tomrink
Browse files
Options
Downloads
Patches
Plain Diff
snapshot...
parent
d5f8ca76
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/aeolus/aeolus_amv.py
+9
-3
9 additions, 3 deletions
modules/aeolus/aeolus_amv.py
with
9 additions
and
3 deletions
modules/aeolus/aeolus_amv.py
+
9
−
3
View file @
d71f99a2
...
@@ -328,6 +328,13 @@ def get_cloud_layers_dict(filename, lon360=False):
...
@@ -328,6 +328,13 @@ def get_cloud_layers_dict(filename, lon360=False):
return
cld_lyr_dct
return
cld_lyr_dct
def
get_cloud_layers_dict_s
(
aeolus_files_dir
,
lon360
=
False
):
a_d
=
get_aeolus_time_dict_s
(
aeolus_files_dir
,
lon360
=
lon360
,
do_sort
=
True
,
chan
=
'
mie
'
)
cld_lyr_dct
=
time_dict_to_cld_layers
(
a_d
)
cld_lyr_dct
=
time_dict_to_nd_2
(
cld_lyr_dct
)
return
cld_lyr_dct
def
run_amv_aeolus_best_fit
(
match_dict
,
aeolus_dict
):
def
run_amv_aeolus_best_fit
(
match_dict
,
aeolus_dict
):
keys
=
list
(
match_dict
.
keys
())
keys
=
list
(
match_dict
.
keys
())
...
@@ -538,11 +545,10 @@ def create_file(filename, aeolus_to_amv_dct, aeolus_dct, amv_files, cld_lyr=Fals
...
@@ -538,11 +545,10 @@ def create_file(filename, aeolus_to_amv_dct, aeolus_dct, amv_files, cld_lyr=Fals
# amv_files_dir: G16/17 AMV product files
# amv_files_dir: G16/17 AMV product files
# outfile: pathname for the Netcdf match file
# outfile: pathname for the Netcdf match file
def
create_amv_to_aeolus_match_file
(
aeolus_files_dir
,
amv_files_dir
,
outfile
=
None
,
amv_source
=
'
OPS
'
,
band
=
'
14
'
,
chan
=
'
mie
'
):
def
create_amv_to_aeolus_match_file
(
aeolus_files_dir
,
amv_files_dir
,
outfile
=
None
,
amv_source
=
'
OPS
'
,
band
=
'
14
'
,
chan
=
'
mie
'
):
a_d
=
get_aeolus_time_dict_s
(
aeolus_files_dir
,
chan
=
chan
)
if
chan
==
'
mie
'
:
if
chan
==
'
mie
'
:
a_d
=
time_dict_to_cld_layers
(
a_d
)
a_d
=
get_cloud_layers_dict_s
(
aeolus_files_dir
)
a_d
=
time_dict_to_nd_2
(
a_d
)
else
:
else
:
a_d
=
get_aeolus_time_dict_s
(
aeolus_files_dir
,
chan
=
chan
)
a_d
=
time_dict_to_nd
(
a_d
)
a_d
=
time_dict_to_nd
(
a_d
)
amv_files
=
None
amv_files
=
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