source: TI02-CSML/trunk/parser/API/__init__.py @ 1042

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI02-CSML/trunk/parser/API/__init__.py@1042
Revision 1042, 2.7 KB checked in by domlowe, 14 years ago (diff)

subsetToGridSeries part working

Line 
1''' __init__.py  '''
2
3#import dataiface from scanner
4import os, sys
5currentPath=os.getcwd() 
6scannerPath=os.sep.join(currentPath.split(os.sep)[:-1]) + '/Scanner'
7sys.path.append(scannerPath) #append the parser path to sys.path
8try:
9    import csmllibs.csmldataiface as csmldataiface
10except:
11    print 'Could not import CSML data interface. '
12    sys.exit()
13
14
15#import element tree and the parser api
16from cElementTree import *
17import Parser
18import parser_extra
19import ops_Dataset
20import ops_AbstractFileExtract
21import ops_AbstractFeature
22import ops_PointFeature
23import ops_PointSeriesFeature
24import ops_ProfileFeature
25import ops_ProfileSeriesFeature
26import ops_GridFeature
27import ops_GridSeriesFeature
28import ops_TrajectoryFeature
29
30
31#Assign methods  .. hmmm perhaps a loop needed here!!
32
33#Dataset methods:
34Parser.Dataset.parse=ops_Dataset.parse
35Parser.Dataset.getFeatureList=ops_Dataset.getFeatureList
36Parser.Dataset.getFeature=ops_Dataset.getFeature
37Parser.Dataset.getFileExtract=ops_Dataset.getFileExtract
38
39#AbstractFileExtract methods:
40Parser.AbstractFileExtract.getData=ops_AbstractFileExtract.getData
41
42#AbstractFeature methods:
43Parser.AbstractFeature.testmethod=ops_AbstractFeature.testmethod
44Parser.AbstractFeature.getAllowedSubsettings=ops_AbstractFeature.getAllowedSubsettings
45
46#PointFeature methods:
47Parser.PointFeature.testmethod=ops_PointFeature.testmethod
48#PointFeature.getAllowedSubsettings=ops_PointFeature.getAllowedSubsettings
49
50#PointSeriesFeature methods:
51Parser.PointSeriesFeature.testmethod=ops_PointSeriesFeature.testmethod
52#PointSeriesFeature.getAllowedSubsettings=ops_PointSeriesFeature.getAllowedSubsettings
53
54#ProfileFeature methods:
55Parser.ProfileFeature.testmethod=ops_ProfileFeature.testmethod
56#ProfileFeature.getAllowedSubsettings=ops_ProfileFeature.getAllowedSubsettings
57
58#ProfileSeriesFeature methods:
59Parser.ProfileSeriesFeature.testmethod=ops_ProfileSeriesFeature.testmethod
60#ProfileSeriesFeature.getAllowedSubsettings=ops_ProfileSeriesFeature.getAllowedSubsettings
61
62#GridFeature methods:
63Parser.GridFeature.testmethod=ops_GridFeature.testmethod
64#GridFeature.getAllowedSubsettings=ops_GridFeature.getAllowedSubsettings
65
66#GridSeriesFeature methods:
67Parser.GridSeriesFeature.testmethod=ops_GridSeriesFeature.testmethod
68Parser.GridSeriesFeature.getAllowedSubsettings=ops_GridSeriesFeature.getAllowedSubsettings
69Parser.GridSeriesFeature.getDomainReference=ops_GridSeriesFeature.getDomainReference
70Parser.GridSeriesFeature.getDomainComplement=ops_GridSeriesFeature.getDomainComplement
71Parser.GridSeriesFeature.getDomain=ops_GridSeriesFeature.getDomain
72Parser.GridSeriesFeature.subsetToGridSeries=ops_GridSeriesFeature.subsetToGridSeries
73
74#TrajectoryFeature methods:
75Parser.TrajectoryFeature.testmethod=ops_TrajectoryFeature.testmethod
Note: See TracBrowser for help on using the repository browser.