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
7c9c4182
Commit
7c9c4182
authored
Nov 09, 2018
by
brunner
Browse files
No commit message
No commit message
parent
8a652926
Changes
2
Show whitespace changes
Inline
Side-by-side
da/stilt/expand_fluxes.py
View file @
7c9c4182
...
@@ -559,7 +559,7 @@ def save_weekly_avg_tc_data(dacycle, statevector):
...
@@ -559,7 +559,7 @@ def save_weekly_avg_tc_data(dacycle, statevector):
# Now convert other variables that were inside the flux_1x1 file
# Now convert other variables that were inside the flux_1x1 file
vardict
=
ncf_in
.
variables
vardict
=
ncf_in
.
variables
for
vname
,
vprop
in
vardict
.
iter
items
():
for
vname
,
vprop
in
vardict
.
items
():
data
=
ncf_in
.
get_variable
(
vname
)[
index
]
data
=
ncf_in
.
get_variable
(
vname
)[
index
]
...
@@ -684,7 +684,7 @@ def save_weekly_avg_ext_tc_data(dacycle):
...
@@ -684,7 +684,7 @@ def save_weekly_avg_ext_tc_data(dacycle):
# Now convert other variables that were inside the tcfluxes.nc file
# Now convert other variables that were inside the tcfluxes.nc file
vardict
=
ncf_in
.
variables
vardict
=
ncf_in
.
variables
for
vname
,
vprop
in
vardict
.
iter
items
():
for
vname
,
vprop
in
vardict
.
items
():
data
=
ncf_in
.
get_variable
(
vname
)[
index
]
data
=
ncf_in
.
get_variable
(
vname
)[
index
]
...
@@ -896,7 +896,7 @@ def save_weekly_avg_agg_data(dacycle, region_aggregate='olson'):
...
@@ -896,7 +896,7 @@ def save_weekly_avg_agg_data(dacycle, region_aggregate='olson'):
# Now convert other variables that were inside the statevector file
# Now convert other variables that were inside the statevector file
vardict
=
ncf_in
.
variables
vardict
=
ncf_in
.
variables
for
vname
,
vprop
in
vardict
.
iter
items
():
for
vname
,
vprop
in
vardict
.
items
():
if
vname
==
'latitude'
:
continue
if
vname
==
'latitude'
:
continue
elif
vname
==
'longitude'
:
continue
elif
vname
==
'longitude'
:
continue
elif
vname
==
'date'
:
continue
elif
vname
==
'date'
:
continue
...
...
da/stilt/obspack.py
View file @
7c9c4182
...
@@ -228,7 +228,7 @@ class ObsPackObservations(Observations):
...
@@ -228,7 +228,7 @@ class ObsPackObservations(Observations):
dim10char
=
f
.
add_dim
(
'string_of10chars'
,
10
)
dim10char
=
f
.
add_dim
(
'string_of10chars'
,
10
)
dimcalcomp
=
f
.
add_dim
(
'calendar_components'
,
6
)
dimcalcomp
=
f
.
add_dim
(
'calendar_components'
,
6
)
for
key
,
value
in
self
.
site_move
.
iter
items
():
for
key
,
value
in
self
.
site_move
.
items
():
msg
=
"Site is moved by %3.2f degrees latitude and %3.2f degrees longitude"
%
value
msg
=
"Site is moved by %3.2f degrees latitude and %3.2f degrees longitude"
%
value
f
.
add_attribute
(
key
,
msg
)
f
.
add_attribute
(
key
,
msg
)
...
@@ -396,7 +396,7 @@ class ObsPackObservations(Observations):
...
@@ -396,7 +396,7 @@ class ObsPackObservations(Observations):
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
=
{}
co_filter
=
{}
for
key
,
value
in
sites_weights
.
iter
items
():
for
key
,
value
in
sites_weights
.
items
():
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
sitename
=
sitename
.
strip
()
sitename
=
sitename
.
strip
()
...
@@ -548,7 +548,7 @@ class ObsPackObservations(Observations):
...
@@ -548,7 +548,7 @@ class ObsPackObservations(Observations):
f
.
close
()
f
.
close
()
#return outfile
#return outfile
for
key
,
value
in
self
.
site_move
.
iter
items
():
for
key
,
value
in
self
.
site_move
.
items
():
msg
=
"Site is moved by %3.2f degrees latitude and %3.2f degrees longitude"
%
value
msg
=
"Site is moved by %3.2f degrees latitude and %3.2f degrees longitude"
%
value
f
.
add_attribute
(
key
,
msg
)
f
.
add_attribute
(
key
,
msg
)
...
...
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