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
Smith, Naomi
CTDAS
Commits
48b6bd1a
Commit
48b6bd1a
authored
Aug 24, 2015
by
weihe
Browse files
co_filter keys
parent
42dd26fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
da/stilt/obspack.py
View file @
48b6bd1a
...
...
@@ -338,7 +338,7 @@ class ObsPackObservations(Observations):
def
add_model_data_mismatch
(
self
,
filename
,
filename_cofilter
):
def
add_model_data_mismatch
(
self
,
filename
):
"""
Get the model-data mismatch values for this cycle.
...
...
@@ -383,6 +383,7 @@ class ObsPackObservations(Observations):
site_hourly
=
{}
# option added to include only certain hours of the day (for e.g. PAL) IvdL
site_foot
=
{}
# option added to check for available footprints per observation
site_incalt
=
{}
# option to increase sampling altitude for sites specified in sites and weights file
co_filter
=
{}
for
key
,
value
in
sites_weights
.
iteritems
():
if
'co2_'
in
key
or
'sf6'
in
key
:
# to be fixed later, do not yet know how to parse valid keys from rc-files yet.... WP
sitename
,
sitecategory
=
key
,
value
...
...
@@ -401,13 +402,16 @@ class ObsPackObservations(Observations):
if
'site.incalt'
in
key
:
identifier
,
incalt
=
value
.
split
(
';'
)
site_incalt
[
identifier
.
strip
()]
=
(
int
(
incalt
))
if
'co.filter'
in
key
:
identifier_cofilter
,
cofilter
=
value
.
split
(
';'
)
co_filter
[
identifier_cofilter
.
strip
()]
=
(
str
(
cofilter
))
#for obs in self.datalist:
do_not_simulate
=
[]
do_simulate
=
[]
eventids
=
[]
for
line
in
open
(
filename_
cofilter
):
for
line
in
open
(
str
(
cofilter
)
)
:
columns
=
line
.
split
()
if
columns
[
0
]
==
"eventid"
:
pass
...
...
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