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
752decda
Commit
752decda
authored
4 years ago
by
rink
Browse files
Options
Downloads
Patches
Plain Diff
minor
parent
a7dcf81d
No related branches found
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
+15
-6
15 additions, 6 deletions
modules/aeolus/aeolus_amv.py
with
15 additions
and
6 deletions
modules/aeolus/aeolus_amv.py
+
15
−
6
View file @
752decda
...
@@ -225,9 +225,18 @@ def get_aeolus_time_dict_s(files_path, lon360=False, do_sort=True):
...
@@ -225,9 +225,18 @@ def get_aeolus_time_dict_s(files_path, lon360=False, do_sort=True):
return
t_dct
return
t_dct
def
run_amv_aeolus_best_fit
(
match_dict
):
def
run_amv_aeolus_best_fit
(
match_dict
,
aeolus_dict
):
return
None
keys
=
list
(
match_dict
.
keys
())
for
key
in
keys
:
profs
=
aeolus_dict
.
get
(
key
)
layers
=
profs
[
0
]
if
layers
is
None
:
continue
lat
=
layers
[
0
,
0
]
lon
=
layers
[
0
,
1
]
return
None
def
get_search_box
(
nav
,
lon
,
lat
):
def
get_search_box
(
nav
,
lon
,
lat
):
cc
,
ll
=
nav
.
earth_to_lc
(
lon
,
lat
)
cc
,
ll
=
nav
.
earth_to_lc
(
lon
,
lat
)
...
@@ -411,11 +420,11 @@ def create_file(filename, aeolus_to_amv_dct, aeolus_dct):
...
@@ -411,11 +420,11 @@ def create_file(filename, aeolus_to_amv_dct, aeolus_dct):
rootgrp
.
close
()
rootgrp
.
close
()
# aeolus_file: S4 NOAA txt output
# aeolus_file
s_dir
: S4 NOAA txt output
files
# amv_files_dir: G16/17 AMV product file
# amv_files_dir: G16/17 AMV product file
s
# outfile: pathname for the Netcdf match file
# outfile: pathname for the Netcdf match file
def
run
(
aeolus_file
,
amv_files_dir
,
outfile
=
None
,
amv_source
=
'
OPS
'
,
band
=
'
14
'
):
def
create_amv_to_aeolus_match_file
(
aeolus_file
s_dir
,
amv_files_dir
,
outfile
=
None
,
amv_source
=
'
OPS
'
,
band
=
'
14
'
):
a_d
=
get_aeolus_time_dict
(
aeolus_file
)
a_d
=
get_aeolus_time_dict
_s
(
aeolus_file
s_dir
)
a_d
=
time_dict_to_nd
(
a_d
)
a_d
=
time_dict_to_nd
(
a_d
)
m_d
=
match_amvs_to_aeolus
(
a_d
,
amv_files_dir
,
amv_source
,
band
)
m_d
=
match_amvs_to_aeolus
(
a_d
,
amv_files_dir
,
amv_source
,
band
)
...
...
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