[GIS] How to change band type

bandgdal

I have an hillshade tiff for which the current band type=Bytemay be problematic.

How to change the band type to type=float ?

Best Answer

Try:

gdal_translate -of GTiff -ot Float32 input.tif output.tif

Seems you can choose between several float types: "Byte"/"Int16"/"UInt16"/"UInt32"/"Int32"/"Float32"/"Float64"/"CInt16"/"CInt32"/"CFloat32"/"CFloat64"

Related Question