Changeset 3242 for TI02-CSML


Ignore:
Timestamp:
17/01/08 12:29:21 (11 years ago)
Author:
domlowe
Message:

minor fix to bounding box code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/csmllibs/csmlextra.py

    r3144 r3242  
    208208    maxval=data[len(data)-1] + halfcell                     
    209209    if axisname=='longitude': 
    210         #deal with the case where the grid point is 0, so the grid goes from -x to +x 
    211         #note this only works if the grid is 0-360 
     210        #deal with the case where the grid point is 0, so the grid goes from -x to +x e.g. -0.5 to 359.5 
    212211        if minval < 0: 
    213             if maxval - minval ==360.0: 
     212            if maxval - minval > 359.0: 
    214213                minval=0.0 
    215214                maxval=360.0 
Note: See TracChangeset for help on using the changeset viewer.