source: qesdi/data_processing/TMCReader.py @ 5406

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/qesdi/data_processing/TMCReader.py@5406
Revision 5406, 470 bytes checked in by dgrant, 11 years ago (diff)

Classes for reading basic data plus precipetation implementation

Line 
1
2from COORDDataTable import COORDDataTable
3
4class TMCReader:
5    """A class to read the ascii text from the precipetation data file"""
6   
7    def __init__(self):
8        self._coordTable = COORDDataTable()       
9
10    def readData(self, path):
11        f=open(path, 'r')
12        for line in f:
13            self.storeLine(line)
14
15    def storeLine(self, line):
16        raise 'Abstract Method.  Please override'
17   
18    def getLookupTable(self):
19        return self._coordTable
Note: See TracBrowser for help on using the repository browser.