Changeset 2984


Ignore:
Timestamp:
05/11/07 15:00:19 (12 years ago)
Author:
spascoe
Message:

Partially fixes colourmaps in the WMS. Each timestep will have it's own
colourmap optimised to that slice's min/max value. This may not be what
we want but is by far the easiest to implement.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/csml_wms.py

    r2881 r2984  
    183183        var = extractCache[feature, sel] 
    184184 
     185        # Deduce min and max 
     186        #!TODO: How do we get the min/max?  This method produces different min/max for each time selection. 
     187        varmin = MA.minimum(var, None) 
     188        varmax = MA.maximum(var, None) 
     189        #varmin=0; varmax=100 
     190 
    185191        # Do geographical subsetting in cdms 
    186192        var = var(latitude=(bbox[1], bbox[3]), longitude=(bbox[0], bbox[2]), squeeze=1) 
    187  
    188         # Deduce min and max 
    189         #!TODO: How do we get the min/max? 
    190         #varmin = MA.minimum(var, None) 
    191         #varmax = MA.maximum(var, None) 
    192         varmin=0; varmax=100 
    193193 
    194194        # Render variable to a PIL image 
Note: See TracChangeset for help on using the changeset viewer.