[GRASS-user] Re: [GRASSLIST:1184] how to keep same color table for a bunch of rasters?

Markus Neteler neteler at itc.it
Wed Sep 6 10:10:40 EDT 2006


Vishal Mehta wrote on 09/06/2006 03:19 PM:
> HI all,
>
> I am wondering how to maintain the same colors for display of many
> rasters. More specifically, i have some100 rainfall maps, and want to
> make sure that the colors used for display are the same for each. They
> are at present automically scaling using some green-yellow-red ramp
> between the range of data for each map. If i make a movie of the 100
> maps, it does not do a good job because the color scales and legend
> changes each time...i want both the colors and legend to be same for all..
>
> thanks,
Hi vishal,

that's very easy: use the rast= parameter of r.colors to copy over a
color table
from another raster map. So you define the colors for one map, then copy
it to
all other maps.

Markus

PS: Please use the GRASS user list <grassuser at grass.itc.it> list instead of
the old grasslist at baylor.edu address




More information about the grass-user mailing list