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
815dc09a
Commit
815dc09a
authored
2 years ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
docs
parent
e0b00951
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/dart_nml.py
+7
-4
7 additions, 4 deletions
dartwrf/dart_nml.py
with
7 additions
and
4 deletions
dartwrf/dart_nml.py
+
7
−
4
View file @
815dc09a
...
...
@@ -258,13 +258,16 @@ def _get_list_of_localizations():
def
write_namelist
(
just_prior_values
=
False
):
"""
Set
DART namelist
variables in
'
input.nml
'
file.
"""
Write a
DART namelist
file (
'
input.nml
'
)
1.
Tak
es the default namelist
is the one already defined in
the DART source code
2. Calculates localization parameters from the
observation
configuration
s
1.
Us
es the default namelist
(from
the DART source code
)
2. Calculates localization parameters from the
experiment
configuration
3. Overwrites other parameters as defined in the experiment configuration
4. Writes the namelist to the DART run directory
Note:
Vertical localization in pressure or levels is not implemented.
Args:
just_prior_values (bool, optional): If True, only compute prior values, not posterior. Defaults to False.
...
...
@@ -302,7 +305,7 @@ def write_namelist(just_prior_values=False):
nml
[
'
&location_nml
'
][
'
special_vert_normalization_levels
'
]
=
[[
-
1
,]]
nml
[
'
&location_nml
'
][
'
special_vert_normalization_pressures
'
]
=
[[
-
1
,]]
# overwrite namelist
wi
th experiment configuration
# overwrite namelist
parameters as defined in
th
e
experiment configuration
for
section
,
sdata
in
exp
.
dart_nml
.
items
():
# if section is not in namelist, add it
...
...
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