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

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

domainreference + domaincomplement working in api

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