Changeset 2294
- Timestamp:
- 19/03/07 14:22:55 (14 years ago)
- Location:
- TI02-CSML/trunk/csml/API
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TI02-CSML/trunk/csml/API/__init__.py
r2224 r2294 51 51 52 52 ##GridSeriesFeature methods: 53 addMethods(csml.parser.GridSeriesFeature,[ops_GridFeature.testmethod,ops_GridSeriesFeature.getDomain,ops_GridSeriesFeature.subsetToGridSeries, ops_GridSeriesFeature.getUom, ops_GridSeriesFeature._subsetGrid,ops_GridSeriesFeature.subsetToProfileSeries ])53 addMethods(csml.parser.GridSeriesFeature,[ops_GridFeature.testmethod,ops_GridSeriesFeature.getDomain,ops_GridSeriesFeature.subsetToGridSeries, ops_GridSeriesFeature.getUom, ops_GridSeriesFeature._subsetGrid,ops_GridSeriesFeature.subsetToProfileSeries, ops_GridSeriesFeature.subsetToProfile]) 54 54 55 55 ##TrajectoryFeature methods: -
TI02-CSML/trunk/csml/API/ops_GridSeriesFeature.py
r2288 r2294 187 187 188 188 return subsettedFeature, pathToSubsetNetCDF 189 190 189 190 def 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.