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
fc100c6a
Commit
fc100c6a
authored
4 years ago
by
rink
Browse files
Options
Downloads
Patches
Plain Diff
snapshot..
parent
00c6eae8
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
-24
15 additions, 24 deletions
modules/aeolus/aeolus_amv.py
with
15 additions
and
24 deletions
modules/aeolus/aeolus_amv.py
+
15
−
24
View file @
fc100c6a
...
@@ -36,15 +36,6 @@ class AMVFiles:
...
@@ -36,15 +36,6 @@ class AMVFiles:
dto_end
=
dto
+
datetime
.
timedelta
(
minutes
=
file_time_span
)
dto_end
=
dto
+
datetime
.
timedelta
(
minutes
=
file_time_span
)
self
.
ftimes
.
append
((
dto_start
.
timestamp
(),
dto_end
.
timestamp
()))
self
.
ftimes
.
append
((
dto_start
.
timestamp
(),
dto_end
.
timestamp
()))
self
.
elem_name
=
None
self
.
line_name
=
None
self
.
lat_name
=
None
self
.
lon_name
=
None
self
.
params
=
None
self
.
out_params
=
None
self
.
meta_dict
=
None
def
get_datetime
(
self
,
pathname
):
def
get_datetime
(
self
,
pathname
):
return
None
return
None
...
@@ -63,13 +54,13 @@ class AMVFiles:
...
@@ -63,13 +54,13 @@ class AMVFiles:
return
self
.
flist
[
k
],
self
.
ftimes
[
k
],
k
return
self
.
flist
[
k
],
self
.
ftimes
[
k
],
k
def
get_parameters
(
self
):
def
get_parameters
(
self
):
self
.
params
raise
MyGenericException
(
'
must implement get_parameters in subclass
'
)
def
get_out_parameters
(
self
):
def
get_out_parameters
(
self
):
self
.
out_params
raise
MyGenericException
(
'
must implement get_out_parameters in subclass
'
)
def
get_meta_dict
(
self
):
def
get_meta_dict
(
self
):
self
.
meta_dict
raise
MyGenericException
(
'
must implement get_meta_dict in subclass
'
)
class
Framework
(
AMVFiles
):
class
Framework
(
AMVFiles
):
...
@@ -111,10 +102,10 @@ class CarrStereo(AMVFiles):
...
@@ -111,10 +102,10 @@ class CarrStereo(AMVFiles):
def
__init__
(
self
,
files_path
,
file_time_span
,
band
=
'
14
'
):
def
__init__
(
self
,
files_path
,
file_time_span
,
band
=
'
14
'
):
super
().
__init__
(
files_path
,
file_time_span
,
'
tdw_qc_GOES*
'
+
'
ch_
'
+
band
+
'
.nc
'
,
band
)
super
().
__init__
(
files_path
,
file_time_span
,
'
tdw_qc_GOES*
'
+
'
ch_
'
+
band
+
'
.nc
'
,
band
)
self
.
elem_name
=
'
Element
'
#
self.elem_name = 'Element'
self
.
line_name
=
'
Line
'
#
self.line_name = 'Line'
self
.
lon_name
=
'
Lon
'
#
self.lon_name = 'Lon'
self
.
lat_name
=
'
Lat
'
#
self.lat_name = 'Lat'
self
.
out_params
=
[
'
Lon
'
,
'
Lat
'
,
'
Element
'
,
'
Line
'
,
'
V_3D_u
'
,
'
V_3D_v
'
,
'
H_3D
'
,
'
pres
'
,
'
Fcst_Spd
'
,
'
Fcst_Dir
'
,
'
SatZen
'
,
self
.
out_params
=
[
'
Lon
'
,
'
Lat
'
,
'
Element
'
,
'
Line
'
,
'
V_3D_u
'
,
'
V_3D_v
'
,
'
H_3D
'
,
'
pres
'
,
'
Fcst_Spd
'
,
'
Fcst_Dir
'
,
'
SatZen
'
,
'
InversionFlag
'
,
'
CloudPhase
'
,
'
CloudType
'
]
'
InversionFlag
'
,
'
CloudPhase
'
,
'
CloudType
'
]
...
@@ -140,14 +131,14 @@ class CarrStereo(AMVFiles):
...
@@ -140,14 +131,14 @@ class CarrStereo(AMVFiles):
return
dto
return
dto
#
def get_parameters(self):
def
get_parameters
(
self
):
#
return self.params
return
self
.
params
#
#
def get_out_parameters(self):
def
get_out_parameters
(
self
):
#
return self.out_params
return
self
.
out_params
#
#
def get_meta_dict(self):
def
get_meta_dict
(
self
):
#
return self.meta_dict
return
self
.
meta_dict
def
get_datetime
(
pathname
):
def
get_datetime
(
pathname
):
...
...
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