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
45320342
Commit
45320342
authored
1 year ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
wrfinput before pmo
parent
de07587e
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/obs/create_obsseq_out.py
+11
-1
11 additions, 1 deletion
dartwrf/obs/create_obsseq_out.py
with
11 additions
and
1 deletion
dartwrf/obs/create_obsseq_out.py
+
11
−
1
View file @
45320342
import
os
,
shutil
,
warnings
from
dartwrf.utils
import
try_remove
,
print
,
shell
from
dartwrf.utils
import
try_remove
,
print
,
shell
,
symlink
import
dartwrf.obs.create_obsseq_in
as
osi
from
dartwrf.obs
import
obsseq
from
dartwrf.exp_config
import
exp
from
dartwrf.server_config
import
cluster
def
_prepare_DART_grid_template
():
# 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.
symlink
(
cluster
.
dart_rundir
+
"
/wrfout_d01
"
,
cluster
.
dart_rundir
+
"
/wrfinput_d01
"
)
def
generate_obsseq_out
(
time
):
"""
Generate an obs_seq.out file from the current experiment
Expects an existing nature file in the cluster.dart_rundir
Args:
time (datetime): time of the observations
...
...
@@ -47,6 +55,8 @@ def generate_obsseq_out(time):
os
.
makedirs
(
dir_obsseq
,
exist_ok
=
True
)
osi
.
create_obs_seq_in
(
time
,
exp
.
observations
)
_prepare_DART_grid_template
()
run_perfect_model_obs
()
# generate observation, draws from gaussian
print
(
"
2.1) obs preprocessing
"
)
...
...
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