[GRASS-user] exporting single banded float raster to true color geotiff (i.e. 3 Byte bands with color interpretation)

Hamish hamish_b at yahoo.com
Fri Sep 16 20:59:20 EDT 2011

Giovanni wrote:
> The question is the object :)I have a Float raster which GRASS 
> displays with a certain color table (I haven't set it...
> PS: what table is used by default?). What's the most effective
> way to export the raster into a true color Geotiff (as a 3 Byte
> bands with color interpretation) using a certain color table?

I believe that r.out.tiff will export using colors, not data.
Add the -t flag to get a world file & so make it a geotiff.

In GRASS 6.4 the d.out.file module is another option, set the
size= parameter to the number of rows and columns, and select

The default color table is "rainbow", see the r.colors help page
for details.


More information about the grass-user mailing list