Changeset 3049 for TI02-CSML


Ignore:
Timestamp:
26/11/07 11:07:13 (12 years ago)
Author:
domlowe
Message:

2 minor bugs relating to cf output

Location:
TI02-CSML/trunk/csml
Files:
3 edited

Legend:

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

    r2974 r3049  
    256256                fulldata=newfulldata 
    257257            filesFetched.append(filePos) 
    258     if hasattr(value.rangeSet, 'valueArrayl'): 
    259         units.append(value.rangeSet.valueArray.valueComponent.quantityList.uom) # final unit is that of the parameter 
     258    if hasattr(value.rangeSet, 'valueArray'): 
     259        units.append(value.rangeSet.valueArray.valueComponent.uom) # final unit is that of the parameter 
    260260    else: 
    261261        units.append ('unitsTBA') 
  • TI02-CSML/trunk/csml/API/ops_RaggedSectionFeature.py

    r3042 r3049  
    4747         
    4848 
    49 def subsetByTime(self, outputdir=None, ncname='pointseries.nc' ,times=None): 
     49def subsetByTime(self, outputdir=None, ncname='pointseries.nc' ,time=None): 
    5050    descriptors=[] 
    5151    if outputdir is not None: 
     
    6060    if self.outputdir is not None: 
    6161        csml.csmllibs.csmlextra.checkDirExists(self.outputdir) 
    62     if type(times) is str: 
    63         selection = tuple(csml.csmllibs.csmlextra.listify(times)) 
     62    if type(time) is str: 
     63        selection = tuple(csml.csmllibs.csmlextra.listify(time)) 
    6464    else: 
    65         selection = times   
     65        selection = time   
    6666    tlist=[]     
    6767    for val in self.stationTimes.CONTENT.split(): 
  • TI02-CSML/trunk/csml/csmllibs/csmlcrs.py

    r3045 r3049  
    254254                        return crs, axisorder 
    255255        if crs.units is None: 
    256             orderedunits=[] 
    257             for a in crs.axes: 
    258                 orderedunits.append(units[axisorder[a]])      
    259                 crs.units=csml.csmllibs.csmlextra.stringify(orderedunits) 
     256            if units is not None: 
     257                orderedunits=[] 
     258                for a in crs.axes: 
     259                    orderedunits.append(units[axisorder[a]]) 
     260                    crs.units=csml.csmllibs.csmlextra.stringify(orderedunits) 
    260261        return crs, axisorder 
    261262         
Note: See TracChangeset for help on using the changeset viewer.