Ignore:
Timestamp:
26/05/06 17:23:06 (14 years ago)
Author:
domlowe
Message:

subsetToGridSeries part working

File:
1 edited

Legend:

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

    r1040 r1042  
    3030print '\n The feature has domain:'  
    3131print feature.getDomain() 
     32 
     33#get list of allowed subsettings 
     34print '\n the following feature subsetting operations are allowed:' 
     35print feature.getAllowedSubsettings() 
     36 
     37 
     38#define a selection (based on the domain ref/complement) 
     39timeSelection=['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'] 
     40spatialSubsetDictionary= {} 
     41spatialSubsetDictionary['latitude']=(0.,10.0) 
     42spatialSubsetDictionary['longitude']=(90, 120.0) 
     43 
     44#request subsetted data from feature 
     45subsetCSML, subsetNetCDF=feature.subsetToGridSeries(timeSelection, **spatialSubsetDictionary) 
     46 
     47print subsetCSML #csml document (string) 
     48print subsetNetCDF # netcdf file (file) 
Note: See TracChangeset for help on using the changeset viewer.