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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DataAssimilation
DART-WRF
Commits
ec2d7ad3
Commit
ec2d7ad3
authored
4 years ago
by
Lukas Kugler
Browse files
Options
Downloads
Patches
Plain Diff
fix: vertloc, .000
parent
0b899c78
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
config/cfg.py
+3
-3
3 additions, 3 deletions
config/cfg.py
scripts/create_obsseq.py
+1
-1
1 addition, 1 deletion
scripts/create_obsseq.py
scripts/gen_synth_obs.py
+2
-2
2 additions, 2 deletions
scripts/gen_synth_obs.py
scripts/run_obs_diag.py
+1
-1
1 addition, 1 deletion
scripts/run_obs_diag.py
with
7 additions
and
7 deletions
config/cfg.py
+
3
−
3
View file @
ec2d7ad3
...
@@ -9,11 +9,11 @@ class ExperimentConfiguration(object):
...
@@ -9,11 +9,11 @@ class ExperimentConfiguration(object):
exp
=
ExperimentConfiguration
()
exp
=
ExperimentConfiguration
()
exp
.
expname
=
"
exp_v1.12_LMU_radar_vertloc1km
"
exp
.
expname
=
"
exp_v1.12_LMU_
so_
radar_vertloc1km
"
exp
.
model_dx
=
2000
exp
.
model_dx
=
2000
exp
.
timestep
=
10
exp
.
timestep
=
10
exp
.
n_ens
=
4
0
exp
.
n_ens
=
2
0
exp
.
n_nodes
=
10
exp
.
n_nodes
=
5
n_obs
=
64
# radar: n_obs for each observation height level
n_obs
=
64
# radar: n_obs for each observation height level
...
...
This diff is collapsed.
Click to expand it.
scripts/create_obsseq.py
+
1
−
1
View file @
ec2d7ad3
...
@@ -140,7 +140,7 @@ obs_kind_definitions
...
@@ -140,7 +140,7 @@ obs_kind_definitions
lon
=
coords
[
i_obs
-
1
][
1
]
lon
=
coords
[
i_obs
-
1
][
1
]
lat
=
coords
[
i_obs
-
1
][
0
]
lat
=
coords
[
i_obs
-
1
][
0
]
hgt_m
=
str
(
coords
[
i_obs
-
1
][
2
])
+
'
.000
'
hgt_m
=
str
(
coords
[
i_obs
-
1
][
2
])
lon_rad
=
str
(
degr_to_rad
(
lon
))
lon_rad
=
str
(
degr_to_rad
(
lon
))
lat_rad
=
str
(
degr_to_rad
(
lat
))
lat_rad
=
str
(
degr_to_rad
(
lat
))
...
...
This diff is collapsed.
Click to expand it.
scripts/gen_synth_obs.py
+
2
−
2
View file @
ec2d7ad3
...
@@ -88,7 +88,7 @@ def set_input_nml(sat_channel=False, just_prior_values=False,
...
@@ -88,7 +88,7 @@ def set_input_nml(sat_channel=False, just_prior_values=False,
'
<cov_loc_radian>
'
:
str
(
cov_loc_radian
)}
'
<cov_loc_radian>
'
:
str
(
cov_loc_radian
)}
if
cov_loc_vert_km
:
if
cov_loc_vert_km
:
cov_loc_vert_rad
=
cov_loc_vert_km
/
cov_loc_radian
cov_loc_vert_rad
=
cov_loc_vert_km
*
1000
/
cov_loc_radian
options
[
'
<horiz_dist_only>
'
]
=
'
.false.
'
options
[
'
<horiz_dist_only>
'
]
=
'
.false.
'
options
[
'
<vert_norm_hgt>
'
]
=
str
(
cov_loc_vert_rad
)
options
[
'
<vert_norm_hgt>
'
]
=
str
(
cov_loc_vert_rad
)
else
:
else
:
...
@@ -113,7 +113,7 @@ if __name__ == "__main__":
...
@@ -113,7 +113,7 @@ if __name__ == "__main__":
fpath_obs_coords
=
cluster
.
archivedir
()
+
time
.
strftime
(
'
/%Y-%m-%d_%H:%M/obs_coords.pkl
'
)
fpath_obs_coords
=
cluster
.
archivedir
()
+
time
.
strftime
(
'
/%Y-%m-%d_%H:%M/obs_coords.pkl
'
)
# remove any existing observation files
# remove any existing observation files
os
.
system
(
'
rm -f
'
+
cluster
.
dartrundir
+
'
/obs_seq_*.out
'
)
os
.
chdir
(
cluster
.
dartrundir
);
os
.
system
(
'
rm -f obs_seq_*.out obs_seq.in obs_seq.final
'
)
# loop over observation types
# loop over observation types
for
i_obs
,
obscfg
in
enumerate
(
exp
.
observations
):
for
i_obs
,
obscfg
in
enumerate
(
exp
.
observations
):
...
...
This diff is collapsed.
Click to expand it.
scripts/run_obs_diag.py
+
1
−
1
View file @
ec2d7ad3
...
@@ -19,7 +19,7 @@ def run(folder_obs_seq_final):
...
@@ -19,7 +19,7 @@ def run(folder_obs_seq_final):
for
obserr_iszero
in
[
'
.true.
'
,
'
.false.
'
]:
for
obserr_iszero
in
[
'
.true.
'
,
'
.false.
'
]:
print
(
'
ensure correct input.nml
'
)
print
(
'
ensure correct input.nml
'
)
copy
(
cluster
.
scriptsdir
+
'
/../templates/input.nml
'
,
copy
(
cluster
.
scriptsdir
+
'
/../templates/input.
prioronly.
nml
'
,
rundir_program
+
'
/input.nml
'
)
rundir_program
+
'
/input.nml
'
)
sed_inplace
(
rundir_program
+
'
/input.nml
'
,
'
<n_ens>
'
,
str
(
int
(
exp
.
n_ens
)))
sed_inplace
(
rundir_program
+
'
/input.nml
'
,
'
<n_ens>
'
,
str
(
int
(
exp
.
n_ens
)))
sed_inplace
(
rundir_program
+
'
/input.nml
'
,
'
<zero_error_obs>
'
,
obserr_iszero
)
sed_inplace
(
rundir_program
+
'
/input.nml
'
,
'
<zero_error_obs>
'
,
obserr_iszero
)
...
...
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