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
da21a0e5
"README" did not exist on "d287c0ea541cbeb2bd09a7b42a6ead0447450321"
Commit
da21a0e5
authored
2 years ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
slurm job names
parent
18a8acb0
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
dartwrf/workflows.py
+15
-15
15 additions, 15 deletions
dartwrf/workflows.py
with
15 additions
and
15 deletions
dartwrf/workflows.py
+
15
−
15
View file @
da21a0e5
...
@@ -151,7 +151,7 @@ class WorkFlows(object):
...
@@ -151,7 +151,7 @@ class WorkFlows(object):
mv $rundir/rsl.out.0000 $rundir/rsl.out.input
mv $rundir/rsl.out.0000 $rundir/rsl.out.input
done
done
"""
"""
id
=
self
.
cluster
.
run_job
(
cmd
,
"
ideal
"
,
cfg_update
=
{
"
ntasks
"
:
str
(
exp
.
n_ens
),
id
=
self
.
cluster
.
run_job
(
cmd
,
"
ideal
"
+
exp
.
expname
,
cfg_update
=
{
"
ntasks
"
:
str
(
exp
.
n_ens
),
"
time
"
:
"
10
"
,
"
mem
"
:
"
100G
"
},
depends_on
=
[
depends_on
])
"
time
"
:
"
10
"
,
"
mem
"
:
"
100G
"
},
depends_on
=
[
depends_on
])
return
id
return
id
...
@@ -165,7 +165,7 @@ class WorkFlows(object):
...
@@ -165,7 +165,7 @@ class WorkFlows(object):
pstr
=
'
perturb
'
pstr
=
'
perturb
'
cmd
=
self
.
cluster
.
python
+
'
'
+
self
.
cluster
.
scripts_rundir
+
'
/create_wbubble_wrfinput.py
'
+
pstr
cmd
=
self
.
cluster
.
python
+
'
'
+
self
.
cluster
.
scripts_rundir
+
'
/create_wbubble_wrfinput.py
'
+
pstr
id
=
self
.
cluster
.
run_job
(
cmd
,
"
ins_wbubble
"
,
cfg_update
=
{
"
time
"
:
"
5
"
},
depends_on
=
[
depends_on
])
id
=
self
.
cluster
.
run_job
(
cmd
,
"
ins_wbubble
"
+
exp
.
expname
,
cfg_update
=
{
"
time
"
:
"
5
"
},
depends_on
=
[
depends_on
])
return
id
return
id
def
run_ENS
(
self
,
begin
,
end
,
depends_on
=
None
,
first_minute
=
True
,
def
run_ENS
(
self
,
begin
,
end
,
depends_on
=
None
,
first_minute
=
True
,
...
@@ -232,13 +232,13 @@ class WorkFlows(object):
...
@@ -232,13 +232,13 @@ class WorkFlows(object):
time_in_simulation_hours
=
(
end
-
begin
).
total_seconds
()
/
3600
time_in_simulation_hours
=
(
end
-
begin
).
total_seconds
()
/
3600
runtime_wallclock_mins_expected
=
int
(
8
+
time_in_simulation_hours
*
9.5
)
# usually below 9 min/hour
runtime_wallclock_mins_expected
=
int
(
8
+
time_in_simulation_hours
*
9.5
)
# usually below 9 min/hour
id
=
self
.
cluster
.
run_job
(
cmd
,
"
WRF
"
,
cfg_update
=
{
"
array
"
:
"
1-
"
+
str
(
self
.
cluster
.
size_jobarray
),
"
ntasks
"
:
"
10
"
,
"
nodes
"
:
"
1
"
,
id
=
self
.
cluster
.
run_job
(
cmd
,
"
WRF
"
+
exp
.
expname
,
cfg_update
=
{
"
array
"
:
"
1-
"
+
str
(
self
.
cluster
.
size_jobarray
),
"
ntasks
"
:
"
10
"
,
"
nodes
"
:
"
1
"
,
"
time
"
:
str
(
runtime_wallclock_mins_expected
),
"
mem
"
:
"
3
0G
"
},
depends_on
=
[
id
])
"
time
"
:
str
(
runtime_wallclock_mins_expected
),
"
mem
"
:
"
4
0G
"
},
depends_on
=
[
id
])
return
id
return
id
def
assimilate
(
self
,
assim_time
,
prior_init_time
,
prior_valid_time
,
prior_path_exp
,
def
assimilate
(
self
,
assim_time
,
prior_init_time
,
prior_valid_time
,
prior_path_exp
,
depends_on
=
None
):
depends_on
=
None
):
"""
Creates observations from a nature run and assimilates them.
"""
Creates observations from a nature run and assimilates them.
Args:
Args:
...
@@ -258,7 +258,7 @@ class WorkFlows(object):
...
@@ -258,7 +258,7 @@ class WorkFlows(object):
+
prior_valid_time
.
strftime
(
'
%Y-%m-%d_%H:%M
'
)
+
prior_valid_time
.
strftime
(
'
%Y-%m-%d_%H:%M
'
)
+
prior_path_exp
)
+
prior_path_exp
)
id
=
self
.
cluster
.
run_job
(
cmd
,
"
Assim
"
,
cfg_update
=
{
"
ntasks
"
:
"
12
"
,
"
time
"
:
"
60
"
,
id
=
self
.
cluster
.
run_job
(
cmd
,
"
Assim
"
+
exp
.
expname
,
cfg_update
=
{
"
ntasks
"
:
"
12
"
,
"
time
"
:
"
60
"
,
"
mem
"
:
"
200G
"
,
"
ntasks-per-node
"
:
"
12
"
,
"
ntasks-per-core
"
:
"
2
"
},
depends_on
=
[
depends_on
])
"
mem
"
:
"
200G
"
,
"
ntasks-per-node
"
:
"
12
"
,
"
ntasks-per-core
"
:
"
2
"
},
depends_on
=
[
depends_on
])
return
id
return
id
...
@@ -275,19 +275,19 @@ class WorkFlows(object):
...
@@ -275,19 +275,19 @@ class WorkFlows(object):
+
prior_init_time
.
strftime
(
'
%Y-%m-%d_%H:%M
'
)
+
prior_init_time
.
strftime
(
'
%Y-%m-%d_%H:%M
'
)
+
prior_valid_time
.
strftime
(
'
%Y-%m-%d_%H:%M
'
)
+
prior_valid_time
.
strftime
(
'
%Y-%m-%d_%H:%M
'
)
+
tnew
)
+
tnew
)
id
=
self
.
cluster
.
run_job
(
cmd
,
"
IC-prior
"
,
cfg_update
=
dict
(
time
=
"
8
"
),
depends_on
=
[
depends_on
])
id
=
self
.
cluster
.
run_job
(
cmd
,
"
IC-prior
"
+
exp
.
expname
,
cfg_update
=
dict
(
time
=
"
8
"
),
depends_on
=
[
depends_on
])
return
id
return
id
def
update_IC_from_DA
(
self
,
assim_time
,
depends_on
=
None
):
def
update_IC_from_DA
(
self
,
assim_time
,
depends_on
=
None
):
cmd
=
self
.
cluster
.
python
+
'
'
+
self
.
cluster
.
scripts_rundir
+
'
/update_IC.py
'
+
assim_time
.
strftime
(
'
%Y-%m-%d_%H:%M
'
)
cmd
=
self
.
cluster
.
python
+
'
'
+
self
.
cluster
.
scripts_rundir
+
'
/update_IC.py
'
+
assim_time
.
strftime
(
'
%Y-%m-%d_%H:%M
'
)
id
=
self
.
cluster
.
run_job
(
cmd
,
"
IC-update
"
,
cfg_update
=
dict
(
time
=
"
8
"
),
depends_on
=
[
depends_on
])
id
=
self
.
cluster
.
run_job
(
cmd
,
"
IC-update
"
+
exp
.
expname
,
cfg_update
=
dict
(
time
=
"
8
"
),
depends_on
=
[
depends_on
])
return
id
return
id
def
create_satimages
(
self
,
init_time
,
depends_on
=
None
):
def
create_satimages
(
self
,
init_time
,
depends_on
=
None
):
cmd
=
self
.
cluster
.
python_verif
+
'
~/RTTOV-WRF/run_init.py
'
+
self
.
cluster
.
archivedir
+
init_time
.
strftime
(
'
/%Y-%m-%d_%H:%M/
'
)
cmd
=
'
module purge; module load netcdf-fortran/4.5.3-gcc-8.5.0-qsqbozc; python
~/RTTOV-WRF/run_init.py
'
+
self
.
cluster
.
archivedir
+
init_time
.
strftime
(
'
/%Y-%m-%d_%H:%M/
'
)
id
=
self
.
cluster
.
run_job
(
cmd
,
"
RTTOV
"
,
cfg_update
=
{
"
ntasks
"
:
"
12
"
,
"
time
"
:
"
8
0
"
,
"
mem
"
:
"
200G
"
},
depends_on
=
[
depends_on
])
id
=
self
.
cluster
.
run_job
(
cmd
,
"
RTTOV
"
+
exp
.
expname
,
cfg_update
=
{
"
ntasks
"
:
"
12
"
,
"
time
"
:
"
12
0
"
,
"
mem
"
:
"
200G
"
},
depends_on
=
[
depends_on
])
return
id
return
id
...
@@ -302,15 +302,15 @@ class WorkFlows(object):
...
@@ -302,15 +302,15 @@ class WorkFlows(object):
cmd
=
self
.
cluster
.
python_verif
+
'
/jetfs/home/lkugler/osse_analysis/plot_from_raw/analyze_fc.py
'
+
exp
.
expname
+
'
has_node sat verif1d FSS BS
'
cmd
=
self
.
cluster
.
python_verif
+
'
/jetfs/home/lkugler/osse_analysis/plot_from_raw/analyze_fc.py
'
+
exp
.
expname
+
'
has_node sat verif1d FSS BS
'
self
.
cluster
.
run_job
(
cmd
,
"
verif-SAT-
"
+
exp
.
expname
,
self
.
cluster
.
run_job
(
cmd
,
"
verif-SAT-
"
+
exp
.
expname
,
cfg_update
=
{
"
time
"
:
"
60
"
,
"
mail-type
"
:
"
FAIL,END
"
,
"
ntasks
"
:
"
20
"
,
cfg_update
=
{
"
time
"
:
"
60
"
,
"
mail-type
"
:
"
FAIL,END
"
,
"
ntasks
"
:
"
15
"
,
"
ntasks-per-node
"
:
"
20
"
,
"
ntasks-per-core
"
:
"
1
"
,
"
mem
"
:
"
100G
"
,},
depends_on
=
[
depends_on
])
"
ntasks-per-node
"
:
"
15
"
,
"
ntasks-per-core
"
:
"
1
"
,
"
mem
"
:
"
100G
"
,},
depends_on
=
[
depends_on
])
def
verify_wrf
(
self
,
depends_on
=
None
):
def
verify_wrf
(
self
,
depends_on
=
None
):
cmd
=
self
.
cluster
.
python_verif
+
'
/jetfs/home/lkugler/osse_analysis/plot_from_raw/analyze_fc.py
'
+
exp
.
expname
+
'
has_node wrf verif1d
verif3d
FSS BS
'
cmd
=
self
.
cluster
.
python_verif
+
'
/jetfs/home/lkugler/osse_analysis/plot_from_raw/analyze_fc.py
'
+
exp
.
expname
+
'
has_node wrf verif1d FSS BS
'
self
.
cluster
.
run_job
(
cmd
,
"
verif-WRF-
"
+
exp
.
expname
,
self
.
cluster
.
run_job
(
cmd
,
"
verif-WRF-
"
+
exp
.
expname
,
cfg_update
=
{
"
time
"
:
"
120
"
,
"
mail-type
"
:
"
FAIL,END
"
,
"
ntasks
"
:
"
20
"
,
cfg_update
=
{
"
time
"
:
"
120
"
,
"
mail-type
"
:
"
FAIL,END
"
,
"
ntasks
"
:
"
15
"
,
"
ntasks-per-node
"
:
"
20
"
,
"
ntasks-per-core
"
:
"
1
"
,
"
mem
"
:
"
25
0G
"
},
depends_on
=
[
depends_on
])
"
ntasks-per-node
"
:
"
15
"
,
"
ntasks-per-core
"
:
"
1
"
,
"
mem
"
:
"
18
0G
"
},
depends_on
=
[
depends_on
])
def
verify_fast
(
self
,
depends_on
=
None
):
def
verify_fast
(
self
,
depends_on
=
None
):
cmd
=
self
.
cluster
.
python_verif
+
'
/jetfs/home/lkugler/osse_analysis/plot_fast/plot_single_exp.py
'
+
exp
.
expname
cmd
=
self
.
cluster
.
python_verif
+
'
/jetfs/home/lkugler/osse_analysis/plot_fast/plot_single_exp.py
'
+
exp
.
expname
...
...
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