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
Smith, Naomi
CTDAS
Commits
48b6bd1a
Commit
48b6bd1a
authored
9 years ago
by
weihe
Browse files
Options
Downloads
Patches
Plain Diff
co_filter keys
parent
42dd26fc
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.py
+6
-2
6 additions, 2 deletions
da/stilt/obspack.py
with
6 additions
and
2 deletions
da/stilt/obspack.py
+
6
−
2
View file @
48b6bd1a
...
@@ -338,7 +338,7 @@ class ObsPackObservations(Observations):
...
@@ -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.
Get the model-data mismatch values for this cycle.
...
@@ -383,6 +383,7 @@ class ObsPackObservations(Observations):
...
@@ -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_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_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
site_incalt
=
{}
# option to increase sampling altitude for sites specified in sites and weights file
co_filter
=
{}
for
key
,
value
in
sites_weights
.
iteritems
():
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
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
sitename
,
sitecategory
=
key
,
value
...
@@ -401,13 +402,16 @@ class ObsPackObservations(Observations):
...
@@ -401,13 +402,16 @@ class ObsPackObservations(Observations):
if
'
site.incalt
'
in
key
:
if
'
site.incalt
'
in
key
:
identifier
,
incalt
=
value
.
split
(
'
;
'
)
identifier
,
incalt
=
value
.
split
(
'
;
'
)
site_incalt
[
identifier
.
strip
()]
=
(
int
(
incalt
))
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:
#for obs in self.datalist:
do_not_simulate
=
[]
do_not_simulate
=
[]
do_simulate
=
[]
do_simulate
=
[]
eventids
=
[]
eventids
=
[]
for
line
in
open
(
filename_
cofilter
):
for
line
in
open
(
str
(
cofilter
)
)
:
columns
=
line
.
split
()
columns
=
line
.
split
()
if
columns
[
0
]
==
"
eventid
"
:
if
columns
[
0
]
==
"
eventid
"
:
pass
pass
...
...
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