Ignore:
Timestamp:
05/05/06 14:53:19 (14 years ago)
Author:
domlowe
Message:

spatial temporal selection on any axis implemented (for netcdf)

File:
1 edited

Legend:

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

    r883 r888  
    4040domain=csml.getDomain('solar_3') 
    4141#print 'domain: ' + str(domain) 
    42 featureValues=csml.getDataForFeature('solar_3') 
     42#featureValues=csml.getDataForFeature('solar_3', None) 
    4343 
    4444 
    45 axisname = 'latitude' 
    4645timelist = domainref['t'] 
    4746#make some selection from the available times: 
    4847timeSelection = timelist.split()[:2] 
    4948#featureValues=csml.getDataForFeature('solar_3',timeSelection, latitude=(0.,10.0), longitude=(90, 100.0)) 
    50 # spatialSubsetDictionary= {latitude:(0.,10.0), longitude:(90, 100.0)} 
    51 featureValues=csml.getDataForFeature('solar_3',timeSelection, spatialSubsetDictionary) 
     49spatialSubsetDictionary= {} 
     50spatialSubsetDictionary['latitude']=(0.,10.0) 
     51spatialSubsetDictionary['longitude']=(90, 100.0) 
     52 
     53featureValues=csml.getDataForFeature('solar_3', timeSelection, **spatialSubsetDictionary) 
     54 
     55#same as: 
    5256#featureValues=csml.getDataForFeature('solar_3',timeSelection, latitude=(0.,10.0), longitude=(90, 100.0)) 
    5357print featureValues 
Note: See TracChangeset for help on using the changeset viewer.