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
6383d344
Commit
6383d344
authored
12 years ago
by
Peters, Wouter
Browse files
Options
Downloads
Patches
Plain Diff
clean up of unneeded imports
parent
70d83bba
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/analysis/tools_country.py
+3
-2
3 additions, 2 deletions
da/analysis/tools_country.py
with
3 additions
and
2 deletions
da/analysis/tools_country.py
+
3
−
2
View file @
6383d344
...
...
@@ -22,6 +22,8 @@ The country data only covers the land areas of a nation and aggregation will exc
by oceans, sea, or open water. The aggregation will thus work best on arrays that are *not* defined by unit area!
"""
import
sys
sys
.
path
.
append
(
'
../../
'
)
try
:
from
dbfpy
import
dbf
except
:
...
...
@@ -29,7 +31,7 @@ except:
print
"
http://dbfpy.sourceforge.net/
"
print
"
Trying to complete anyway...
"
from
numpy
import
sum
,
array
from
tm5tool
s
import
globarea
from
da.analysis.tools_region
s
import
globarea
EU25
=
[
"
Austria
"
,
"
Belgium
"
,
"
Cyprus
"
,
"
Czech Republic
"
,
"
Denmark
"
,
"
Estonia
"
,
"
Finland
"
,
"
France
"
,
"
Germany
"
,
"
Greece
"
,
"
Hungary
"
,
"
Ireland
"
,
"
Italy
"
,
"
Latvia
"
,
"
Lithuania
"
,
"
Luxembourg
"
,
"
Malta
"
,
"
Netherlands
"
,
"
Poland
"
,
"
Portugal
"
,
"
Slovakia
"
,
"
Slovenia
"
,
"
Spain
"
,
"
Sweden
"
,
"
United Kingdom
"
]
EU27
=
[
"
Austria
"
,
"
Belgium
"
,
"
Bulgaria
"
,
"
Cyprus
"
,
"
Czech Republic
"
,
"
Denmark
"
,
"
Estonia
"
,
"
Finland
"
,
"
France
"
,
"
Germany
"
,
"
Greece
"
,
"
Hungary
"
,
"
Ireland
"
,
"
Italy
"
,
"
Latvia
"
,
"
Lithuania
"
,
"
Luxembourg
"
,
"
Malta
"
,
"
Netherlands
"
,
"
Poland
"
,
"
Portugal
"
,
"
Romania
"
,
"
Slovakia
"
,
"
Slovenia
"
,
"
Spain
"
,
"
Sweden
"
,
"
United Kingdom
"
]
...
...
@@ -128,7 +130,6 @@ def fix_eu(rec):
def
get_countrydict
():
"""
Create a dictionary with grid-to-country information from a dbf file
"""
import
cPickle
import
mysettings
import
os
file
=
os
.
path
.
join
(
'
country_dictionary.dat
'
)
...
...
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