gdal.color_relief

Apply a color ramp to a raster.

  • Kind: standard
  • Network: no
  • Wraps: gdaldem color-relief

Inputs🔗

NameTypeDescription
sourcefile (GeoTIFF)Input raster (typically a DEM).
color_rampfileGDAL color text file. Each line is "<value> R G B [A]" with values matching the source's band values.

Outputs🔗

NameTypeDescription
rasterfile (GeoTIFF)3- or 4-band RGB(A) raster.