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
71bba10a
Commit
71bba10a
authored
1 year ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
write the link_to_prior right after assimilate
parent
9d729ea6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dartwrf/assimilate.py
+8
-0
8 additions, 0 deletions
dartwrf/assimilate.py
dartwrf/prep_IC_prior.py
+0
-5
0 additions, 5 deletions
dartwrf/prep_IC_prior.py
with
8 additions
and
5 deletions
dartwrf/assimilate.py
+
8
−
0
View file @
71bba10a
...
...
@@ -399,6 +399,13 @@ def archive_filter_diagnostics(time, f_out_pattern):
copy
(
cluster
.
dart_rundir
+
"
/obs_seq.final
"
,
f_archive
)
print
(
f_archive
,
"
saved.
"
)
def
txtlink_to_prior
(
time
,
prior_init_time
,
prior_path_exp
):
"""
For documentation: Which prior was used? -> write into txt file
"""
os
.
makedirs
(
cluster
.
archivedir
+
time
.
strftime
(
'
/%Y-%m-%d_%H:%M/
'
),
exist_ok
=
True
)
os
.
system
(
'
echo
"'
+
prior_path_exp
+
'
\n
'
+
prior_init_time
.
strftime
(
'
/%Y-%m-%d_%H:%M/
'
)
+
'
\n
'
+
time
.
strftime
(
'
/wrfrst_d01_%Y-%m-%d_%H:%M:%S
'
)
+
'"
>
'
+
cluster
.
archivedir
+
time
.
strftime
(
'
/%Y-%m-%d_%H:%M/
'
)
+
'
link_to_prior.txt
'
)
def
get_obsseq_out
(
time
):
"""
Prepares an obs_seq.out file in the run_DART folder
If `exp.use_existing_obsseq` points to an existing file, then this is used.
...
...
@@ -584,6 +591,7 @@ def main(time, prior_init_time, prior_valid_time, prior_path_exp):
filter
()
archive_filteroutput
(
time
)
archive_filter_diagnostics
(
time
,
pattern_obs_seq_final
)
txtlink_to_prior
(
time
,
prior_init_time
,
prior_path_exp
)
if
prior_inflation_type
==
'
2
'
:
archive_inflation_2
(
time
)
...
...
This diff is collapsed.
Click to expand it.
dartwrf/prep_IC_prior.py
+
0
−
5
View file @
71bba10a
...
...
@@ -22,11 +22,6 @@ Ad 2: copies wrfrst to run_WRF directory
def
create_wrfrst_in_WRF_rundir
(
time
,
prior_init_time
,
prior_path_exp
):
"""
copies wrfrst to run_WRF directory (for next WRF run)
"""
# for documentation: Which prior was used? -> write into txt file
os
.
makedirs
(
cluster
.
archivedir
+
time
.
strftime
(
'
/%Y-%m-%d_%H:%M/
'
),
exist_ok
=
True
)
os
.
system
(
'
echo
"'
+
prior_path_exp
+
'
\n
'
+
prior_init_time
.
strftime
(
'
/%Y-%m-%d_%H:%M/
'
)
+
'
\n
'
+
time
.
strftime
(
'
/wrfrst_d01_%Y-%m-%d_%H:%M:%S
'
)
+
'"
>
'
+
cluster
.
archivedir
+
time
.
strftime
(
'
/%Y-%m-%d_%H:%M/
'
)
+
'
link_to_prior.txt
'
)
for
iens
in
range
(
1
,
exp
.
n_ens
+
1
):
clean_wrfdir
(
cluster
.
wrf_rundir
(
iens
))
...
...
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