source: TI02-CSML/branches/CSML2/API/__init__.py @ 1738

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

commenting out and fixing v1 imports

Line 
1#''' __init__.py  '''
2
3
4##import element tree and the parser api
5#from cElementTree import *
6#import csml.parser
7#import ops_Dataset
8#import ops_AbstractFileExtract
9#import ops_ArrayGenerator
10#import ops_AbstractFeature
11#import ops_PointFeature
12#import ops_PointSeriesFeature
13#import ops_ProfileFeature
14#import ops_ProfileSeriesFeature
15#import ops_GridFeature
16#import ops_GridSeriesFeature
17#import ops_TrajectoryFeature
18#import csmlContainer
19
20#def addMethods(obj, meths):
21    #for meth in meths:
22        #setattr(obj, meth.__name__, meth)
23
24##Assign methods to parser classes
25##Dataset methods:
26#addMethods(csml.parser.Dataset, [ops_Dataset.parse, ops_Dataset.getSecurity, ops_Dataset.getFeatureList, ops_Dataset.getFeature, ops_Dataset.getFileExtract])
27
28##AbstractFileExtract methods:
29#addMethods(csml.parser.AbstractFileExtract, [ops_AbstractFileExtract.getData])
30
31##ArrayGenerator methods:
32#addMethods(csml.parser.ArrayGenerator, [ops_ArrayGenerator.getGeneratedValues])
33
34##AbstractFeature methods:
35#addMethods(csml.parser.AbstractFeature, [ops_AbstractFeature.testmethod, ops_AbstractFeature.getAllowedSubsettings])
36
37##PointFeature methods:
38#addMethods(csml.parser.PointFeature,[ops_PointFeature.testmethod])
39
40##PointSeriesFeature methods:
41#addMethods(csml.parser.PointSeriesFeature, [ops_PointSeriesFeature.testmethod,ops_PointSeriesFeature.getDomainReference, ops_PointSeriesFeature.getAllowedSubsettings])
42
43##ProfileFeature methods:
44#addMethods(csml.parser.ProfileFeature,[ops_ProfileFeature.testmethod])
45
46##ProfileSeriesFeature methods:
47#addMethods(csml.parser.ProfileSeriesFeature,[ops_ProfileSeriesFeature.testmethod])
48
49##GridFeature methods:
50#addMethods(csml.parser.GridFeature,[ops_GridFeature.testmethod])
51
52##GridSeriesFeature methods:
53#addMethods(csml.parser.GridSeriesFeature,[ops_GridFeature.testmethod, ops_GridSeriesFeature.getAllowedSubsettings,ops_GridSeriesFeature.getDomainReference,ops_GridSeriesFeature.getDomainComplement,ops_GridSeriesFeature.getDomain,ops_GridSeriesFeature.subsetToGridSeries])
54
55##TrajectoryFeature methods:
56#addMethods(csml.parser.TrajectoryFeature, [ops_TrajectoryFeature.testmethod])
Note: See TracBrowser for help on using the repository browser.