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
97abc5e3
Commit
97abc5e3
authored
12 years ago
by
Peters, Wouter
Browse files
Options
Downloads
Patches
Plain Diff
more verbose output about assimilated values
parent
ecbeb310
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
da/baseclasses/optimizer.py
+5
-5
5 additions, 5 deletions
da/baseclasses/optimizer.py
with
5 additions
and
5 deletions
da/baseclasses/optimizer.py
+
5
−
5
View file @
97abc5e3
...
...
@@ -340,7 +340,7 @@ class Optimizer(object):
savedict
[
'
dims
'
]
=
dimstate
+
dimobs
savedict
[
'
values
'
]
=
data
.
tolist
()
savedict
[
'
comment
'
]
=
'
Kalman gain matrix of all obs and state vector elements
'
dummy
=
f
.
AddData
(
savedict
)
#
dummy = f.AddData(savedict)
dummy
=
f
.
close
()
msg
=
'
Diagnostics file closed
'
;
logging
.
debug
(
msg
)
...
...
@@ -359,7 +359,7 @@ class Optimizer(object):
# Screen for flagged observations (for instance site not found, or no sample written from model)
if
self
.
flags
[
n
]
!=
0
:
msg
=
'
Skipping observation
%d
because of flag value %d
'
%
(
n
,
self
.
flags
[
n
])
;
logging
.
debug
(
msg
)
msg
=
'
Skipping observation
(%s,%s)
because of flag value %d
'
%
(
self
.
sitecode
[
n
],
self
.
obs_ids
[
n
]
,
self
.
flags
[
n
])
;
logging
.
debug
(
msg
)
continue
...
...
@@ -370,7 +370,7 @@ class Optimizer(object):
if
self
.
may_reject
[
n
]:
threshold
=
self
.
rejection_threshold
*
np
.
sqrt
(
self
.
R
[
n
,
n
])
if
np
.
abs
(
res
)
>
threshold
:
msg
=
'
Rejecting observation
%d
because residual (%f) exceeds threshold (%f)
'
%
(
n
,
res
,
threshold
)
;
logging
.
debug
(
msg
)
msg
=
'
Rejecting observation
(%s,%s)
because residual (%f) exceeds threshold (%f)
'
%
(
self
.
sitecode
[
n
],
self
.
obs_ids
[
n
]
,
res
,
threshold
)
;
logging
.
debug
(
msg
)
self
.
flags
[
n
]
=
2
continue
...
...
@@ -381,9 +381,9 @@ class Optimizer(object):
if
self
.
may_localize
[
n
]:
dummy
=
self
.
Localize
(
n
)
msg
=
'
Localized observation %
d
'
%
(
n
,)
;
logging
.
debug
(
msg
)
msg
=
'
Localized observation %
s
'
%
(
self
.
obs_ids
[
n
]
,)
;
logging
.
debug
(
msg
)
else
:
msg
=
'
Not allowed to Localize observation %
d
'
%
(
n
,)
;
logging
.
debug
(
msg
)
msg
=
'
Not allowed to Localize observation %
s
'
%
(
self
.
obs_ids
[
n
]
,)
;
logging
.
debug
(
msg
)
alpha
=
np
.
double
(
1.0
)
/
(
np
.
double
(
1.0
)
+
np
.
sqrt
(
(
self
.
R
[
n
,
n
])
/
self
.
HPHR
[
n
,
n
]
)
)
...
...
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