Ignore:
Timestamp:
19/11/09 16:32:39 (10 years ago)
Author:
pnorton
Message:

Fixed the legend code so that it won't try and set the colour bar maximum as infinity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows/trunk/cows/service/imps/data_reader_geoplot_backend/data_reader_geoplot_wms_layer.py

    r5945 r6028  
    99import time 
    1010import os 
     11import numpy 
    1112 
    1213from cows.service.imps.csmlbackend.config import config 
     
    263264        if maxval == None: 
    264265            maxval = variable.max() 
    265          
     266            if maxval == numpy.inf: 
     267                maxval = numpy.ma.masked_equal(variable, numpy.inf).max() 
    266268         
    267269        log.debug("parser.getOption('intervals') = %s" % (parser.getOption('intervals'),)) 
Note: See TracChangeset for help on using the changeset viewer.