Gdaldem color-relief gives uniform-colored GeoTIFF

Geographic Information Systems Asked by interwebjill on October 9, 2020

I have generated a GeoTIFF from grib temperature data in greyscale using:

gdal_translate -of GTiff -a_srs EPSG:4326 -b 28 2019-07-21-120000.grib2 output.temperature.tiff

This is a 32bit floating point image. I also tried using:

gdal_translate -of GTiff -ot Byte -a_srs EPSG:4326 -b 28 2019-07-21-120000.grib2 output.temperature2.tiff

which outputs an 8bit image. I am trying to use:

gdaldem color-relief input.tiff CET-D1A.csv output.tiff

to get a color visualization of the temperature values, which has values ranging between 220 and 320 Kelvin. The color table csv has lines like this:


Here is a screenshot of the data in Panoply:

enter image description here

and here is the result of the above gdal command on this data (in reduced dimensions to work in StackExchange). Both the 32bit and 8bit GeoTIFFs gave the same uniform blue GeoTiff.

enter image description here

What might I be doing wrong here? Incidentally, I would love to preserve the 32bit depth if possible.

Add your own answers!

Related Questions

Wrong projection of raster using R

1  Asked on June 1, 2021


How to open a GMLAS layer in Fiona or GeoPandas

1  Asked on June 1, 2021 by ordens-ritter


Remove LayoutItemLegend entry PyQGIS

2  Asked on June 1, 2021 by mathys-wohl


Zonal Statistics in QGIS 3.16

0  Asked on May 31, 2021 by harry-young


How to use colors to distinguish between bordering features in QGIS?

1  Asked on May 31, 2021 by earlyinthemorning


Subselecting features in QGIS

2  Asked on May 31, 2021 by adrian_drosera


Navigator thumbnail panel in QGIS

2  Asked on May 31, 2021


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP