Tengo un archivo GeoTIFF de 1 banda. La interpretación del color para la banda es gris. Quiero una tabla de colores con el fin de transformar mi Col.tiffa Col.jpego Col.png.
Intenté poner una tabla de colores en este tiff a través de un .vrt:
gdal_translate -of VRT Col.tiff Col.vrt
luego agregando en el .vrt:
<ColorInterp>Palette</ColorInterp>
<ColorTable>
<Entry c1="0" c2="0" c3="255" c4="240"/>
<Entry c1="0" c2="0" c3="254" c4="240"/>
<Entry c1="0" c2="0" c3="253" c4="240"/>
<Entry c1="0" c2="0" c3="252" c4="240"/>
</ColorTable>
Y traducir de nuevo:
gdal_translate Col.vrt Col.tiff
Pero respondió:
Warning 1: Unable to export color table to GeoTIFF file. Color tables can only be written to 1 band or 2 bands Byte or UInt16 GeoTIFF files.
¿Cómo puedo hacerlo?
Para información, hay gdalinfo para la banda:
Band 1 Block=55x18 Type=Float64, ColorInterp=Gray
Description = Something
Metadata:
GRIB_COMMENT=Something[p]
GRIB_ELEMENT=TMP
GRIB_FORECAST_SECONDS=0 sec
GRIB_REF_TIME=1401926400 sec UTC
GRIB_SHORT_NAME=SMTHG
GRIB_UNIT=[p]
GRIB_VALID_TIME=1401926400 sec UTC
gdal
gdal-translate
colortable
Faquarl
fuente
fuente

Respuestas:
con gdal, puede colorear una imagen basada en gdal_dem ( color_relief )
fuente