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
Tsurata, Aki
CTDAS
Commits
b0023cc6
Commit
b0023cc6
authored
9 years ago
by
ivar
Browse files
Options
Downloads
Patches
Plain Diff
added code to have different model-data mismatch in summer and winter
parent
3279f01c
Branches
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/stilt/obspack_geocarbon.py
+15
-17
15 additions, 17 deletions
da/stilt/obspack_geocarbon.py
with
15 additions
and
17 deletions
da/stilt/obspack_geocarbon.py
+
15
−
17
View file @
b0023cc6
...
...
@@ -370,12 +370,13 @@ class ObsPackObservations(Observations):
site_categories
=
{}
for
key
in
cats
:
name
,
error
,
may_localize
,
may_reject
=
sites_weights
[
key
].
split
(
'
;
'
)
name
,
error
_summer
,
error_winter
,
may_localize
,
may_reject
=
sites_weights
[
key
].
split
(
'
;
'
)
name
=
name
.
strip
().
lower
()
error
=
float
(
error
)
error_summer
=
float
(
error_summer
)
error_winter
=
float
(
error_winter
)
may_reject
=
(
"
TRUE
"
in
may_reject
.
upper
())
may_localize
=
(
"
TRUE
"
in
may_localize
.
upper
())
site_categories
[
name
]
=
{
'
category
'
:
name
,
'
error
'
:
error
,
'
may_localize
'
:
may_localize
,
'
may_reject
'
:
may_reject
}
site_categories
[
name
]
=
{
'
category
'
:
name
,
'
error
_summer
'
:
error
_summer
,
'
error_winter
'
:
error_winter
,
'
may_localize
'
:
may_localize
,
'
may_reject
'
:
may_reject
}
site_info
=
{}
site_move
=
{}
...
...
@@ -432,26 +433,23 @@ class ObsPackObservations(Observations):
else
:
logging
.
warning
(
"
Observation in hourly dataset EXCLUDED, while UTC sampling time %s was outside local %s:00-%s:00
"
%
(
obs
.
xdate
.
time
(),
hourf
,
hourt
))
exclude_hourly
=
True
if
site_info
[
identifier
][
'
category
'
]
==
'
do-not-use
'
or
exclude_hourly
or
exclude_footprint
:
if
site_info
[
identifier
][
'
category
'
]
==
'
do-not-use
'
or
site_info
[
identifier
][
'
category
'
]
==
'
do-not-simulate
'
or
exclude_hourly
or
exclude_footprint
:
logging
.
warning
(
"
Site found (%s, %d), but data point not used in assimilation !!!
"
%
(
identifier
,
obs
.
id
))
obs
.
mdm
=
site_info
[
identifier
][
'
error
'
]
*
self
.
global_R_scaling
obs
.
may_localize
=
site_info
[
identifier
][
'
may_localize
'
]
obs
.
may_reject
=
site_info
[
identifier
][
'
may_reject
'
]
obs
.
flag
=
99
if
site_info
[
identifier
][
'
category
'
]
==
'
do-not-simulate
'
or
exclude_hourly
or
exclude_footprint
:
logging
.
warning
(
"
Site found (%s, %d), but data point not used in simulation !!!
"
%
(
identifier
,
obs
.
id
))
obs
.
mdm
=
site_info
[
identifier
][
'
error
'
]
*
self
.
global_R_scaling
if
int
(
obs
.
xdate
.
month
)
>
3
and
int
(
obs
.
xdate
.
month
)
<
10
:
obs
.
mdm
=
site_info
[
identifier
][
'
error_summer
'
]
*
self
.
global_R_scaling
else
:
obs
.
mdm
=
site_info
[
identifier
][
'
error_winter
'
]
*
self
.
global_R_scaling
obs
.
may_localize
=
site_info
[
identifier
][
'
may_localize
'
]
obs
.
may_reject
=
site_info
[
identifier
][
'
may_reject
'
]
obs
.
flag
=
99
do_not_simulate
.
append
(
i
)
#print s_index
#self.datalist.remove(self.datalist[s_index])
#del self.datalist[s_index]
#removed = self.datalist.pop(s_index)
if
site_info
[
identifier
][
'
category
'
]
==
'
do-not-simulate
'
:
do_not_simulate
.
append
(
i
)
else
:
logging
.
debug
(
"
Site found (%s, %d)
"
%
(
identifier
,
obs
.
id
))
obs
.
mdm
=
site_info
[
identifier
][
'
error
'
]
*
self
.
global_R_scaling
if
int
(
obs
.
xdate
.
month
)
>
3
and
int
(
obs
.
xdate
.
month
)
<
10
:
obs
.
mdm
=
site_info
[
identifier
][
'
error_summer
'
]
*
self
.
global_R_scaling
else
:
obs
.
mdm
=
site_info
[
identifier
][
'
error_winter
'
]
*
self
.
global_R_scaling
obs
.
may_localize
=
site_info
[
identifier
][
'
may_localize
'
]
obs
.
may_reject
=
site_info
[
identifier
][
'
may_reject
'
]
obs
.
flag
=
0
...
...
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