Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DART-WRF-delete_byApril
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Monitor
Service Desk
Analyze
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-delete_byApril
Commits
ee5c4a79
Commit
ee5c4a79
authored
1 year ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
docs
parent
b3cf2210
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dartwrf/assim_synth_obs.py
+9
-3
9 additions, 3 deletions
dartwrf/assim_synth_obs.py
with
9 additions
and
3 deletions
dartwrf/assim_synth_obs.py
+
9
−
3
View file @
ee5c4a79
...
...
@@ -159,25 +159,31 @@ def filter(nproc=12):
############### archiving
def
archive_filteroutput
(
time
):
print
(
"
archiving ...
"
)
"""
Archive filter output files (filter_restart, preassim, postassim, output_mean, output_sd
)
"""
archive_dir
=
cluster
.
archivedir
+
"
/obs_seq_final/
"
mkdir
(
archive_dir
)
# copy obs_seq.final to archive
fout
=
archive_dir
+
time
.
strftime
(
pattern_obs_seq_final
)
copy
(
cluster
.
dart_rundir
+
"
/obs_seq.final
"
,
fout
)
print
(
fout
,
"
saved.
"
)
archive_assim
=
cluster
.
archivedir
+
time
.
strftime
(
pattern_init_time
+
"
/assim_stage0/
"
)
mkdir
(
archive_assim
)
# copy input.nml to archive
copy
(
cluster
.
dart_rundir
+
"
/input.nml
"
,
archive_assim
+
"
/input.nml
"
)
# copy filter_restart files to archive (initial condition for next run)
for
iens
in
range
(
1
,
exp
.
n_ens
+
1
):
# single members
copy
(
cluster
.
dart_rundir
+
"
/filter_restart_d01.
"
+
str
(
iens
).
zfill
(
4
),
archive_assim
+
"
/filter_restart_d01.
"
+
str
(
iens
).
zfill
(
4
),
)
try
:
# not necessary for next forecast run
# copy preassim/postassim files to archive (not necessary for next forecast run)
try
:
ftypes
=
[
'
preassim
'
,
'
postassim
'
]
for
ftype
in
ftypes
:
for
iens
in
range
(
1
,
exp
.
n_ens
+
1
):
...
...
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