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
CTDAS
CTDAS
Commits
bbaa6f7b
Commit
bbaa6f7b
authored
11 years ago
by
Ingrid Luijkx
Browse files
Options
Downloads
Patches
Plain Diff
Added options for country and flux1x1 for time averages
parent
e7022ebe
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
da/analysis/daily_fluxes.py
+1
-1
1 addition, 1 deletion
da/analysis/daily_fluxes.py
da/analysis/monthly_fluxes.py
+1
-1
1 addition, 1 deletion
da/analysis/monthly_fluxes.py
da/analysis/yearly_fluxes.py
+1
-1
1 addition, 1 deletion
da/analysis/yearly_fluxes.py
with
3 additions
and
3 deletions
da/analysis/daily_fluxes.py
+
1
−
1
View file @
bbaa6f7b
...
...
@@ -18,7 +18,7 @@ import datetime
def
daily_avg
(
rundir
,
avg
):
"""
Function to create a set of daily files in a folder, needed to make longer term means
"""
if
avg
not
in
[
'
transcom
'
,
'
olson
'
]:
if
avg
not
in
[
'
transcom
'
,
'
olson
'
,
'
country
'
,
'
flux1x1
'
]:
raise
IOError
,
'
Choice of averaging invalid
'
if
not
os
.
path
.
exists
(
rundir
):
raise
IOError
,
'
rundir requested (%s) does not exist, exiting...
'
%
rundir
...
...
This diff is collapsed.
Click to expand it.
da/analysis/monthly_fluxes.py
+
1
−
1
View file @
bbaa6f7b
...
...
@@ -18,7 +18,7 @@ import subprocess
def
monthly_avg
(
rundir
,
avg
):
"""
Function to average a set of files in a folder from daily to monthly means
"""
if
avg
not
in
[
'
transcom
'
,
'
olson
'
]:
if
avg
not
in
[
'
transcom
'
,
'
olson
'
,
'
country
'
,
'
flux1x1
'
]:
raise
IOError
,
'
Choice of averaging invalid
'
if
not
os
.
path
.
exists
(
rundir
):
raise
IOError
,
'
rundir requested (%s) does not exist, exiting...
'
%
rundir
...
...
This diff is collapsed.
Click to expand it.
da/analysis/yearly_fluxes.py
+
1
−
1
View file @
bbaa6f7b
...
...
@@ -18,7 +18,7 @@ import subprocess
def
yearly_avg
(
rundir
,
avg
):
"""
Function to average a set of files in a folder from monthly to yearly means
"""
if
avg
not
in
[
'
transcom
'
,
'
olson
'
]:
if
avg
not
in
[
'
transcom
'
,
'
olson
'
,
'
country
'
,
'
flux1x1
'
]:
raise
IOError
,
'
Choice of averaging invalid
'
if
not
os
.
path
.
exists
(
rundir
):
raise
IOError
,
'
rundir requested (%s) does not exist, exiting...
'
%
rundir
...
...
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