Ignore:
Timestamp:
19/11/07 13:49:00 (12 years ago)
Author:
domlowe
Message:

pointseries subsetting workign in WCS, ragged section part working

File:
1 edited

Legend:

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

    r3013 r3022  
    2222 
    2323    return self.domain     
     24    
     25def getLongitudeAxis(self): 
     26    return 'longitude' #dummy value not used, subsetting is by time only 
    2427 
     28def getLatitudeAxis(self): 
     29    return 'latitude' #dummy value not used,  subsetting is by time only 
    2530 
     31def getTimeAxis(self): 
     32    return 'times' 
    2633     
    2734def subsetToPointSeries(self, outputdir=None, ncname='pointseries.nc' ,times=None): 
     
    7380     
    7481    fileList=[] 
    75     for f in self.value.rangeSet.arrayDescriptor.components.fileList.fileNames.CONTENT.split(): 
     82    if hasattr(self.value.rangeSet, 'valueArray'): 
     83        fextract=self.value.rangeSet.valueArray.valueComponent.insertedExtract.components 
     84        uom = self.value.rangeSet.valueArray.valueComponent.insertedExtract.uom 
     85    else: 
     86        fextract=self.value.rangeSet.arrayDescriptor.components 
     87        uom = self.value.rangeSet.arrayDescriptor.uom 
     88    for f in fextract.fileList.fileNames.CONTENT.split(): 
    7689        fileList.append(f) 
    7790     
    78     fextract=self.value.rangeSet.arrayDescriptor.components 
    79     uom = self.value.rangeSet.arrayDescriptor.uom 
    8091    data, fillvalue=fextract.getDataFromChunks(minIndex, maxIndex) 
    8192     
Note: See TracChangeset for help on using the changeset viewer.