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
71b2b104
Commit
71b2b104
authored
4 years ago
by
lkugler
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
2a50d01c
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
+2
-7
2 additions, 7 deletions
scripts/assim_synth_obs.py
with
2 additions
and
7 deletions
scripts/assim_synth_obs.py
+
2
−
7
View file @
71b2b104
...
@@ -103,7 +103,7 @@ def replace_errors_obsseqout(f, new_errors):
...
@@ -103,7 +103,7 @@ def replace_errors_obsseqout(f, new_errors):
with
open
(
f
,
'
w
'
)
as
file
:
with
open
(
f
,
'
w
'
)
as
file
:
for
line
in
obsseq
:
for
line
in
obsseq
:
file
.
write
(
line
)
file
.
write
(
line
)
print
(
f
,
'
saved.
'
)
print
(
'
replaced obs errors in
'
,
f
)
def
set_DART_nml
(
sat_channel
=
False
,
cov_loc_radius_km
=
32
,
cov_loc_vert_km
=
False
,
def
set_DART_nml
(
sat_channel
=
False
,
cov_loc_radius_km
=
32
,
cov_loc_vert_km
=
False
,
...
@@ -358,12 +358,7 @@ if __name__ == "__main__":
...
@@ -358,12 +358,7 @@ if __name__ == "__main__":
if
error_assimilate
is
not
False
:
if
error_assimilate
is
not
False
:
# overwrite error values in obs_seq.out
# overwrite error values in obs_seq.out
error_assimilate
=
np
.
zeros
(
n_obs_3d
)
+
error_assimilate
# ensure shape
if
isinstance
(
error_assimilate
,
int
):
error_assimilate
=
np
.
zeros
(
n_obs_3d
)
+
error_assimilate
else
:
assert
len
(
error_assimilate
)
==
n_obs_3d
replace_errors_obsseqout
(
cluster
.
dartrundir
+
'
/obs_seq.out
'
,
error_assimilate
)
replace_errors_obsseqout
(
cluster
.
dartrundir
+
'
/obs_seq.out
'
,
error_assimilate
)
assimilate
()
assimilate
()
...
...
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