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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DataAssimilation
DART-WRF
Commits
a6ada136
Commit
a6ada136
authored
Jun 7, 2023
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
only copy nature if it exists
parent
d1abf4de
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dartwrf/assim_synth_obs.py
+9
-5
9 additions, 5 deletions
dartwrf/assim_synth_obs.py
with
9 additions
and
5 deletions
dartwrf/assim_synth_obs.py
+
9
−
5
View file @
a6ada136
...
@@ -32,14 +32,18 @@ def link_nature_to_dart_truth(time):
...
@@ -32,14 +32,18 @@ def link_nature_to_dart_truth(time):
cluster
.
dart_rundir
+
"
/wrfinput_d01
"
)
cluster
.
dart_rundir
+
"
/wrfinput_d01
"
)
print
(
"
linked
"
,
f_nat
,
"
to
"
,
cluster
.
dart_rundir
+
"
/wrfout_d01
"
)
print
(
"
linked
"
,
f_nat
,
"
to
"
,
cluster
.
dart_rundir
+
"
/wrfout_d01
"
)
f_wrfout_nature
=
time
.
strftime
(
exp
.
nature
+
'
/
'
+
wrfout_format
)
def
prepare_nature_dart
(
tim
e
):
if
os
.
path
.
exists
(
f_wrfout_natur
e
):
print
(
"
linking nature to DART & georeferencing
"
)
print
(
"
linking nature to DART & georeferencing
"
)
link_nature_to_dart_truth
(
time
)
shutil
.
copy
(
f_wrfout_nature
,
cluster
.
dartrundir
+
"
/wrfout_d01
"
)
print
(
"
linked
"
,
f_wrfout_nature
,
"
to
"
,
cluster
.
dartrundir
+
"
/wrfout_d01
"
)
if
cluster
.
geo_em_for_WRF_ideal
:
if
cluster
.
geo_em_for_WRF_ideal
:
wrfout_add_geo
.
run
(
cluster
.
geo_em_for_WRF_ideal
,
cluster
.
dart_rundir
+
"
/wrfout_d01
"
)
wrfout_add_geo
.
run
(
cluster
.
geo_em_for_WRF_ideal
,
cluster
.
dart_rundir
+
"
/wrfout_d01
"
)
else
:
# if nature is not available due to any reason
print
(
'
-> has no nature, not copying nature
'
)
def
prepare_prior_ensemble
(
assim_time
,
prior_init_time
,
prior_valid_time
,
prior_path_exp
):
def
prepare_prior_ensemble
(
assim_time
,
prior_init_time
,
prior_valid_time
,
prior_path_exp
):
"""
Prepares DART files for running filter
"""
Prepares DART files for running filter
...
...
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