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
39ee37e5
Commit
39ee37e5
authored
Jun 11, 2013
by
Peters, Wouter
Browse files
other filename to be read
parent
2d5f153c
Changes
1
Hide whitespace changes
Inline
Side-by-side
gridded/da/analysis/expand_mixingratios.py
View file @
39ee37e5
...
...
@@ -29,12 +29,12 @@ def write_mixing_ratios(dacycle):
Write Sample information to NetCDF files. These files are organized by site and
have an unlimited time axis to which data is appended each cycle.
The needed information is obtained from the sample
info
.nc files and the original input data files from ObsPack.
The needed information is obtained from the sample
_auxiliary
.nc files and the original input data files from ObsPack.
The steps are:
(1) Create a directory to hold timeseries output files
(2) Read the sample
info
.nc file for this cycle and get a list of original files they were obtained from
(2) Read the sample
_auxiliary
.nc file for this cycle and get a list of original files they were obtained from
(3) For each file, copy the original data file from ObsPack (if not yet present)
(4) Open the copied file, find the index of each observation, fill in the simulated data
...
...
@@ -56,7 +56,7 @@ def write_mixing_ratios(dacycle):
# Step (1): Get the posterior sample output data file for this cycle
infile
=
os
.
path
.
join
(
dacycle
[
'dir.output'
],
'sample
info
_%s.nc'
%
dacycle
[
'time.sample.stamp'
])
infile
=
os
.
path
.
join
(
dacycle
[
'dir.output'
],
'sample
_auxiliary
_%s.nc'
%
dacycle
[
'time.sample.stamp'
])
ncf_in
=
io
.
ct_read
(
infile
,
'read'
)
...
...
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