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/API/ops_GridSeriesFeature.py

    r1086 r1093  
    5050         
    5151 
    52 def subsetToGridSeries(self, timeSubset,  **kwargs): 
    53     pathToSubsetCSML = 'temp.xml' 
    54     pathToSubsetNetCDF='temp.nc' 
     52def subsetToGridSeries(self, timeSubset,  csmlpath=None, ncpath=None,**kwargs): 
     53    if csmlpath is not None: 
     54        pathToSubsetCSML = csmlpath 
     55    else: 
     56        pathToSubsetCSML='temp.xml' 
     57    if ncpath is not None: 
     58        pathToSubsetNetCDF=ncpath 
     59    else: 
     60        pathToSubsetCSML='temp.nc' 
     61 
    5562    domainref = getDomainReference(self)  
    5663    self.times=timeSubset 
Note: See TracChangeset for help on using the changeset viewer.