Skip to content
Snippets Groups Projects
Commit 6383d344 authored by Peters, Wouter's avatar Peters, Wouter
Browse files

clean up of unneeded imports

parent 70d83bba
Branches
No related tags found
No related merge requests found
......@@ -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 tm5tools import globarea
from da.analysis.tools_regions 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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment