Ignore:
Timestamp:
04/05/06 17:07:41 (14 years ago)
Author:
domlowe
Message:

basic temporal subsetting implemented, basic spatial part done

File:
1 edited

Legend:

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

    r875 r883  
    3535 
    3636domainref=csml.getDomainReference('solar_3') 
    37 print 'domainref: ' + str(domainref) 
     37#print 'domainref: ' + str(domainref) 
    3838domaincomp=csml.getDomainComplement('solar_3') 
    39 print 'domaincomp: ' + str(domaincomp) 
     39#print 'domaincomp: ' + str(domaincomp) 
    4040domain=csml.getDomain('solar_3') 
    41 print 'domain: ' + str(domain) 
     41#print 'domain: ' + str(domain) 
     42featureValues=csml.getDataForFeature('solar_3') 
    4243 
    43 featureValues=csml.getDataForFeature('solar_3') 
     44 
     45axisname = 'latitude' 
     46timelist = domainref['t'] 
     47#make some selection from the available times: 
     48timeSelection = timelist.split()[:2] 
     49#featureValues=csml.getDataForFeature('solar_3',timeSelection, latitude=(0.,10.0), longitude=(90, 100.0)) 
     50# spatialSubsetDictionary= {latitude:(0.,10.0), longitude:(90, 100.0)} 
     51featureValues=csml.getDataForFeature('solar_3',timeSelection, spatialSubsetDictionary) 
     52#featureValues=csml.getDataForFeature('solar_3',timeSelection, latitude=(0.,10.0), longitude=(90, 100.0)) 
     53print featureValues 
     54sys.exit() 
     55 
    4456print type(featureValues) 
    4557#print dir(featureValues) 
    4658#print featureValues 
     59 
    4760#print 'Feature rangeSet:' +str(featureValues) 
    48 sys.exit() 
     61 
    4962 
    5063#get gml description (long name) of feature 
Note: See TracChangeset for help on using the changeset viewer.