Ignore:
Timestamp:
02/06/06 16:52:45 (14 years ago)
Author:
domlowe
Message:

time and calendar working in netcdf output. Time subsetting by min/max or explicit values. Ready for attempt at data extractor integration.

File:
1 edited

Legend:

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

    r1042 r1086  
    2121#get the domain of the feature 
    2222print '\n The feature has domain reference:'  
    23 print feature.getDomainReference() 
     23#print feature.getDomainReference() 
    2424 
    2525#get the domain complement of the feature 
     
    2929#get combined domain 
    3030print '\n The feature has domain:'  
    31 print feature.getDomain() 
     31#print feature.getDomain() 
    3232 
    3333#get list of allowed subsettings 
     
    3737 
    3838#define a selection (based on the domain ref/complement) 
    39 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'] 
     39#timeSelection=['2881-3-16T0:0:0.0', '2881-4-16T0:0:0.0', '2881-5-16T0:0:0.0', '2881-6-16T0:0:0.0', '2881-7-16T0:0:0.0', '2881-8-16T0:0:0.0', '2881-9-16T0:0:0.0'] 
     40timeSelection=['2881-3-16T0:0:0.0', '2881-9-16T0:0:0.0'] 
    4041spatialSubsetDictionary= {} 
    41 spatialSubsetDictionary['latitude']=(0.,10.0) 
     42spatialSubsetDictionary['latitude']=(0.,30.0) 
    4243spatialSubsetDictionary['longitude']=(90, 120.0) 
    4344 
    4445#request subsetted data from feature 
    45 subsetCSML, subsetNetCDF=feature.subsetToGridSeries(timeSelection, **spatialSubsetDictionary) 
     46subsetCSML, subsetNetCDF, arraySize=feature.subsetToGridSeries(timeSelection, **spatialSubsetDictionary) 
    4647 
    4748print subsetCSML #csml document (string) 
    4849print subsetNetCDF # netcdf file (file) 
     50print 'arraySize: %s' %arraySize 
Note: See TracChangeset for help on using the changeset viewer.