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
96b104c9
Commit
96b104c9
authored
2 years ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
rename
parent
f02e9ac6
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
free_forecast.py
+31
-28
31 additions, 28 deletions
free_forecast.py
with
31 additions
and
28 deletions
generat
e_fre
e
.py
→
fre
e_f
o
re
cast
.py
+
31
−
28
View file @
96b104c9
...
@@ -14,7 +14,7 @@ from cycled_exp import *
...
@@ -14,7 +14,7 @@ from cycled_exp import *
################################
################################
print
(
'
starting
osse
'
)
print
(
'
starting
'
)
cluster
.
setup
()
cluster
.
setup
()
id
=
None
id
=
None
...
@@ -102,45 +102,48 @@ if False: # continuation of free run
...
@@ -102,45 +102,48 @@ if False: # continuation of free run
verify
(
depends_on
=
id
)
verify
(
depends_on
=
id
)
if
True
:
# continuation of free run after spinup
if
True
:
# continuation of free run after spinup
start
=
dt
.
datetime
(
2008
,
7
,
30
,
7
)
start
=
dt
.
datetime
(
2008
,
7
,
30
,
13
,
30
)
end
=
dt
.
datetime
(
2008
,
7
,
30
,
1
0
)
end
=
dt
.
datetime
(
2008
,
7
,
30
,
1
4
)
id
=
prepare_WRFrundir
(
start
)
# create initial conditions
id
=
prepare_WRFrundir
(
start
)
# create initial conditions
id
=
run_ideal
(
depends_on
=
id
)
#
id = run_ideal(depends_on=id)
prior_path_exp
=
'
/
gpfs/data/fs71386
/lkugler/sim_archive/exp_v1.19_P
5
_noDA
'
# cluster.archivedir
prior_path_exp
=
'
/
jetfs/home
/lkugler/
data/
sim_archive/exp_v1.19_P
2
_noDA
'
# cluster.archivedir
prior_init_time
=
dt
.
datetime
(
2008
,
7
,
30
,
1
1
)
prior_init_time
=
dt
.
datetime
(
2008
,
7
,
30
,
1
3
)
prior_valid_time
=
dt
.
datetime
(
2008
,
7
,
30
,
1
2
)
prior_valid_time
=
dt
.
datetime
(
2008
,
7
,
30
,
1
3
,
30
)
id
=
prepare_IC_from_prior
(
prior_path_exp
,
prior_init_time
,
prior_valid_time
,
id
=
prepare_IC_from_prior
(
prior_path_exp
,
prior_init_time
,
prior_valid_time
,
new_start_time
=
start
,
# <---------- to
start again after spinup
#
new_start_time=start, # <---------- to
overwrite start time
depends_on
=
id
)
depends_on
=
id
)
#frequency_restart = (end-start).total_seconds()/60
frequency_restart
=
dt
.
timedelta
(
minutes
=
30
).
total_seconds
()
/
60
id
=
run_ENS
(
begin
=
start
,
end
=
end
,
id
=
run_ENS
(
begin
=
start
,
end
=
end
,
input_is_restart
=
Fals
e
,
input_is_restart
=
Tru
e
,
output_restart_interval
=
(
end
-
start
).
total_seconds
()
/
60
,
output_restart_interval
=
frequency_restart
,
#output_restart_interval=9999,
#output_restart_interval=9999,
depends_on
=
id
)
depends_on
=
id
)
id
=
create_satimages
(
start
,
depends_on
=
id
)
#
id = create_satimages(start, depends_on=id)
# continue now with free run
#
#
continue now with free run
# no restart files anymore
#
#
no restart files anymore
prior_path_exp
=
cluster
.
archivedir
#
prior_path_exp = cluster.archivedir
prior_init_time
=
start
#
prior_init_time = start
prior_valid_time
=
end
#
prior_valid_time = end
id
=
prepare_IC_from_prior
(
prior_path_exp
,
prior_init_time
,
prior_valid_time
,
depends_on
=
id
)
#
id = prepare_IC_from_prior(prior_path_exp, prior_init_time, prior_valid_time, depends_on=id)
start
=
end
#
start = end
end
=
dt
.
datetime
(
2008
,
7
,
30
,
18
)
#
end = dt.datetime(2008, 7, 30, 18)
print
(
'
run WRF from
'
,
start
,
'
until
'
,
end
)
#
print('run WRF from', start, 'until', end)
id
=
run_ENS
(
begin
=
start
,
end
=
end
,
#
id = run_ENS(begin=start, end=end,
input_is_restart
=
True
,
#
input_is_restart=True,
#output_restart_interval=(next_restart-time).total_seconds()/60,
#
#output_restart_interval=(next_restart-time).total_seconds()/60,
output_restart_interval
=
9999
,
#
output_restart_interval=9999,
depends_on
=
id
)
#
depends_on=id)
id
=
create_satimages
(
start
,
depends_on
=
id
)
#
id = create_satimages(start, depends_on=id)
verify
(
depends_on
=
id
)
#
verify(depends_on=id)
if
False
:
# continuation of nature after spinup
if
False
:
# continuation of nature after spinup
...
...
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