Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Flex Extract
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Flexpart
Flex Extract
Commits
4d3b0522
Commit
4d3b0522
authored
Dec 7, 2018
by
Anne Philipp
Browse files
Options
Downloads
Patches
Plain Diff
introduced a new parameter which defines pure forcast mode
parent
c274d9a5
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
source/python/classes/ControlFile.py
+5
-1
5 additions, 1 deletion
source/python/classes/ControlFile.py
source/python/mods/checks.py
+23
-0
23 additions, 0 deletions
source/python/mods/checks.py
with
28 additions
and
1 deletion
source/python/classes/ControlFile.py
+
5
−
1
View file @
4d3b0522
...
...
@@ -149,11 +149,13 @@ class ControlFile(object):
self
.
request
=
0
self
.
public
=
0
self
.
ecapi
=
None
self
.
purefc
=
0
self
.
rrint
=
0
self
.
logicals
=
[
'
gauss
'
,
'
omega
'
,
'
omegadiff
'
,
'
eta
'
,
'
etadiff
'
,
'
dpdeta
'
,
'
cwc
'
,
'
wrf
'
,
'
grib2flexpart
'
,
'
ecstorage
'
,
'
ectrans
'
,
'
debug
'
,
'
request
'
,
'
public
'
,
'
rrint
'
]
'
ectrans
'
,
'
debug
'
,
'
request
'
,
'
public
'
,
'
purefc
'
,
'
rrint
'
]
self
.
__read_controlfile__
()
...
...
@@ -478,6 +480,8 @@ class ControlFile(object):
print
(
'
Use default value
"
12
"
for flux forecast!
'
)
self
.
accmaxstep
=
'
12
'
self
.
purefc
=
check_purefc
(
self
.
type
)
self
.
grid
=
check_grid
(
self
.
grid
)
self
.
area
=
check_area
(
self
.
grid
,
self
.
area
,
self
.
upper
,
self
.
lower
,
...
...
This diff is collapsed.
Click to expand it.
source/python/mods/checks.py
+
23
−
0
View file @
4d3b0522
...
...
@@ -154,6 +154,29 @@ def check_ppid(c, ppid):
return
def
check_purefc
(
type
):
'''
Check for a pure forecast mode.
Parameters
----------
type : :obj:`list` of :obj:`string`
List of field types.
Return
------
True or False:
True if pure forecasts are to be retrieved. False if there are
analysis fields in between.
'''
if
'
AN
'
not
in
type
and
'
4V
'
not
in
type
:
# pure forecast
return
True
return
False
def
check_
():
'''
...
...
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