Ignore:
Timestamp:
27/05/08 16:58:20 (11 years ago)
Author:
domlowe
Message:

intercept the missing values and make sure they don't interfere with valid max/mins for colourmapping

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/branches/ows_framework-refactor/ows_common/ows_common/service/imps/wms_csmllayer.py

    r3915 r3954  
    350350        v=self._netcdf(layer.title) 
    351351        tvar=v(squeeze=1) 
    352         #array of data 
     352        #get the min and max values to use for the colourmapping. 
     353        #change the fill values to ensure they aren't picked up as false max/mins. 
     354        tvar.missing_value=999999999 
    353355        value=tvar.getValue() 
    354356        self.minval=min(min(l) for l in value) 
     357        tvar.missing_value=-0.000000001 
     358        value=tvar.getValue() 
    355359        self.maxval=max(max(l) for l in value) 
    356          
     360 
    357361         
    358362    def getImage(self, bbox, width, height): 
Note: See TracChangeset for help on using the changeset viewer.