Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
NearRealTimeCTDAS
CTDAS
Commits
dcfc3ff7
Commit
dcfc3ff7
authored
Jun 11, 2013
by
Peters, Wouter
Browse files
changed names of output routines for sample info
parent
a47829ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
gridded/da/tools/pipeline.py
View file @
dcfc3ff7
...
...
@@ -221,8 +221,8 @@ def sample_step(dacycle, samples, statevector, obsoperator, lag, advance=False):
samples
.
add_model_data_mismatch
(
dacycle
.
dasystem
[
'obs.sites.rc'
])
sampling_coords_file
=
os
.
path
.
join
(
dacycle
[
'dir.input'
],
'
observation
s_%s.nc'
%
dacycle
[
'time.sample.stamp'
])
samples
.
write_sample_
info
(
sampling_coords_file
)
sampling_coords_file
=
os
.
path
.
join
(
dacycle
[
'dir.input'
],
'
sample_coordinate
s_%s.nc'
%
dacycle
[
'time.sample.stamp'
])
samples
.
write_sample_
coords
(
sampling_coords_file
)
# Write filename to dacycle, and to output collection list
dacycle
[
'ObsOperator.inputfile'
]
=
sampling_coords_file
...
...
@@ -242,7 +242,7 @@ def sample_step(dacycle, samples, statevector, obsoperator, lag, advance=False):
# Now write a small file that holds for each observation a number of values that we need in postprocessing
#filename = samples.write_sample_
info
()
#filename = samples.write_sample_
coords
()
# Now add the observations that need to be assimilated to the statevector.
# Note that obs will only be added to the statevector if either this is the first step (restart=False), or lag==nlag
...
...
@@ -318,8 +318,8 @@ def advance(dacycle, samples, statevector, obsoperator):
dacycle
.
output_filelist
.
append
(
dacycle
[
'ObsOperator.inputfile'
])
logging
.
debug
(
"Appended Observation filename to dacycle for collection "
)
outfile
=
os
.
path
.
join
(
dacycle
[
'dir.output'
],
'sample
info
_%s.nc'
%
dacycle
[
'time.sample.stamp'
])
samples
.
write_
obs_to_file
(
outfile
)
outfile
=
os
.
path
.
join
(
dacycle
[
'dir.output'
],
'sample
_auxiliary
_%s.nc'
%
dacycle
[
'time.sample.stamp'
])
samples
.
write_
sample_auxiliary
(
outfile
)
def
save_and_submit
(
dacycle
,
statevector
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment