Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DART-WRF
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DataAssimilation
DART-WRF
Commits
8618022d
Commit
8618022d
authored
2 years ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
every minute output within 5 minutes
parent
9604f73c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dartwrf/workflows.py
+5
-5
5 additions, 5 deletions
dartwrf/workflows.py
with
5 additions
and
5 deletions
dartwrf/workflows.py
+
5
−
5
View file @
8618022d
...
...
@@ -206,7 +206,7 @@ class WorkFlows(object):
id
=
self
.
cluster
.
run_job
(
cmd
,
"
ins_wbub-
"
+
self
.
exp
.
expname
,
cfg_update
=
{
"
time
"
:
"
5
"
},
depends_on
=
[
depends_on
])
return
id
def
run_ENS
(
self
,
begin
,
end
,
depends_on
=
None
,
first_minute
=
False
,
def
run_ENS
(
self
,
begin
,
end
,
depends_on
=
None
,
first_minute
s
=
False
,
input_is_restart
=
True
,
output_restart_interval
=
720
,
hist_interval
=
5
,
radt
=
5
):
"""
Run the forecast ensemble
...
...
@@ -214,7 +214,7 @@ class WorkFlows(object):
begin (datetime): start time of the forecast
end (datetime): end time of the forecast
depends_on (str, optional): job ID of a previous job after which to run this job
first_minute (bool, optional): if True,
run the
first minute
of the forecast
first_minute
s
(bool, optional): if True,
get wrfout of
first
5
minute
s every minute
input_is_restart (bool, optional): if True, start WRF from WRFrst file (restart mode)
output_restart_interval (int, optional): interval in minutes between output of WRFrst files
hist_interval (int, optional): interval in minutes between output of WRF history files
...
...
@@ -243,9 +243,9 @@ class WorkFlows(object):
).
replace
(
'
<cluster.wrf_rundir_base>
'
,
self
.
cluster
.
wrf_rundir_base
).
replace
(
'
<cluster.wrf_modules>
'
,
self
.
cluster
.
wrf_modules
)
# first minute
forecast
(needed for validating a radiance assimilation)
if
first_minute
:
id
=
prepare_WRF_inputfiles
(
begin
,
begin
+
dt
.
timedelta
(
minutes
=
1
),
#
every minute output within
first
5
minute
s
(needed for validating a radiance assimilation)
if
first_minute
s
:
id
=
prepare_WRF_inputfiles
(
begin
,
begin
+
dt
.
timedelta
(
minutes
=
4
),
hist_interval
=
1
,
# to get an output after 1 minute
radt
=
1
,
# to get a cloud fraction CFRAC after 1 minute
output_restart_interval
=
output_restart_interval
,
...
...
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