Changeset 2764 for TI02-CSML


Ignore:
Timestamp:
03/08/07 14:36:36 (12 years ago)
Author:
domlowe
Message:

making copy of trajectoryDomain allow for reuse in multiple subsets

File:
1 edited

Legend:

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

    r2761 r2764  
    33import csml, cdms, MV 
    44import sys 
     5import copy 
    56 
    67def testmethod(self): 
     
    3435            self.domain[name]=valList     
    3536    return self.domain     
    36                  
    37      
    38                  
     37 
    3938    
    40 def subsetToTrajectory(self, outputdir=None, ncname='trajectory.nc' ,times=None): 
     39def subsetToTrajectory(self, outputdir=None, ncname='trajectory.nc' ,times=None, **kwargs): 
    4140    ''' subsetting a trajectory feature by time ''' 
    4241     
     
    6261         
    6362    #repurpose the existing trajectoryDomain for the output csml. 
    64     td=self.value.trajectoryDomain                          
     63    td=copy.deepcopy(self.value.trajectoryDomain) 
     64 
    6565       
    6666    #get the requested times, and also max/min index values, needed to get the corresponding spatial axes   
Note: See TracChangeset for help on using the changeset viewer.