gdal.translate

Convert raster format, subset, scale, or resize using gdal_translate.

  • Kind: standard
  • Network: no
  • Wraps: gdal_translate

Inputs🔗

NameTypeDescription
sourcefile (GeoTIFF)Input raster.
output_formatstringGDAL output driver short name (default GTiff). Other common values: COG, VRT, HFA, NetCDF.
output_typestringOutput data type (Byte, UInt16, Int16, UInt32, Int32, Float32, Float64, CInt16, CInt32, CFloat32, CFloat64). Empty = preserve source.
widthnumberOutput width in pixels. 0 = preserve source width.
heightnumberOutput height in pixels. 0 = preserve source height.
scale_minnumberSource minimum for linear rescaling. Leave unset to skip rescaling.
scale_maxnumberSource maximum for linear rescaling. Leave unset to skip rescaling.

Outputs🔗

NameTypeDescription
rasterfile (GeoTIFF)Translated raster.