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
Tsurata, Aki
CTDAS
Commits
444c3ce6
Commit
444c3ce6
authored
Aug 10, 2012
by
ivar
Browse files
reintroduced R-scaling factor in obspack
parent
113a22eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
da/ctc13/obspack.py
View file @
444c3ce6
...
...
@@ -128,7 +128,7 @@ class ObsPackObservations(Observation):
alts
=
ncf
.
GetVariable
(
'altitude'
).
take
(
subselect
,
axis
=
0
)
obs
=
ncf
.
GetVariable
(
'value'
).
take
(
subselect
,
axis
=
0
)
if
obsspecie
==
self
.
ObsPackCo2Dir
:
obs
=
obs
*
1.e6
#IV convert to ppm
obs
=
obs
#
*1.e6 #IV convert to ppm
species
=
ncf
.
GetAttribute
(
'dataset_parameter'
)
#strategy = ncf.GetVariable('sampling_strategy').take(subselect,axis=0)
strategy
=
1
...
...
@@ -186,7 +186,7 @@ class ObsPackObservations(Observation):
tr_species
=
array
(
tr_species
)
if
self
.
Co2_only
:
simulated
=
simulated
*
1.e6
simulated
=
simulated
#
*1.e6
if
self
.
C13_only
:
simulated
=
mtp
.
MixingratioToPermil
(
filename
,
simulated
)
if
self
.
Co2_C13_together
:
...
...
@@ -414,10 +414,12 @@ class ObsPackObservations(Observation):
if
SiteInfo
.
has_key
(
identifier
):
msg
=
"Observation found (%s, %s)"
%
(
obs
.
code
,
identifier
,)
;
logging
.
debug
(
msg
)
obs
.
mdm
=
SiteInfo
[
identifier
][
'error'
]
#
obs.mdm = SiteInfo[identifier]['error']
if
species
==
'co2c13'
:
# obs.mdmc13 = SiteInfo[identifier]['error_c13']
obs
.
mdm
=
SiteInfo
[
identifier
][
'error_c13'
]
else
:
obs
.
mdm
=
SiteInfo
[
identifier
][
'error'
]
*
self
.
global_R_scaling
print
obs
,
obs
.
mdm
,
species
obs
.
may_localize
=
SiteInfo
[
identifier
][
'may_localize'
]
obs
.
may_reject
=
SiteInfo
[
identifier
][
'may_reject'
]
...
...
Write
Preview
Markdown
is supported
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