I have an hillshade tiff for which the current band type=Bytemay be problematic.
How to change the band type to type=float ?
I have an hillshade tiff for which the current band type=Bytemay be problematic.
How to change the band type to type=float ?
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"
With gdal_calc.py is, for example, --type Float32 (my answer based in your link). The next command worked for me when I used to calculate at-satellite brightness temperature:
gdal_calc.py -A b6.rad.tif --calc "1260.56/log((607.76/A)+1)" --type Float32 --outfile bright_temp.tif
I hope that helps.
type=Float32, it fails. When --calc=<equation> is more basic, it behave as expected.
– Hugolpz
May 23 '15 at 07:33