I'm looking to convert a unsigned integer grid to a short integer grid for use in TauDEM. The unsigned integer grid has values ranging from 0 - 4.
TauDEM uses three grid data types internally. These are
- FLOAT_TYPE, corresponding to GDAL GDT_Float32
- SHORT_TYPE, corresponding to GDAL GDT_Int16
- LONG_TYPE, corresponding to GDAL GDT_Int32
It uses the method
GDALRasterIO to read from whatever grid the user provides into the type that corresponds to the variable being used. According to http://www.gdal.org/gdal_tutorial.html this method automatically takes care of data type conversions (which is why it was chosen). So you should not need to convert an unsigned integer grid into a short integer grid to use in TauDEM.