Ignore:
Timestamp:
05/06/06 12:52:57 (14 years ago)
Author:
domlowe
Message:

Can set file paths of output xml and netcdf. Added example to apicalls.py

File:
1 edited

Legend:

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

    r1086 r1093  
    1818print '\n Selecting feature with gml:id = %s' %flist[5] 
    1919feature=csml.getFeature(flist[5]) 
     20 
     21#feature 'bestname' 
     22print feature.id 
     23print feature.description 
    2024 
    2125#get the domain of the feature 
     
    4347spatialSubsetDictionary['longitude']=(90, 120.0) 
    4448 
    45 #request subsetted data from feature 
    46 subsetCSML, subsetNetCDF, arraySize=feature.subsetToGridSeries(timeSelection, **spatialSubsetDictionary) 
     49#request subsetted data from feature (can set paths here) 
     50subsetCSML, subsetNetCDF, arraySize=feature.subsetToGridSeries(timeSelection,  csmlpath='myfile.xml', ncpath='myfile.nc',**spatialSubsetDictionary) 
    4751 
    4852print subsetCSML #csml document (string) 
Note: See TracChangeset for help on using the changeset viewer.