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
de07587e
Commit
de07587e
authored
1 year ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
prepare nature
parent
bfba6894
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
dartwrf/assim_synth_obs.py
+3
-4
3 additions, 4 deletions
dartwrf/assim_synth_obs.py
with
3 additions
and
4 deletions
dartwrf/assim_synth_obs.py
+
3
−
4
View file @
de07587e
...
@@ -18,15 +18,14 @@ wrfout_format = 'wrfout_d01_%Y-%m-%d_%H:%M:%S'
...
@@ -18,15 +18,14 @@ wrfout_format = 'wrfout_d01_%Y-%m-%d_%H:%M:%S'
def
_prepare_DART_grid_template
():
def
_prepare_DART_grid_template
():
# DART needs a wrfinput file as a template for the grid
# DART needs a wrfinput file as a template for the grid
# No data will be read from this file, but the grid information must match exactly.
# No data will be read from this file, but the grid information must match exactly.
symlink
(
cluster
.
dartrundir
+
"
/prior_ens1/wrfout_d01
"
,
symlink
(
cluster
.
dart
_
rundir
+
"
/prior_ens1/wrfout_d01
"
,
cluster
.
dartrundir
+
"
/wrfinput_d01
"
)
cluster
.
dart
_
rundir
+
"
/wrfinput_d01
"
)
def
_copy_nature_to_dart
(
time
):
def
_copy_nature_to_dart
(
time
):
"""
Copies wrfout_d01 from nature run to DART directory
"""
Copies wrfout_d01 from nature run to DART directory
TODO: This is a bit of a hack, because it is not explicit about where to take the nature from.
"""
"""
glob_pattern
=
time
.
strftime
(
exp
.
nature_wrfout_pattern
)
# replace time in pattern
glob_pattern
=
time
.
strftime
(
exp
.
nature_wrfout_pattern
)
# replace time in pattern
print
(
'
searching for nature in pattern:
'
,
glob_pattern
)
f_nat
=
glob
.
glob
(
glob_pattern
)[
0
]
# find the nature wrfout-file
f_nat
=
glob
.
glob
(
glob_pattern
)[
0
]
# find the nature wrfout-file
# check user input
# check user input
...
...
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