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
Container Registry
Model registry
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
CTDAS
CTDAS
Commits
e8bec1d8
Commit
e8bec1d8
authored
11 years ago
by
Ingrid Luijkx
Browse files
Options
Downloads
Patches
Plain Diff
Small changes to make the forward pipeline work again
parent
7713984c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
da/tools/pipeline.py
+3
-3
3 additions, 3 deletions
da/tools/pipeline.py
with
3 additions
and
3 deletions
da/tools/pipeline.py
+
3
−
3
View file @
e8bec1d8
...
...
@@ -80,7 +80,7 @@ def forward_pipeline(dacycle, platform, dasystem, samples, statevector, obsopera
# This could cause problems. Moreover, this method allows us to read older formatted savestate.nc files (legacy) and write them into
# the current format through the "write_to_file" method.
savefilename
=
os
.
path
.
join
(
dacycle
[
'
dir.restart
.current
'
],
'
savestate_%s.nc
'
%
dacycle
[
'
time.start
'
].
strftime
(
'
%Y%m%d
'
))
savefilename
=
os
.
path
.
join
(
dacycle
[
'
dir.restart
'
],
'
savestate_%s.nc
'
%
dacycle
[
'
time.start
'
].
strftime
(
'
%Y%m%d
'
))
statevector
.
write_to_file
(
savefilename
,
'
prior
'
)
# Now read optimized fluxes which we will actually use to propagate through the system
...
...
@@ -88,7 +88,7 @@ def forward_pipeline(dacycle, platform, dasystem, samples, statevector, obsopera
if
not
fwddir
:
# if there is no forward dir specified, we simply run forward with unoptimized prior fluxes in the statevector
logging
.
info
(
"
Running forward with prior savestate from: %s
"
%
filename
)
logging
.
info
(
"
Running forward with prior savestate from: %s
"
%
save
filename
)
else
:
...
...
@@ -206,7 +206,7 @@ def prepare_state(dacycle, statevector):
"""
Set up the input data for the forward model: obs and parameters/fluxes
"""
# We now have an empty statevector object that we need to populate with data. If this is a continuation from a previous cycle, we can read
# the previous statevector values from a NetCDF file in the restart
/current
directory. If this is the first cycle, we need to populate the statevector
# the previous statevector values from a NetCDF file in the restart directory. If this is the first cycle, we need to populate the statevector
# with new values for each week. After we have constructed the statevector, it will be propagated by one cycle length so it is ready to be used
# in the current cycle
...
...
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