source: TI02-CSML/trunk/csml/API/__init__.py @ 1484

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

moving xmlEncodign and NetCDFwriter into csmllibs

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