Ignore:
Timestamp:
11/12/09 13:46:27 (11 years ago)
Author:
pnorton
Message:

Fixed a bug that occurs when a completely masked dataset is selected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qesdi/geoplot/trunk/lib/geoplot/grid_builder_lat_lon_subset.py

    r6029 r6104  
    5757        varMin, varMax = self._getVarMinAndMax() 
    5858         
    59         infValueFound = False 
    60          
    61         if varMax == N.inf: 
    62             infValueFound = True 
    63             varMax =  self._maskInfValsInVar(self.cdmsVar).max() 
     59        infValueFound, varMax = self._checkVarMaxForInf(varMax) 
    6460 
    6561        reducedVar = self._getResizedVar(xLimits, yLimits) 
     
    9995         
    10096        if infValueFound: 
     97            # if there was an inf value found in the full variable 
     98            # there may be one in the reduced one, so mask any found 
    10199            gridValues = self._maskInfValsInVar(gridValues) 
    102100 
Note: See TracChangeset for help on using the changeset viewer.