Ignore:
Timestamp:
05/04/07 14:31:07 (13 years ago)
Author:
domlowe
Message:

various fixes to subsetting output

File:
1 edited

Legend:

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

    r2362 r2385  
    9090    domainSubset, totalArraySize=csml.API.genSubset.subsetDomain(timeName,strTimes,self.domain, **kwargs) 
    9191    cTT=csml.API.genSubset.getCoordTransformTable(domainSubset, crs, frame) 
     92    newdomain.id=csml.csmllibs.csmlextra.getRandomID() 
    9293    newdomain.coordTransformTable=cTT 
    9394    newdomain.srsName=self.value.gridSeriesDomain.srsName   
    9495    newdomain.axisLabels=self.value.gridSeriesDomain.axisLabels 
    9596    newdomain.srsDimension=self.value.gridSeriesDomain.srsDimension 
     97    newdomain.dimension=self.value.gridSeriesDomain.dimension 
     98    env=csml.parser.GridEnvelope() 
     99    env.low=csml.parser.csString('0 0 0') #TODO 
     100    env.high=csml.parser.csString('0 0 0') 
     101    newdomain.limits=env 
     102    newdomain.aLabels=self.value.gridSeriesDomain.aLabels 
    96103    rangeSet=csml.parser.RangeSet() 
    97     rangeSet.arrayDescriptor=csml.parser.NetCDFExtract(id=self.id,fileName=csml.parser.csString(pathToSubsetNetCDF),variableName=csml.parser.csString(self.id),arraySize=csml.parser.csString(totalArraySize)) 
     104    rangeSet.arrayDescriptor=csml.parser.NetCDFExtract(id=csml.csmllibs.csmlextra.getRandomID(),fileName=csml.parser.csString(pathToSubsetNetCDF),variableName=csml.parser.csString(self.id),arraySize=csml.parser.csString(totalArraySize)) 
    98105     
    99106    #gridseries coverage 
    100107    cvg=csml.parser.GridSeriesCoverage() 
     108    cvg.id=csml.csmllibs.csmlextra.getRandomID() 
    101109    cvg.rangeSet=rangeSet 
    102110    cvg.gridSeriesDomain=newdomain     
Note: See TracChangeset for help on using the changeset viewer.