Ignore:
Timestamp:
03/12/07 15:10:24 (12 years ago)
Author:
domlowe
Message:

subsetting of profileseries, pointseries retested and fixed

File:
1 edited

Legend:

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

    r3068 r3096  
    318318def subsetToProfile(self, outputdir = None, ncname='profile.nc',**kwargs): 
    319319    #Two step process - subset GridSeries to ProfileSeries, then ProfileSeries to Profile 
    320     profileSeries, pSfile=self.subsetToProfileSeries(outputdir, ncname, **kwargs)    
     320    odir=outputdir 
     321    profileSeries, pSfile, descriptor=self.subsetToProfileSeries(odir, ncname, **kwargs)    
    321322    del kwargs['latitude']    #TODO - need to remove excess kwargs based on the domain of the temporary profileSeries feature 
    322323    del kwargs['longitude'] 
    323     subsettedFeature, pathToSubsetNetCDF=profileSeries.subsetToProfile(ouputdir,ncname, **kwargs)     
    324     return subsettedFeature, pathToSubsetNetCDF 
     324    subsettedFeature, pathToSubsetNetCDF, descriptor =profileSeries.subsetToProfile(odir,ncname, **kwargs)     
     325    return subsettedFeature, pathToSubsetNetCDF, descriptor 
    325326 
    326327def subsetToPointSeries(self, outputdir =None, ncname='pointseries.nc',**kwargs): 
    327328    #Two step process - subset GridSeries to ProfileSeries, then ProfileSeries to PointSeries 
    328     profileSeries, pSfile=self.subsetToProfileSeries(outputdir, ncname, **kwargs)    
     329    profileSeries, pSfile, descriptor =self.subsetToProfileSeries(outputdir, ncname, **kwargs)    
    329330    del kwargs['latitude']    #TODO - need to remove excess kwargs based on the domain of the temporary profileSeries feature 
    330331    del kwargs['longitude'] 
    331     subsettedFeature, pathToSubsetNetCDF=profileSeries.subsetToPointSeries(outputdir, ncname, **kwargs)     
    332     return subsettedFeature, pathToSubsetNetCDF 
     332    subsettedFeature, pathToSubsetNetCDF, descriptor=profileSeries.subsetToPointSeries(outputdir, ncname, **kwargs)     
     333    return subsettedFeature, pathToSubsetNetCDF, descriptor 
Note: See TracChangeset for help on using the changeset viewer.