Changeset 2565


Ignore:
Timestamp:
08/06/07 13:02:44 (12 years ago)
Author:
domlowe
Message:

subset to point feature working

File:
1 edited

Legend:

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

    r2562 r2565  
    1414    self.domain={} 
    1515    self.gridnames={} 
    16     print dir(self.value.pointSeriesDomain) 
    17     for val in self.value.pointSeriesDomain.timePositionList.CONTENT.split(): 
    18         print val 
    1916    for gridOrd in self.value.pointSeriesDomain.coordTransformTable.gridOrdinates: 
    2017        name=gridOrd.coordAxisLabel.CONTENT 
     
    164161    pointFeature.location=pseriesFeature.location 
    165162    pointFeature.parameter=pseriesFeature.parameter 
    166      
     163    pointFeature.description=pseriesFeature.description 
     164    cvg=csml.parser.PointCoverage() 
     165    domain=csml.parser.PointDomain() 
     166    domain.id=csml.csmllibs.csmlextra.getRandomID() 
     167    domain.pointMember=csml.parser.csString(pseriesFeature.location.CONTENT) 
     168    #create (and populate) a TimePositionList. Using keyword arguements for conciseness. 
     169    cvg.pointDomain=domain 
     170    pointFeature.value=cvg 
     171    pointFeature.time=csml.parser.csString(time) 
    167172    return pointFeature, pathToSubsetNetCDF, descriptor 
Note: See TracChangeset for help on using the changeset viewer.