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
5584cfaf
Commit
5584cfaf
authored
3 years ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
remove rst_inname option
parent
c18e9e2f
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
scripts/prepare_namelist.py
+3
-10
3 additions, 10 deletions
scripts/prepare_namelist.py
with
3 additions
and
10 deletions
scripts/prepare_namelist.py
+
3
−
10
View file @
5584cfaf
"""
Create namelist.input files
"""
Create namelist.input files
Usage:
Usage:
prepare_namelist.py <begin> <end> <intv> [--radt=<minutes>] [--restart=<flag>] [--restart_interval=<minutes>]
[--rst_inname=<path>]
prepare_namelist.py <begin> <end> <intv> [--radt=<minutes>] [--restart=<flag>] [--restart_interval=<minutes>]
Options:
Options:
--radt=<minutes> Radiation interval [default: 5]
--radt=<minutes> Radiation interval [default: 5]
--restart=<flag> Restart flag (.true., .false.) [default: .false.]
--restart=<flag> Restart flag (.true., .false.) [default: .false.]
--restart_interval=<minutes> Restart frequency [default: 720]
--restart_interval=<minutes> Restart frequency [default: 720]
--rst_inname=<path> Path to directory of input wrfrst file
"""
"""
import
os
,
sys
,
shutil
,
warnings
import
os
,
sys
,
shutil
,
warnings
import
datetime
as
dt
import
datetime
as
dt
...
@@ -16,7 +15,7 @@ from config.cfg import exp, cluster
...
@@ -16,7 +15,7 @@ from config.cfg import exp, cluster
from
utils
import
sed_inplace
,
copy
,
symlink
,
mkdir
from
utils
import
sed_inplace
,
copy
,
symlink
,
mkdir
def
run
(
iens
,
begin
,
end
,
hist_interval
=
5
,
radt
=
5
,
archive
=
True
,
def
run
(
iens
,
begin
,
end
,
hist_interval
=
5
,
radt
=
5
,
archive
=
True
,
restart
=
False
,
restart_interval
=
720
,
rst_inname
=
False
):
restart
=
False
,
restart_interval
=
720
):
"""
Create namelist.input files
"""
Create namelist.input files
Args:
Args:
...
@@ -92,11 +91,5 @@ if __name__ == '__main__':
...
@@ -92,11 +91,5 @@ if __name__ == '__main__':
print
(
'
prepare namelists for all ens members
'
,
intv
,
radt
,
restart
,
restart_interval
)
print
(
'
prepare namelists for all ens members
'
,
intv
,
radt
,
restart
,
restart_interval
)
for
iens
in
range
(
1
,
exp
.
n_ens
+
1
):
for
iens
in
range
(
1
,
exp
.
n_ens
+
1
):
rst_inname
=
False
if
args
[
'
--rst_inname
'
]:
rst_inname
=
args
[
'
--rst_inname
'
]
+
'
/
'
+
str
(
iens
)
print
(
'
rst_inname
'
,
rst_inname
)
run
(
iens
,
begin
,
end
,
hist_interval
=
intv
,
radt
=
radt
,
run
(
iens
,
begin
,
end
,
hist_interval
=
intv
,
radt
=
radt
,
restart
=
restart
,
restart_interval
=
restart_interval
,
restart
=
restart
,
restart_interval
=
restart_interval
)
rst_inname
=
rst_inname
)
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