Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CTDAS
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
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NearRealTimeCTDAS
CTDAS
Commits
39ee37e5
Commit
39ee37e5
authored
12 years ago
by
Peters, Wouter
Browse files
Options
Downloads
Patches
Plain Diff
other filename to be read
parent
2d5f153c
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
gridded/da/analysis/expand_mixingratios.py
+3
-3
3 additions, 3 deletions
gridded/da/analysis/expand_mixingratios.py
with
3 additions
and
3 deletions
gridded/da/analysis/expand_mixingratios.py
+
3
−
3
View file @
39ee37e5
...
@@ -29,12 +29,12 @@ def write_mixing_ratios(dacycle):
...
@@ -29,12 +29,12 @@ def write_mixing_ratios(dacycle):
Write Sample information to NetCDF files. These files are organized by site and
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.
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:
The steps are:
(1) Create a directory to hold timeseries output files
(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)
(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
(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):
...
@@ -56,7 +56,7 @@ def write_mixing_ratios(dacycle):
# Step (1): Get the posterior sample output data file for this cycle
# 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
'
)
ncf_in
=
io
.
ct_read
(
infile
,
'
read
'
)
...
...
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