source: qesdi/data_processing/TMCReader.py @ 5434

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

Can now read in precip data and write functionaly correct netCDF. Still
need to make this conform to CF

Line 
1
2from COORDDataTable import COORDDataTable
3
4class TMCReader(object):
5    """A class to read the ascii text from the precipetation data file"""
6   
7    def __init__(self,emptyVal):
8        self.coordTable = COORDDataTable(emptyVal)       
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.