Changeset 17657


Ignore:
Timestamp:
04/06/14 19:09:13 (11 years ago)
Author:
cborstad
Message:

BUG: ensure result of max is a float

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/plot/plot_overlay.py

    r17656 r17657  
    6161
    6262        # normalize array
    63         arr=arr/npy.max(arr.ravel())
     63        arr=arr/npy.float(npy.max(arr.ravel()))
    6464
    6565        # get parameters from cropped geotiff
     
    8686                handle=plt.gca()
    8787       
    88         # for single band geotiffs
    8988        overlaylims=options.getfieldvalue('overlaylims',[min(arr.ravel()),max(arr.ravel())])
    9089
Note: See TracChangeset for help on using the changeset viewer.