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

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

time and calendar working in netcdf output. Time subsetting by min/max or explicit values. Ready for attempt at data extractor integration.

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   
14try:
15    import csmllibs.csmltime as csmltime
16except:
17    print 'Could not import csmltime. '
18    sys.exit()
19
20
21#import element tree and the parser api
22from cElementTree import *
23import Parser
24import parser_extra
25import ops_Dataset
26import ops_AbstractFileExtract
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#Assign methods  .. hmmm perhaps a loop needed here!!
44
45#Dataset methods:
46Parser.Dataset.parse=ops_Dataset.parse
47Parser.Dataset.getFeatureList=ops_Dataset.getFeatureList
48Parser.Dataset.getFeature=ops_Dataset.getFeature
49Parser.Dataset.getFileExtract=ops_Dataset.getFileExtract
50
51#AbstractFileExtract methods:
52Parser.AbstractFileExtract.getData=ops_AbstractFileExtract.getData
53
54#AbstractFeature methods:
55Parser.AbstractFeature.testmethod=ops_AbstractFeature.testmethod
56Parser.AbstractFeature.getAllowedSubsettings=ops_AbstractFeature.getAllowedSubsettings
57
58#PointFeature methods:
59Parser.PointFeature.testmethod=ops_PointFeature.testmethod
60#PointFeature.getAllowedSubsettings=ops_PointFeature.getAllowedSubsettings
61
62#PointSeriesFeature methods:
63Parser.PointSeriesFeature.testmethod=ops_PointSeriesFeature.testmethod
64#PointSeriesFeature.getAllowedSubsettings=ops_PointSeriesFeature.getAllowedSubsettings
65
66#ProfileFeature methods:
67Parser.ProfileFeature.testmethod=ops_ProfileFeature.testmethod
68#ProfileFeature.getAllowedSubsettings=ops_ProfileFeature.getAllowedSubsettings
69
70#ProfileSeriesFeature methods:
71Parser.ProfileSeriesFeature.testmethod=ops_ProfileSeriesFeature.testmethod
72#ProfileSeriesFeature.getAllowedSubsettings=ops_ProfileSeriesFeature.getAllowedSubsettings
73
74#GridFeature methods:
75Parser.GridFeature.testmethod=ops_GridFeature.testmethod
76#GridFeature.getAllowedSubsettings=ops_GridFeature.getAllowedSubsettings
77
78#GridSeriesFeature methods:
79Parser.GridSeriesFeature.testmethod=ops_GridSeriesFeature.testmethod
80Parser.GridSeriesFeature.getAllowedSubsettings=ops_GridSeriesFeature.getAllowedSubsettings
81Parser.GridSeriesFeature.getDomainReference=ops_GridSeriesFeature.getDomainReference
82Parser.GridSeriesFeature.getDomainComplement=ops_GridSeriesFeature.getDomainComplement
83Parser.GridSeriesFeature.getDomain=ops_GridSeriesFeature.getDomain
84Parser.GridSeriesFeature.subsetToGridSeries=ops_GridSeriesFeature.subsetToGridSeries
85
86#TrajectoryFeature methods:
87Parser.TrajectoryFeature.testmethod=ops_TrajectoryFeature.testmethod
Note: See TracBrowser for help on using the repository browser.