gdal color tables
FYI: ---------- Forwarded message ---------- From: Even Rouault <even.rouault at mines-paris.org> Date: Sun, Dec 23, 2012 at 11:14 PM Subject: Re: [gdal-dev] write pseudocolor raster To: gdal-dev at lists.osgeo.org, Agustin.Lobo at ictja.csic.es Le dimanche 23 d?cembre 2012 14:40:59, Agustin Lobo a ?crit :
I have some 1-band raster layers that I would like to write as pseudocolor files. Is it possible to use gdal_traslate or another gdal utility to write the raster using the color palette of another file? I've seen the procedure described in http://trac.osgeo.org/gdal/wiki/FAQRaster#Howtocreateormodifyanimagecolorta ble but I would like no having to edit the vrt file manually.
You can use the following GDAL Python script : http://trac.osgeo.org/gdal/browser/trunk/gdal/swig/python/samples/attachpct.py