Changeset 2393 for TI02-CSML


Ignore:
Timestamp:
11/04/07 09:15:45 (12 years ago)
Author:
domlowe
Message:

merging changes to ops_Gridseriesfeature

File:
1 edited

Legend:

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

    r2389 r2393  
    168168    
    169169     
    170      
     170    #determine the NEW crs (should be 2d e.g. height/time)TODO 
     171    #axes=[] 
     172    #units=[] 
     173    #for ord in newGridOrds: 
     174        #axes.append(ord.coordAxisLabel) 
     175        #units.append(ord. 
     176     
     177    #sys.exit() 
    171178    newdomain.coordTransformTable=cTT     
     179    newdomain.id=csml.csmllibs.csmlextra.getRandomID() 
    172180    #TODO need to remove 'location' from this srs 
    173181    newdomain.srsName=self.value.gridSeriesDomain.srsName   
    174182    newdomain.axisLabels=self.value.gridSeriesDomain.axisLabels 
    175183    newdomain.srsDimension=self.value.gridSeriesDomain.srsDimension 
     184    newdomain.dimension=2 
    176185    rangeSet=csml.parser.RangeSet() 
     186    descriptor=csml.parser.NetCDFExtract(id=self.id,fileName=csml.parser.csString(pathToSubsetNetCDF),variableName=csml.parser.csString(self.id),arraySize=csml.parser.csString(totalArraySize)) 
    177187    rangeSet.arrayDescriptor=csml.parser.NetCDFExtract(id=self.id,fileName=csml.parser.csString(pathToSubsetNetCDF),variableName=csml.parser.csString(self.id),arraySize=csml.parser.csString(totalArraySize)) 
    178188     
    179189    #gridseries coverage 
    180190    cvg=csml.parser.ProfileSeriesCoverage() 
     191    cvg.id=csml.csmllibs.csmlextra.getRandomID() 
    181192    cvg.rangeSet=rangeSet 
    182193    cvg.profileSeriesDomain=newdomain     
     
    210221    nc.closeFinishedFile() 
    211222     
    212     return subsettedFeature, pathToSubsetNetCDF 
     223    return subsettedFeature, pathToSubsetNetCDF, descriptor 
    213224 
    214225def subsetToProfile(self, csmlpath=None, ncpath=None,**kwargs): 
Note: See TracChangeset for help on using the changeset viewer.