Changeset 1000


Ignore:
Timestamp:
24/05/06 11:56:39 (13 years ago)
Author:
domlowe
Message:

adding directory to store BADC CSML files (for now)

Location:
TI02-CSML/trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/parser/apiDemo.py

    r984 r1000  
    1010def main(): 
    1111    #opens (and parses) a csml file: 
    12     f='gridseriestest.xml' 
     12    #f='gridseriestest.xml' 
     13    f='coapec.xml' 
    1314    print '\n ----------------------------------------------------------------------------- \n Initialising dataset from file %s.' %f 
    1415    csml=CSMLDataset(f) 
     
    1920     
    2021     
    21     print '\n Selecting feature with gml:id = %s' %featureList[1] 
     22    print '\n Selecting feature with gml:id = %s' %featureList[5] 
    2223    #csml.getFeature is the method to  get a particular feature by name. 
    23     feature=csml.getFeature(featureList[1]) 
     24    feature=csml.getFeature(featureList[5]) 
    2425    print '\n the best name for the feature is %s '%feature.getBestName() 
    2526    print '\n The feature has the following methods:' 
     
    2930    print '\n the following feature subsetting operations are allowed:' 
    3031    print feature.getAllowedSubsettings() 
    31      
    32     timeSelection=['2783-05-22T00:00:00', '2793-03-30T00:00:00'] 
     32    #timeSelection=['2783-05-22T00:00:00', '2793-03-30T00:00:00'] 
     33    timeSelection=['2778-12-14T00:00:00', '2779-12-09T00:00:00', '2780-12-03T00:00:00', '2781-11-28T00:00:00', '2782-11-23T00:00:00' ,'2783-11-18T00:00:00'] 
     34    #timeSelection=['2783-05-22T00:00:00', '2793-03-30T00:00:00'] 
    3335    spatialSubsetDictionary= {} 
    3436    spatialSubsetDictionary['latitude']=(0.,10.0) 
  • TI02-CSML/trunk/parser/csmldoc.py

    r984 r1000  
    1616parentPath=os.sep.join(currentPath.split(os.sep)[:-1]) 
    1717parserPath=parentPath + '/Scanner/csmllibs' 
    18 sys.path.append(parserPath) #append the parser path to sys.path 
     18sys.path.append(parserPath) #append the parser path to sys.path  
    1919try: 
    2020    import csmldataiface 
     
    151151            #return output options for PointSeries feature... not implemented 
    152152        pass 
    153  
    154153     
    155154class CSMLProfileFeature(CSMLAbstractFeature): 
Note: See TracChangeset for help on using the changeset viewer.