Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DART-WRF-delete_byApril
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Monitor
Service Desk
Analyze
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-delete_byApril
Commits
1855de56
Commit
1855de56
authored
3 years ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
.
parent
e3ed6393
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
scripts/assim_synth_obs.py
+4
-5
4 additions, 5 deletions
scripts/assim_synth_obs.py
with
4 additions
and
5 deletions
scripts/assim_synth_obs.py
+
4
−
5
View file @
1855de56
...
...
@@ -381,7 +381,7 @@ if __name__ == "__main__":
parametrized
=
obscfg
.
get
(
'
sat_channel
'
)
==
6
if
not
parametrized
:
err_
this_type
=
np
.
zeros
(
n_obs_3d
)
+
obscfg
[
'
error_assimilate
'
]
err_
assim
=
np
.
zeros
(
n_obs_3d
)
+
obscfg
[
'
error_assimilate
'
]
else
:
# error parametrization for WV73
# get observations for sat 6
...
...
@@ -392,9 +392,9 @@ if __name__ == "__main__":
Hx_nat
,
_
=
read_truth_obs_obsseq
(
cluster
.
dartrundir
+
'
/obs_seq.out
'
)
Hx_prior
=
obs_operator_ensemble
(
istage
)
# files are already linked to DART directory
err_
this_type
=
calc_obserr_WV73
(
Hx_nat
,
Hx_prior
)
err_
assim
=
calc_obserr_WV73
(
Hx_nat
,
Hx_prior
)
error_assimilate
.
extend
(
err_
this_type
)
# the obs-error we assume for assimilating observations
error_assimilate
.
extend
(
err_
assim
)
# the obs-error we assume for assimilating observations
################################################
print
(
'
2) generate observations
'
)
...
...
@@ -402,8 +402,7 @@ if __name__ == "__main__":
# the obs-error we use for generating obs is user-defined
error_generate
=
[]
for
i
,
obscfg
in
enumerate
(
exp
.
observations
):
err_this_type
=
np
.
zeros
(
n_obs_3d
)
+
obscfg
[
'
error_generate
'
]
error_generate
.
extend
(
err_this_type
)
error_generate
.
extend
(
np
.
zeros
(
n_obs_3d
)
+
obscfg
[
'
error_generate
'
])
osq
.
create_obsseqin_alltypes
(
time
,
exp
.
observations
,
obs_errors
=
error_generate
,
archive_obs_coords
=
archive_stage
+
'
/obs_coords.pkl
'
)
...
...
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