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
Package registry
Container registry
Model registry
Operate
Terraform modules
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
NearRealTimeCTDAS
CTDAS
Commits
ce3652f5
Commit
ce3652f5
authored
11 years ago
by
Peters, Wouter
Browse files
Options
Downloads
Patches
Plain Diff
minor changes to work on cartesius, new country_dictoinary file created by Ingrid on cape grim
parent
294251e8
Branches
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/country_dictionary.dat
+0
-0
0 additions, 0 deletions
da/analysis/country_dictionary.dat
da/analysis/summarize_obs.py
+1
-1
1 addition, 1 deletion
da/analysis/summarize_obs.py
da/analysis/tools_country.py
+5
-2
5 additions, 2 deletions
da/analysis/tools_country.py
with
6 additions
and
3 deletions
da/analysis/country_dictionary.dat
+
0
−
0
View file @
ce3652f5
No preview for this file type
This diff is collapsed.
Click to expand it.
da/analysis/summarize_obs.py
+
1
−
1
View file @
ce3652f5
...
...
@@ -44,7 +44,7 @@ def nice_alt(cls):
return
string
.
strip
(
'
%10.1f masl
'
%
round
(
cls
,
-
1
))
def
summarize_obs
(
dacycle
,
printfmt
=
'
html
'
):
def
summarize_obs
(
analysisdir
,
printfmt
=
'
html
'
):
"""
***************************************************************************************
Call example:
...
...
This diff is collapsed.
Click to expand it.
da/analysis/tools_country.py
+
5
−
2
View file @
ce3652f5
...
...
@@ -25,6 +25,9 @@ by oceans, sea, or open water. The aggregation will thus work best on arrays tha
import
sys
import
cPickle
import
os
sys
.
path
.
append
(
'
../../
'
)
rootdir
=
os
.
getcwd
().
split
(
'
da/
'
)[
0
]
analysisdir
=
os
.
path
.
join
(
rootdir
,
'
da/analysis
'
)
from
numpy
import
sum
,
array
try
:
...
...
@@ -136,12 +139,12 @@ def get_countrydict():
countrydict
=
countryinfo
(
'
Test
'
)
file
=
os
.
path
.
join
(
'
country_dictionary.dat
'
)
file
=
os
.
path
.
join
(
analysisdir
,
'
country_dictionary.dat
'
)
try
:
countrydict
=
cPickle
.
load
(
open
(
file
,
'
rb
'
))
except
:
db
=
dbf
.
Dbf
(
os
.
path
.
join
(
'
GRIDCTRY.DBF
'
))
db
=
dbf
.
Dbf
(
os
.
path
.
join
(
analysisdir
,
'
GRIDCTRY.DBF
'
))
countrydict
=
{}
for
n
,
rec
in
enumerate
(
db
):
...
...
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