Changeset 9335 for trunk/anuga_core


Ignore:
Timestamp:
Sep 15, 2014, 2:28:36 PM (11 years ago)
Author:
gray
Message:

Modification to handle Int32 type as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/utilities/spatialInputUtil.py

    r9333 r9335  
    686686        elif (rasterBandType == 'Byte'):
    687687            CtypeName='B'
     688        elif (rasterBandType == 'Int32'):
     689            CtypeName='i'
    688690        else:
    689             print 'unrecognized DataType:', gdal.GetDataTypeName(band.DataType)
     691            print 'unrecognized DataType:', rasterBandType
    690692            print 'You might need to edit this code to read the data type'
    691693            raise Exception, 'Stopping'
Note: See TracChangeset for help on using the changeset viewer.