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
f4f8e571
Commit
f4f8e571
authored
1 year ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
only copy nature if it exists
parent
c14bd0ad
No related branches found
No related tags found
1 merge request
!5
Forward to most current stage
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dartwrf/assim_synth_obs.py
+8
-12
8 additions, 12 deletions
dartwrf/assim_synth_obs.py
with
8 additions
and
12 deletions
dartwrf/assim_synth_obs.py
+
8
−
12
View file @
f4f8e571
...
...
@@ -92,19 +92,15 @@ def prepare_nature_dart(time):
time (dt.datetime): Time at which observations will be made
"""
try
:
f_wrfout_nature
=
time
.
strftime
(
exp
.
nature
+
'
/
'
+
wrfout_format
)
os
.
path
.
exists
(
f_wrfout_nature
)
except
:
# if nature is not available due to any reason
f_wrfout_nature
=
time
.
strftime
(
exp
.
nature
+
'
/
'
+
wrfout_format
)
if
os
.
path
.
exists
(
f_wrfout_nature
):
print
(
"
linking nature to DART & georeferencing
"
)
shutil
.
copy
(
f_wrfout_nature
,
cluster
.
dartrundir
+
"
/wrfout_d01
"
)
print
(
"
linked
"
,
f_wrfout_nature
,
"
to
"
,
cluster
.
dartrundir
+
"
/wrfout_d01
"
)
wrfout_add_geo
.
run
(
cluster
.
geo_em
,
cluster
.
dartrundir
+
"
/wrfout_d01
"
)
else
:
# if nature is not available due to any reason
print
(
'
-> has no nature, not copying nature
'
)
return
print
(
"
linking nature to DART & georeferencing
"
)
shutil
.
copy
(
f_wrfout_nature
,
cluster
.
dartrundir
+
"
/wrfout_d01
"
)
print
(
"
linked
"
,
f_wrfout_nature
,
"
to
"
,
cluster
.
dartrundir
+
"
/wrfout_d01
"
)
wrfout_add_geo
.
run
(
cluster
.
geo_em
,
cluster
.
dartrundir
+
"
/wrfout_d01
"
)
def
prepare_prior_ensemble
(
assim_time
,
prior_init_time
,
prior_valid_time
,
prior_path_exp
):
"""
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