Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DART-WRF-delete_byApril
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
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
DataAssimilation
DART-WRF-delete_byApril
Commits
db30223c
There was an error fetching the commit references. Please try again later.
Commit
db30223c
authored
2 years ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
inf_initial + preassim archive
parent
452be5d0
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/cfg.py
+7
-7
7 additions, 7 deletions
config/cfg.py
dartwrf/assim_synth_obs.py
+6
-5
6 additions, 5 deletions
dartwrf/assim_synth_obs.py
templates/input.nml
+1
-1
1 addition, 1 deletion
templates/input.nml
with
14 additions
and
13 deletions
config/cfg.py
+
7
−
7
View file @
db30223c
from
dartwrf
import
utils
exp
=
utils
.
Experiment
()
exp
.
expname
=
"
obs-
cold_localization-narrow
"
exp
.
expname
=
"
obs-
T_inflation-1.1
"
exp
.
model_dx
=
2000
exp
.
n_ens
=
10
exp
.
filter_kind
=
1
exp
.
prior_inflation
=
0
exp
.
inf_initial
=
1.1
exp
.
post_inflation
=
4
exp
.
sec
=
True
exp
.
cov_loc_vert_km_horiz_km
=
(
4
,
40
)
...
...
@@ -14,7 +15,7 @@ exp.superob_km = False # False or int (spatial averaging of observations)
exp
.
adjust_obs_impact
=
False
exp
.
use_existing_obsseq
=
False
# False or pathname (use precomputed obs_seq.out files)
exp
.
use_existing_obsseq
=
'
/users/students/lehre/advDA_s2023/dartwrf_tutorial/very_cold_observation.out
'
#
exp.use_existing_obsseq = '/users/students/lehre/advDA_s2023/dartwrf_tutorial/very_cold_observation.out'
# path to the nature run, where we take observations from
exp
.
nature
=
'
/users/students/lehre/advDA_s2023/data/sample_nature/
'
...
...
@@ -58,11 +59,11 @@ radar = dict(plotname='Radar reflectivity', plotunits='[dBz]',
t
=
dict
(
plotname
=
'
Temperature
'
,
plotunits
=
'
[K]
'
,
kind
=
'
RADIOSONDE_TEMPERATURE
'
,
#
n_obs=
22500
, obs_locations='square_array_evenly_on_grid',
n_obs
=
1
,
obs_locations
=
[(
45.
,
0.
)],
n_obs
=
961
,
obs_locations
=
'
square_array_evenly_on_grid
'
,
#
n_obs=1, obs_locations=[(45., 0.)],
error_generate
=
0.2
,
error_assimilate
=
0.2
,
heights
=
[
1000
,],
#range(1000, 17001, 2000),
cov_loc_radius_km
=
5
0
)
cov_loc_radius_km
=
3
0
)
q
=
dict
(
plotname
=
'
Specific humidity
'
,
plotunits
=
'
[kg/kg]
'
,
kind
=
'
RADIOSONDE_SPECIFIC_HUMIDITY
'
,
n_obs
=
1
,
...
...
@@ -80,7 +81,6 @@ psfc = dict(plotname='SYNOP Pressure', plotunits='[Pa]',
error_generate
=
50.
,
error_assimilate
=
100.
,
cov_loc_radius_km
=
32
)
exp
.
observations
=
[
t
2m
]
exp
.
observations
=
[
t
]
exp
.
update_vars
=
[
'
U
'
,
'
V
'
,
'
W
'
,
'
THM
'
,
'
PH
'
,
'
MU
'
,
'
QVAPOR
'
,
'
QCLOUD
'
,
'
QICE
'
,
'
PSFC
'
]
#exp.update_vars = ['U', 'V', 'W', 'T', 'PH', 'MU', 'QVAPOR', 'PSFC']
This diff is collapsed.
Click to expand it.
dartwrf/assim_synth_obs.py
+
6
−
5
View file @
db30223c
...
...
@@ -46,6 +46,7 @@ def set_DART_nml(just_prior_values=False):
"
<sampling_error_correction>
"
:
'
.true.
'
if
exp
.
sec
else
'
.false.
'
,
"
<prior_inflation>
"
:
str
(
exp
.
prior_inflation
),
"
<post_inflation>
"
:
str
(
exp
.
post_inflation
),
"
<inf_initial>
"
:
str
(
exp
.
inf_initial
),
"
<n_ens>
"
:
str
(
int
(
exp
.
n_ens
)),
"
<cov_loc_radian>
"
:
"
0.00000001
"
,
# dummy value, used for types not mentioned below
"
<list_obstypes>
"
:
"'"
+
"'
,
'"
.
join
(
list_obstypes
)
+
"'"
,
...
...
@@ -220,11 +221,11 @@ def archive_filteroutput(time):
)
try
:
# not necessary for next forecast run
ftypes
=
[
'
preassim
'
,
'
postassim
'
]
for
ftype
in
ftypes
:
for
iens
in
range
(
1
,
exp
.
n_ens
+
1
):
copy
(
cluster
.
dartrundir
+
"
/postassim_member_
"
+
str
(
iens
).
zfill
(
4
)
+
"
.nc
"
,
archive_assim
+
"
/postassim_member_
"
+
str
(
iens
).
zfill
(
4
)
+
"
.nc
"
,
)
fname
=
"
/
"
+
ftype
+
"
_member_
"
+
str
(
iens
).
zfill
(
4
)
+
"
.nc
"
copy
(
cluster
.
dartrundir
+
fname
,
archive_assim
+
fname
)
for
f
in
[
"
output_mean.nc
"
,
"
output_sd.nc
"
]:
# copy mean and sd to archive
copy
(
cluster
.
dartrundir
+
"
/
"
+
f
,
archive_assim
+
"
/
"
+
f
)
...
...
This diff is collapsed.
Click to expand it.
templates/input.nml
+
1
−
1
View file @
db30223c
...
...
@@ -60,7 +60,7 @@
inf_flavor = <prior_inflation>, <post_inflation>,
inf_initial_from_restart = .true., .false.,
inf_sd_initial_from_restart = .true., .false.,
inf_initial =
1.00,
0.90,
inf_initial =
<inf_initial>,
0.90,
inf_lower_bound = 1.0, 1.0,
inf_upper_bound = 1000000.0, 1000000.0,
inf_damping = 0.9, 1.0,
...
...
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