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
4af099b3
Commit
4af099b3
authored
2 years ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
.
parent
3e681508
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
config/cfg.py
+22
-11
22 additions, 11 deletions
config/cfg.py
config/clusters.py
+4
-3
4 additions, 3 deletions
config/clusters.py
dartwrf/utils.py
+10
-8
10 additions, 8 deletions
dartwrf/utils.py
scheduler.py
+9
-10
9 additions, 10 deletions
scheduler.py
with
45 additions
and
32 deletions
config/cfg.py
+
22
−
11
View file @
4af099b3
...
@@ -7,15 +7,22 @@ class ExperimentConfiguration(object):
...
@@ -7,15 +7,22 @@ class ExperimentConfiguration(object):
pass
pass
exp
=
ExperimentConfiguration
()
exp
=
ExperimentConfiguration
()
exp
.
expname
=
"
exp_v1.2
1
_P3_wbub7_
VIS
_obs10_loc20
"
exp
.
expname
=
"
exp_v1.2
2
_P3_wbub7_
WV73
_obs10_loc20
"
exp
.
model_dx
=
2000
exp
.
model_dx
=
2000
exp
.
n_ens
=
40
exp
.
n_ens
=
40
exp
.
n_nodes
=
10
exp
.
n_nodes
=
10
exp
.
filter_kind
=
1
exp
.
inflation
=
True
exp
.
inflation
=
True
exp
.
sec
=
True
exp
.
sec
=
True
exp
.
reject_smallFGD
=
False
exp
.
reject_smallFGD
=
False
exp
.
cov_loc_vert_km_horiz_km
=
(
3
,
20
)
exp
.
cov_loc_vert_km_horiz_km
=
False
# (3, 20)
exp
.
superob_km
=
False
exp
.
superob_km
=
False
# False or int (spatial averaging of observations)
exp
.
use_existing_obsseq
=
False
# False or pathname (use precomputed obs_seq.out files)
#exp.use_existing_obsseq = '/gpfs/data/fs71386/lkugler/sim_archive/exp_v1.21_P2_rr_REFL_obs10_loc20_oe1/obs_seq_out/2008-07-30_%H:%M_obs_seq.out'
#exp.use_existing_obsseq = '/gpfs/data/fs71386/lkugler/sim_archive/exp_v1.21_P3_wbub7_REFL2D_obs10_loc20_oe5/obs_seq_out/2008-07-30_%H:%M_obs_seq.out'
#exp.use_existing_obsseq = '/gpfs/data/fs71386/lkugler/sim_archive/exp_v1.21_P2_rr_VIS_obs20_loc4/obs_seq_out/2008-07-30_%H:%M_obs_seq.out'
#exp.nature_wrfout = '/home/fs71386/lkugler/data/sim_archive/exp_v1.19_P5+su_nat2/2008-07-30_07:00/1/wrfout_d01_%Y-%m-%d_%H:%M:%S'
#exp.nature_wrfout = '/home/fs71386/lkugler/data/sim_archive/exp_v1.19_P5+su_nat2/2008-07-30_07:00/1/wrfout_d01_%Y-%m-%d_%H:%M:%S'
...
@@ -30,7 +37,6 @@ exp.nature_wrfout = '/home/fs71386/lkugler/data/sim_archive/exp_v1.19_P3_wbub7_n
...
@@ -30,7 +37,6 @@ exp.nature_wrfout = '/home/fs71386/lkugler/data/sim_archive/exp_v1.19_P3_wbub7_n
#exp.input_profile = '/home/fs71386/lkugler/data/initial_profiles/wrf/ens/large_mean_error/raso.nat.<iens>.wrfprof'
#exp.input_profile = '/home/fs71386/lkugler/data/initial_profiles/wrf/ens/large_mean_error/raso.nat.<iens>.wrfprof'
exp
.
input_profile
=
'
/gpfs/data/fs71386/lkugler/initial_profiles/wrf/ens/2022-03-31/raso.fc.<iens>.wrfprof
'
exp
.
input_profile
=
'
/gpfs/data/fs71386/lkugler/initial_profiles/wrf/ens/2022-03-31/raso.fc.<iens>.wrfprof
'
#exp.input_profile = '/gpfs/data/fs71386/lkugler/initial_profiles/wrf/ens/2022-03-31/raso.nat.<iens>.wrfprof'
#exp.input_profile = '/gpfs/data/fs71386/lkugler/initial_profiles/wrf/ens/2022-03-31/raso.nat.<iens>.wrfprof'
#exp.input_profile = '/gpfs/data/fs71386/lkugler/initial_profiles/wrf/ens/2022-05-18_nopert/raso.nat.<iens>.wrfprof'
#exp.input_profile = '/gpfs/data/fs71386/lkugler/initial_profiles/wrf/ens/2022-05-18/raso.fc.<iens>.wrfprof'
#exp.input_profile = '/gpfs/data/fs71386/lkugler/initial_profiles/wrf/ens/2022-05-18/raso.fc.<iens>.wrfprof'
...
@@ -45,6 +51,11 @@ vis = dict(plotname='VIS 0.6µm', plotunits='[1]',
...
@@ -45,6 +51,11 @@ vis = dict(plotname='VIS 0.6µm', plotunits='[1]',
error_generate
=
0.03
,
error_assimilate
=
0.06
,
error_generate
=
0.03
,
error_assimilate
=
0.06
,
cov_loc_radius_km
=
20
)
cov_loc_radius_km
=
20
)
wv62
=
dict
(
plotname
=
'
Brightness temperature WV 6.2µm
'
,
plotunits
=
'
[K]
'
,
kind
=
'
MSG_4_SEVIRI_TB
'
,
sat_channel
=
5
,
n_obs
=
n_obs
,
error_generate
=
1.
,
error_assimilate
=
False
,
cov_loc_radius_km
=
20
)
wv73
=
dict
(
plotname
=
'
Brightness temperature WV 7.3µm
'
,
plotunits
=
'
[K]
'
,
wv73
=
dict
(
plotname
=
'
Brightness temperature WV 7.3µm
'
,
plotunits
=
'
[K]
'
,
kind
=
'
MSG_4_SEVIRI_TB
'
,
sat_channel
=
6
,
n_obs
=
n_obs
,
kind
=
'
MSG_4_SEVIRI_TB
'
,
sat_channel
=
6
,
n_obs
=
n_obs
,
error_generate
=
1.
,
error_assimilate
=
False
,
error_generate
=
1.
,
error_assimilate
=
False
,
...
@@ -57,8 +68,8 @@ ir108 = dict(plotname='Brightness temperature IR 10.8µm', plotunits='[K]',
...
@@ -57,8 +68,8 @@ ir108 = dict(plotname='Brightness temperature IR 10.8µm', plotunits='[K]',
radar
=
dict
(
plotname
=
'
Radar reflectivity
'
,
plotunits
=
'
[dBz]
'
,
radar
=
dict
(
plotname
=
'
Radar reflectivity
'
,
plotunits
=
'
[dBz]
'
,
kind
=
'
RADAR_REFLECTIVITY
'
,
n_obs
=
n_obs
,
kind
=
'
RADAR_REFLECTIVITY
'
,
n_obs
=
n_obs
,
error_generate
=
2.5
,
error_assimilate
=
2.
5
,
error_generate
=
2.5
,
error_assimilate
=
5
,
heights
=
np
.
arange
(
2000
,
14001
,
2000
),
heights
=
[
2000
,],
#
np.arange(2000, 14001, 2000),
cov_loc_radius_km
=
20
)
cov_loc_radius_km
=
20
)
t
=
dict
(
plotname
=
'
Temperature
'
,
plotunits
=
'
[K]
'
,
t
=
dict
(
plotname
=
'
Temperature
'
,
plotunits
=
'
[K]
'
,
...
@@ -69,7 +80,7 @@ t = dict(plotname='Temperature', plotunits='[K]',
...
@@ -69,7 +80,7 @@ t = dict(plotname='Temperature', plotunits='[K]',
q
=
dict
(
plotname
=
'
Specific humidity
'
,
plotunits
=
'
[kg/kg]
'
,
q
=
dict
(
plotname
=
'
Specific humidity
'
,
plotunits
=
'
[kg/kg]
'
,
kind
=
'
RADIOSONDE_SPECIFIC_HUMIDITY
'
,
n_obs
=
n_obs
,
kind
=
'
RADIOSONDE_SPECIFIC_HUMIDITY
'
,
n_obs
=
n_obs
,
error_generate
=
0.
,
error_assimilate
=
0.001
,
error_generate
=
0.
,
error_assimilate
=
5
*
1e-5
,
heights
=
[
1000
],
#np.arange(1000, 17001, 2000),
heights
=
[
1000
],
#np.arange(1000, 17001, 2000),
cov_loc_radius_km
=
0.1
)
cov_loc_radius_km
=
0.1
)
...
@@ -78,13 +89,13 @@ t2m = dict(plotname='SYNOP Temperature', plotunits='[K]',
...
@@ -78,13 +89,13 @@ t2m = dict(plotname='SYNOP Temperature', plotunits='[K]',
error_generate
=
0.1
,
error_assimilate
=
1.
,
error_generate
=
0.1
,
error_assimilate
=
1.
,
cov_loc_radius_km
=
20
)
cov_loc_radius_km
=
20
)
psfc
=
dict
(
plotname
=
'
SYNOP Pressure
'
,
plotunits
=
'
[
dBz
]
'
,
psfc
=
dict
(
plotname
=
'
SYNOP Pressure
'
,
plotunits
=
'
[
Pa
]
'
,
kind
=
'
SYNOP_SURFACE_PRESSURE
'
,
n_obs
=
n_obs
,
kind
=
'
SYNOP_SURFACE_PRESSURE
'
,
n_obs
=
n_obs
,
error_generate
=
50.
,
error_assimilate
=
100.
,
error_generate
=
50.
,
error_assimilate
=
100.
,
cov_loc_radius_km
=
32
)
cov_loc_radius_km
=
32
)
exp
.
observations
=
[
vis
]
exp
.
observations
=
[
wv73
]
exp
.
update_vars
=
[
'
U
'
,
'
V
'
,
'
W
'
,
'
THM
'
,
'
PH
'
,
'
MU
'
,
'
QVAPOR
'
,
'
QCLOUD
'
,
'
QICE
'
,
'
PSFC
'
]
exp
.
update_vars
=
[
'
U
'
,
'
V
'
,
'
W
'
,
'
THM
'
,
'
PH
'
,
'
MU
'
,
'
QVAPOR
'
,
'
QCLOUD
'
,
'
QICE
'
,
'
PSFC
'
]
#exp.update_vars = ['U', 'V', 'W', 'T', 'PH', 'MU', 'QVAPOR', 'PSFC']
#exp.update_vars = ['U', 'V', 'W', 'T', 'PH', 'MU', 'QVAPOR', 'PSFC']
...
...
This diff is collapsed.
Click to expand it.
config/clusters.py
+
4
−
3
View file @
4af099b3
...
@@ -67,8 +67,9 @@ vsc.name = 'vsc'
...
@@ -67,8 +67,9 @@ vsc.name = 'vsc'
vsc
.
python
=
'
/home/fs71386/lkugler/miniconda3/envs/DART/bin/python
'
vsc
.
python
=
'
/home/fs71386/lkugler/miniconda3/envs/DART/bin/python
'
vsc
.
python_enstools
=
'
/home/fs71386/lkugler/miniconda3/envs/enstools/bin/python
'
vsc
.
python_enstools
=
'
/home/fs71386/lkugler/miniconda3/envs/enstools/bin/python
'
vsc
.
ncks
=
'
/home/fs71386/lkugler/miniconda3/envs/DART/bin/ncks
'
vsc
.
ncks
=
'
/home/fs71386/lkugler/miniconda3/envs/DART/bin/ncks
'
vsc
.
ideal
=
'
/home/fs71386/lkugler/compile/bin/ideal-v4.2.2_v1.16.exe
'
vsc
.
ideal
=
'
/home/fs71386/lkugler/compile/bin/ideal-v4.2.2_v1.22.exe
'
vsc
.
wrfexe
=
'
/home/fs71386/lkugler/compile/bin/wrf-v4.3_v1.19.exe
'
vsc
.
wrfexe
=
'
/home/fs71386/lkugler/compile/bin/wrf-v4.3_v1.22.exe
'
vsc
.
container
=
'
/home/fs71386/lkugler/run_container.sh python.gcc9.5.0.vsc4.sif
'
# paths for data output
# paths for data output
vsc
.
wrf_rundir_base
=
'
/gpfs/data/fs71386/lkugler/run_WRF/
'
# path for temporary files
vsc
.
wrf_rundir_base
=
'
/gpfs/data/fs71386/lkugler/run_WRF/
'
# path for temporary files
...
@@ -85,7 +86,7 @@ vsc.scriptsdir = '/home/fs71386/lkugler/DART-WRF/dartwrf/'
...
@@ -85,7 +86,7 @@ vsc.scriptsdir = '/home/fs71386/lkugler/DART-WRF/dartwrf/'
vsc
.
namelist
=
vsc
.
scriptsdir
+
'
/../templates/namelist.input
'
vsc
.
namelist
=
vsc
.
scriptsdir
+
'
/../templates/namelist.input
'
vsc
.
run_WRF
=
'
/home/fs71386/lkugler/DART-WRF/dartwrf/run_ens.vsc.sh
'
vsc
.
run_WRF
=
'
/home/fs71386/lkugler/DART-WRF/dartwrf/run_ens.vsc.sh
'
vsc
.
slurm_cfg
=
{
"
account
"
:
"
p71386
"
,
"
partition
"
:
"
mem
_0384
"
,
"
qos
"
:
"
p71386_0384
"
,
vsc
.
slurm_cfg
=
{
"
account
"
:
"
p71386
"
,
"
partition
"
:
"
skylake
_0384
"
,
"
qos
"
:
"
p71386_0384
"
,
"
nodes
"
:
"
1
"
,
"
ntasks
"
:
"
1
"
,
"
ntasks-per-node
"
:
"
48
"
,
"
ntasks-per-core
"
:
"
1
"
,
"
nodes
"
:
"
1
"
,
"
ntasks
"
:
"
1
"
,
"
ntasks-per-node
"
:
"
48
"
,
"
ntasks-per-core
"
:
"
1
"
,
"
mail-type
"
:
"
FAIL
"
,
"
mail-user
"
:
"
lukas.kugler@univie.ac.at
"
}
"
mail-type
"
:
"
FAIL
"
,
"
mail-user
"
:
"
lukas.kugler@univie.ac.at
"
}
This diff is collapsed.
Click to expand it.
dartwrf/utils.py
+
10
−
8
View file @
4af099b3
...
@@ -3,14 +3,16 @@ import builtins as __builtin__
...
@@ -3,14 +3,16 @@ import builtins as __builtin__
#copy = shutil.copy
#copy = shutil.copy
import
subprocess
import
subprocess
def
shell
(
cmd
):
def
shell
(
args
):
# subprocess.check_output(cmd.split(' '), shell=True)
print
(
args
)
os
.
system
(
cmd
)
subprocess
.
run
(
args
.
split
(
'
'
))
#, shell=True) #, stderr=subprocess.STDOUT)
#os.system(args)
def
print
(
*
args
):
def
print
(
*
args
):
__builtin__
.
print
(
*
args
,
flush
=
True
)
__builtin__
.
print
(
*
args
,
flush
=
True
)
def
copy
(
src
,
dst
):
def
copy
(
src
,
dst
,
remove_if_exists
=
True
):
if
remove_if_exists
:
try
:
try
:
os
.
remove
(
dst
)
os
.
remove
(
dst
)
except
:
except
:
...
...
This diff is collapsed.
Click to expand it.
scheduler.py
+
9
−
10
View file @
4af099b3
...
@@ -248,7 +248,7 @@ if __name__ == "__main__":
...
@@ -248,7 +248,7 @@ if __name__ == "__main__":
backup_scripts
()
backup_scripts
()
id
=
None
id
=
None
if
Fals
e
:
# warm bubble
if
Tru
e
:
# warm bubble
prior_path_exp
=
'
/gpfs/data/fs71386/lkugler/sim_archive/exp_v1.19_P3_wbub7_noDA
'
prior_path_exp
=
'
/gpfs/data/fs71386/lkugler/sim_archive/exp_v1.19_P3_wbub7_noDA
'
init_time
=
dt
.
datetime
(
2008
,
7
,
30
,
12
)
init_time
=
dt
.
datetime
(
2008
,
7
,
30
,
12
)
...
@@ -257,10 +257,10 @@ if __name__ == "__main__":
...
@@ -257,10 +257,10 @@ if __name__ == "__main__":
forecast_until
=
dt
.
datetime
(
2008
,
7
,
30
,
18
)
forecast_until
=
dt
.
datetime
(
2008
,
7
,
30
,
18
)
prepare_WRFrundir
(
init_time
)
prepare_WRFrundir
(
init_time
)
id
=
run_ideal
(
depends_on
=
id
)
#
id = run_ideal(depends_on=id)
id
=
wrfinput_insert_wbubble
(
depends_on
=
id
)
#
id = wrfinput_insert_wbubble(depends_on=id)
if
Tru
e
:
# random
if
Fals
e
:
# random
prior_path_exp
=
'
/gpfs/data/fs71386/lkugler/sim_archive/exp_v1.19_P2_noDA
'
prior_path_exp
=
'
/gpfs/data/fs71386/lkugler/sim_archive/exp_v1.19_P2_noDA
'
init_time
=
dt
.
datetime
(
2008
,
7
,
30
,
12
)
init_time
=
dt
.
datetime
(
2008
,
7
,
30
,
12
)
...
@@ -269,10 +269,9 @@ if __name__ == "__main__":
...
@@ -269,10 +269,9 @@ if __name__ == "__main__":
forecast_until
=
dt
.
datetime
(
2008
,
7
,
30
,
18
)
forecast_until
=
dt
.
datetime
(
2008
,
7
,
30
,
18
)
prepare_WRFrundir
(
init_time
)
prepare_WRFrundir
(
init_time
)
id
=
run_ideal
(
depends_on
=
id
)
#
id = run_ideal(depends_on=id)
# prior_path_exp = cluster.archivedir
#prior_path_exp = cluster.archivedir #
# prior_path_exp = '/gpfs/data/fs71386/lkugler/sim_archive/exp_v1.19_P5+su_noDA'
# prior_path_exp = '/gpfs/data/fs71386/lkugler/sim_archive/exp_v1.19_P5+su_noDA'
prior_init_time
=
init_time
prior_init_time
=
init_time
...
...
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