[GRASSLIST:3049] Re: Getting the color right with GeoTIFF files.
glynn.clements at virgin.net
Wed Jan 30 12:14:59 EST 2002
Ben Logan wrote:
> Running the windoze version of the MrSID viewer under Wine worked,
> I successfully imported into GRASS the GeoTIFF file (using r.in.gdal)
> exported by the MrSID viewer. However, when I view the raster map
> with d.rast, the colors are not the colors from the TIF image, but
> appear to be from the rainbow color table. Is there a way to make it
> use the colors from the TIFF?
If it's a multi-channel (RGB) image, use "r.in.gdal ... band=1". That
should create 3 separate layers, for red, green and blue. You can set
the colour tables with e.g "r.colors img.1 color=grey". You can
display the layers with e.g. "d.rgb r=img.1 g=img.2 b=img.3".
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-user