Ignore:
Timestamp:
19/03/07 14:22:55 (13 years ago)
Author:
domlowe
Message:

subset grid series to profile method added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/API/ops_GridSeriesFeature.py

    r2288 r2294  
    187187     
    188188    return subsettedFeature, pathToSubsetNetCDF 
    189      
    190      
     189 
     190def subsetToProfile(self, csmlpath=None, ncpath=None,**kwargs): 
     191    #Two step process - subset GridSeries to ProfileSeries, then ProfileSeries to Profile 
     192    profileSeries, pSfile=self.subsetToProfileSeries(csmlpath=csmlpath, ncpath=ncpath, **kwargs)    
     193    del kwargs['latitude']    #TODO - need to remove excess kwargs based on the domain of the temporary profileSeries feature 
     194    del kwargs['longitude'] 
     195    subsettedFeature, pathToSubsetNetCDF=profileSeries.subsetToProfile(csmlpath=csmlpath, ncpath=ncpath, **kwargs)     
     196    return subsettedFeature, pathToSubsetNetCDF 
Note: See TracChangeset for help on using the changeset viewer.