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
a12b1e48
Commit
a12b1e48
authored
3 years ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
obs flagging
parent
5ead0dfb
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
+5
-2
5 additions, 2 deletions
dartwrf/assim_synth_obs.py
with
5 additions
and
2 deletions
dartwrf/assim_synth_obs.py
+
5
−
2
View file @
a12b1e48
...
@@ -305,14 +305,14 @@ def calc_obserr_WV73(Hx_nature, Hx_prior):
...
@@ -305,14 +305,14 @@ def calc_obserr_WV73(Hx_nature, Hx_prior):
return
OEs
return
OEs
def
run_perfect_model_obs
():
def
run_perfect_model_obs
(
nproc
=
12
):
print
(
"
generating observations - running ./perfect_model_obs
"
)
print
(
"
generating observations - running ./perfect_model_obs
"
)
os
.
chdir
(
cluster
.
dartrundir
)
os
.
chdir
(
cluster
.
dartrundir
)
try_remove
(
cluster
.
dartrundir
+
"
/obs_seq.out
"
)
try_remove
(
cluster
.
dartrundir
+
"
/obs_seq.out
"
)
if
not
os
.
path
.
exists
(
cluster
.
dartrundir
+
"
/obs_seq.in
"
):
if
not
os
.
path
.
exists
(
cluster
.
dartrundir
+
"
/obs_seq.in
"
):
raise
RuntimeError
(
"
obs_seq.in does not exist in
"
+
cluster
.
dartrundir
)
raise
RuntimeError
(
"
obs_seq.in does not exist in
"
+
cluster
.
dartrundir
)
os
.
system
(
"
mpirun -np
12
./perfect_model_obs > log.perfect_model_obs
"
)
os
.
system
(
"
mpirun -np
"
+
str
(
nproc
)
+
"
./perfect_model_obs > log.perfect_model_obs
"
)
if
not
os
.
path
.
exists
(
cluster
.
dartrundir
+
"
/obs_seq.out
"
):
if
not
os
.
path
.
exists
(
cluster
.
dartrundir
+
"
/obs_seq.out
"
):
raise
RuntimeError
(
raise
RuntimeError
(
"
obs_seq.out does not exist in
"
+
cluster
.
dartrundir
,
"
obs_seq.out does not exist in
"
+
cluster
.
dartrundir
,
...
@@ -555,6 +555,9 @@ if __name__ == "__main__":
...
@@ -555,6 +555,9 @@ if __name__ == "__main__":
# oso = obsseq.ObsSeq(cluster.dartrundir + "/obs_seq.out")
# oso = obsseq.ObsSeq(cluster.dartrundir + "/obs_seq.out")
oso
.
df
=
oso
.
df
[
oso
.
df
[
'
truth
'
].
values
<
6
]
oso
.
df
=
oso
.
df
[
oso
.
df
[
'
truth
'
].
values
<
6
]
oso
.
to_dart
(
f
=
cluster
.
dartrundir
+
"
/obs_seq.out
"
)
oso
.
to_dart
(
f
=
cluster
.
dartrundir
+
"
/obs_seq.out
"
)
if
True
:
oso
.
df
.
loc
[
oso
.
df
[
'
observations
'
].
values
<
0.293
,
(
'
observations
'
)]
=
0.293
# set reflectance to sky clear
oso
.
to_dart
(
f
=
cluster
.
dartrundir
+
"
/obs_seq.out
"
)
if
hasattr
(
exp
,
"
superob_km
"
):
if
hasattr
(
exp
,
"
superob_km
"
):
print
(
"
superobbing to
"
,
exp
.
superob_km
,
"
km
"
)
print
(
"
superobbing to
"
,
exp
.
superob_km
,
"
km
"
)
...
...
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