Ignore:
Timestamp:
03/05/06 10:58:41 (14 years ago)
Author:
domlowe
Message:

Basic csml i/o - reading csml doc and extracting correct data from file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/newparser/ioDemo.py

    r864 r875  
    1414#csml.parse('example.xml') 
    1515csml.parse('gridseriestest.xml') 
     16#csml.parse('nagridseries.xml') 
    1617 
    1718#return CSML document as string: 
    18 strCSML=csml.getCSMLasString() 
     19#strCSML=csml.getCSMLasString() 
    1920#print strCSML 
    2021 
     
    2728for i in range(0, len(featureList)): 
    2829    featureType = csml.getFeatureType(featureList[i]) 
    29     #print featureType 
     30    print featureType 
    3031     
    3132     
     
    4041print 'domain: ' + str(domain) 
    4142 
     43featureValues=csml.getDataForFeature('solar_3') 
     44print type(featureValues) 
     45#print dir(featureValues) 
     46#print featureValues 
     47#print 'Feature rangeSet:' +str(featureValues) 
    4248sys.exit() 
    4349 
     
    5763#dataArray = csml.getData('feat04times') 
    5864for extract in fileExtractList: 
    59     dataArray=csml.getData(extract) 
     65    print extract 
     66    dataArray=csml.getDataForExtract(extract) 
    6067    #print extract 
    6168    #print dataArray 
Note: See TracChangeset for help on using the changeset viewer.