[GRASS-dev] Re: export question

Hamish hamish_b at yahoo.com
Fri Sep 9 21:39:59 EDT 2011


sarthakahuja wrote:
> thanks a lot, do you know how to get
> their red, green, blue values (0-255)

for the basic palette, try the r.colors.out in newer versions of
GRASS.


or create 3 new maps with r.mapcalc's # operator, then r.out.xyz
for those:

r.mapcalc map.red = r#map
r.mapcalc map.green = g#map
r.mapcalc map.blue = b#map


Hamish



More information about the grass-dev mailing list