GDAL-RASTER-SET-TYPE(1) GDAL GDAL-RASTER-SET-TYPE(1) (NAME) gdal-raster-set-type - 3.11. (SYNOPSIS) Usage: gdal raster set-type [OPTIONS] Modify the data type of bands of a raster dataset. Positional arguments: -i, --input Input raster datasets [required] [not available in pipelines] -o, --output Output raster dataset [required] [not available in pipelines] Common Options: -h, --help Display help message and exit --json-usage Display usage as JSON document and exit --config = Configuration option [may be repeated] -q, --quiet Quiet mode (no progress bar or warning message) [not available in pipelines] Options: -f, --of, --format, --output-format Output format ("GDALG" allowed) [not available in pipelines] --co, --creation-option = Creation option [may be repeated] [not available in pipelines] --overwrite Whether overwriting existing output dataset is allowed [not available in pipelines] Mutually exclusive with --append --append Append as a subdataset to existing output [not available in pipelines] Mutually exclusive with --overwrite --ot, --datatype, --output-data-type Output data type. OUTPUT-DATA-TYPE=UInt8|Int8|UInt16|Int16|UInt32|Int32|UInt64|Int64|CInt16|CInt32|Float16|Float32|Float64|CFloat32|CFloat64 [required] Advanced Options: --if, --input-format Input formats [may be repeated] [not available in pipelines] --oo, --open-option = Open options [may be repeated] [not available in pipelines] (DESCRIPTION) gdal raster set-type . "" (truncate) . gdal raster pipeline . GDALG ( / ) JSON GDALG . GDALG: GDAL Streamed Algorithm (on-the-fly) / . (PROGRAM-SPECIFIC OPTIONS) --ot, --datatype, --output-data-type Byte, Int8, UInt16, Int16, UInt32, Int32, UInt64, Int64, CInt16, CInt32, Float32, Float64, CFloat32, CFloat64. (STANDARD OPTIONS) --co, --creation-option = . GeoTIFF (tiled) . . . --formats . Raster drivers . -f, --of, --format, --output-format . : gdal --formats | grep raster | grep rw | sort --overwrite . gdal . (RETURN STATUS CODE) 0 ( ). (EXAMPLES) : Float32 $ gdal raster set-type --datatype Float32 byte.tif float32.tif --overwrite (AUTHOR) Even Rouault (COPYRIGHT) 1998-2026 August 18, 2026 GDAL-RASTER-SET-TYPE(1)