[GRASS-user] r.colors rules

Hamish hamish_b at yahoo.com
Wed Dec 10 21:23:52 EST 2008


Alberto wrote:
> > <pre>What I would like to do is something like this:
> > 
> > <-4   255:255:255
> > -4    0:0:0
> > -3    1:1:1
> > -2    2:2:2
> > -1    3:3:3
> >  0    4:4:4
> > >0    255:255:255

Hamish:
> Do it like:
>  0%    255:255:255
>  -4    0:0:0
>  -3    1:1:1
>  -2    2:2:2
>  -1    3:3:3
>   0    4:4:4
> 100%   255:255:255

sorry, that's not quite right. better:

  0%    255:255:255
  -4    255:255:255
  -4    0:0:0
  -3    1:1:1
  -2    2:2:2
  -1    3:3:3
   0    4:4:4
   0    255:255:255
 100%   255:255:255


or create a MASK allowing -4 to 0.
or in newer GRASSes do "d.rast catlist=-4-0"


Hamish



      



More information about the grass-user mailing list