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
4fd96715
Commit
4fd96715
authored
4 years ago
by
tomrink
Browse files
Options
Downloads
Patches
Plain Diff
snapshot...
parent
a40578d2
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/datasource.py
+10
-2
10 additions, 2 deletions
modules/aeolus/datasource.py
with
10 additions
and
2 deletions
modules/aeolus/datasource.py
+
10
−
2
View file @
4fd96715
...
@@ -77,7 +77,10 @@ class AMVFiles:
...
@@ -77,7 +77,10 @@ class AMVFiles:
def
get_meta_dict
(
self
):
def
get_meta_dict
(
self
):
return
self
.
meta_dict
return
self
.
meta_dict
def
filter
(
self
):
def
get_qc_params
(
self
):
return
self
.
qc_params
def
filter
(
self
,
qc_param
):
pass
pass
...
@@ -95,9 +98,10 @@ class Framework(AMVFiles):
...
@@ -95,9 +98,10 @@ class Framework(AMVFiles):
'
Line
'
:
(
None
,
'
i4
'
),
'
pressure
'
:
(
'
hPa
'
,
'
f4
'
),
'
wind_speed
'
:
(
'
m s-1
'
,
'
f4
'
),
'
Line
'
:
(
None
,
'
i4
'
),
'
pressure
'
:
(
'
hPa
'
,
'
f4
'
),
'
wind_speed
'
:
(
'
m s-1
'
,
'
f4
'
),
#'wind_direction': ('degrees', 'f4'), 'BestFitPresLvl': ('hPa', 'f4')}
#'wind_direction': ('degrees', 'f4'), 'BestFitPresLvl': ('hPa', 'f4')}
'
wind_direction
'
:
(
'
degrees
'
,
'
f4
'
)}
'
wind_direction
'
:
(
'
degrees
'
,
'
f4
'
)}
qc_param
=
'
QI
'
super
().
__init__
(
files_path
,
file_time_span
,
'
*WINDS_AMV_EN-
'
+
band
+
'
*.nc
'
,
band
=
band
,
elem_name
=
elem_name
,
params
=
params
,
super
().
__init__
(
files_path
,
file_time_span
,
'
*WINDS_AMV_EN-
'
+
band
+
'
*.nc
'
,
band
=
band
,
elem_name
=
elem_name
,
params
=
params
,
line_name
=
line_name
,
lat_name
=
lat_name
,
lon_name
=
lon_name
,
out_params
=
out_params
,
meta_dict
=
meta_dict
)
line_name
=
line_name
,
lat_name
=
lat_name
,
lon_name
=
lon_name
,
out_params
=
out_params
,
meta_dict
=
meta_dict
,
qc_params
=
qc_param
)
def
get_navigation
(
self
):
def
get_navigation
(
self
):
return
GEOSNavigation
(
sub_lon
=-
75.0
)
return
GEOSNavigation
(
sub_lon
=-
75.0
)
...
@@ -112,6 +116,10 @@ class Framework(AMVFiles):
...
@@ -112,6 +116,10 @@ class Framework(AMVFiles):
return
dto
return
dto
def
filter
(
self
,
qc_param
):
good
=
qc_param
>
50
return
good
class
FrameworkCloudHeight
(
AMVFiles
):
class
FrameworkCloudHeight
(
AMVFiles
):
def
__init__
(
self
,
files_path
,
file_time_span
):
def
__init__
(
self
,
files_path
,
file_time_span
):
...
...
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