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
80c33d59
Commit
80c33d59
authored
4 years ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
.
parent
1ce11e11
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
generate_nature.py
+1
-1
1 addition, 1 deletion
generate_nature.py
scripts/prepare_wrfinput.py
+2
-1
2 additions, 1 deletion
scripts/prepare_wrfinput.py
scripts/utils.py
+7
-2
7 additions, 2 deletions
scripts/utils.py
with
10 additions
and
4 deletions
generate_nature.py
+
1
−
1
View file @
80c33d59
...
@@ -206,7 +206,7 @@ id = None
...
@@ -206,7 +206,7 @@ id = None
id
=
prepare_wrfinput
()
# create initial conditions
id
=
prepare_wrfinput
()
# create initial conditions
begin
=
dt
.
datetime
(
2008
,
7
,
30
,
6
,
0
)
begin
=
dt
.
datetime
(
2008
,
7
,
30
,
6
,
0
)
end
=
dt
.
datetime
(
2008
,
7
,
30
,
2
0
,
0
)
end
=
dt
.
datetime
(
2008
,
7
,
30
,
2
1
,
0
)
# whole forecast timespan
# whole forecast timespan
hist_interval
=
5
hist_interval
=
5
...
...
This diff is collapsed.
Click to expand it.
scripts/prepare_wrfinput.py
+
2
−
1
View file @
80c33d59
...
@@ -18,7 +18,8 @@ for iens in range(1, exp.n_ens+1):
...
@@ -18,7 +18,8 @@ for iens in range(1, exp.n_ens+1):
# time not important, but general settings
# time not important, but general settings
prepare_namelist
.
run
(
iens
,
begin
=
dt
.
datetime
(
2008
,
7
,
30
,
6
,
0
),
prepare_namelist
.
run
(
iens
,
begin
=
dt
.
datetime
(
2008
,
7
,
30
,
6
,
0
),
end
=
dt
.
datetime
(
2008
,
7
,
30
,
6
,
30
))
end
=
dt
.
datetime
(
2008
,
7
,
30
,
6
,
30
),
archive
=
False
)
symlink
(
input_prof
,
rundir
+
'
/input_sounding
'
)
symlink
(
input_prof
,
rundir
+
'
/input_sounding
'
)
print
(
'
finished.
'
)
print
(
'
finished.
'
)
This diff is collapsed.
Click to expand it.
scripts/utils.py
+
7
−
2
View file @
80c33d59
...
@@ -36,11 +36,16 @@ def clean_wrfdir(dir):
...
@@ -36,11 +36,16 @@ def clean_wrfdir(dir):
os
.
remove
(
f
)
os
.
remove
(
f
)
def
symlink
(
src
,
dst
):
def
symlink
(
src
,
dst
):
# Create a symbolic link pointing to src named dst.
try
:
try
:
os
.
symlink
(
src
,
dst
)
os
.
symlink
(
src
,
dst
)
except
FileExistsError
:
except
FileExistsError
:
os
.
remove
(
dst
)
# print('file exists')
os
.
symlink
(
src
,
dst
)
if
os
.
path
.
realpath
(
dst
)
==
src
:
pass
# print('link is correct')
else
:
os
.
remove
(
dst
)
os
.
symlink
(
src
,
dst
)
except
Exception
as
e
:
except
Exception
as
e
:
raise
e
raise
e
...
...
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