[GRASSLIST:1461] Re: Exporting TIFF images

Glynn Clements glynn.clements at virgin.net
Thu Oct 9 16:03:05 EDT 2003


M. Beth Wilkerson wrote:

> I have a raster map in GRASS 5.0.2 that was generated by importing 4 GTOPO30
> tiles.  Now I would like to output this raster map as a TIFF file with 8-bit
> color.  I tried using
> 
>     r.out.tiff -p -t -v input=rastermap output=tifmap
> 
> However, when I submit this command, I get the following error:
> 
> ERROR: Color map for palette must have less than 256 colors for the
> available range of data
> 
> Note that if I execute the same command without the "-p" option, I can
> successfully export a TIFF file with 24-bit color.
> 
> Can someone tell me how to "downsize" my number of colors so that I can
> successfully export a 8-bit color TIFF image?

	r.rescale -z input=oldmap output=newmap to=1,255

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list