Ignore:
Timestamp:
27/02/07 10:01:27 (13 years ago)
Author:
domlowe
Message:

location attribute now working in subsetToProfileSeries

File:
1 edited

Legend:

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

    r2210 r2211  
    137137    param = self.parameter 
    138138     
     139    #create 'location' attribute: 
     140    latName=crs.axes[crs.latAxis] 
     141    lonName=crs.axes[crs.lonAxis] 
     142    if (latName, lonName) is not (None, None): 
     143        locStr ='%s %s'%(kwargs[latName], kwargs[lonName]) 
     144        loc=csml.parser.csString(locStr) 
     145    else: 
     146        loc = csml.parser.csString('unknown location') 
     147        
     148     
    139149    #create a stand alone gridseries feature containing this coverage 
    140     subsettedFeature=csmlWrap.createProfileSeriesFeature(value=cvg,parameter=param, featureID=self.id,description=self.description) 
     150    subsettedFeature=csmlWrap.createProfileSeriesFeature(value=cvg,parameter=param, location=loc, featureID=self.id,description=self.description) 
    141151  
    142152     
Note: See TracChangeset for help on using the changeset viewer.