[Geotiff] Geotiff List: Tool to convert 8-bit gray to RGBA using a custom color table?
Chris 'Xenon' Hanson
xenon at 3dnature.com
Sun Feb 15 13:04:49 EST 2009
Jeff Bullard wrote:
> GeoTIFF list,
> I have weather data that is represented as an 8-bit GeoTIFF with one
> band (grayscale). I would like to use a color table to convert into
> RGBA for map display.
> Are there any existing tools to do this? I use a linux platform with
> FWTools for most of my work.
> Previously I used Mapserver and a mapfile to render single-band raster
> into a color map. Now I'm trying Google Earth API to display the same
> maps. I'm new at KML and have found no way to use KML to do simple
> color mapping that my current mapfiles perform, which is to render the
> grayscale into 6 shades of blue. I'm hoping to use some GDAL utility to
> convert the grayscale GeoTIFFs into RGBA using a color table stored in a
> file. I haven't found a way to do it.
> My other alternative is to write some code in C using libtiff and/or
> libpng to perform the color operations. Before I get into that I want
> to ask the list f there is a simple way to do it using existing tools.
I don't think KML can do it. You might be able to do it with a combination of netpbm
(which I think can colorize a greyscale) and fwtools (to capture the metadata before
netpbm and reinsert it afterward).
> Thanks,
> Jeff Bullard
--
Chris 'Xenon' Hanson | Xenon @ 3D Nature | http://www.3DNature.com/
"I set the wheels in motion, turn up all the machines, activate the programs,
and run behind the scenes. I set the clouds in motion, turn up light and sound,
activate the window, and watch the world go 'round." -Prime Mover, Rush.
More information about the Geotiff
mailing list