[GRASS-user] r.colors rules

ok guys,

I have set a rule for r.colors such as:

-4 0:0:0
-3 1:1:1
-2 2:2:2
-1 3:3:3
0 4:4:4

but how can I set the rule for values less than -4 and greater than 0??

thank you as usual,

···

Alberto Pettazzi

MeteoGalicia - Departamento de Climatología y Observación

Consellería de Medio Ambiente e Desenvolvemento Sostible

Área Central, Local: L-31-C. Polígono de Fontiñas

15703 Santiago de Compostela. A Coruña

Teléfono: +34-981-957463

e-mail: alberto.pettazzi@meteogalicia.es

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

I tried to do this way, but it doesn't seem to  be the right way

thank you again

Daniel Victoria escribió:

···

Alberto Pettazzi

MeteoGalicia - Departamento de Climatología y Observación

Consellería de Medio Ambiente e Desenvolvemento Sostible

Área Central, Local: L-31-C. Polígono de Fontiñas

15703 Santiago de Compostela. A Coruña

Teléfono: +34-981-957463

e-mail: alberto.pettazzi@meteogalicia.es

I don't think I understand your problem very well. To set color rules
for any value, all you have to do is write them on your rule. It does
not matter if the values on your color rules goes above or bellow the
values on the map.

Daniel

2008/12/10 Alberto Pettazzi [<alberto.pettazzi@meteogalicia.es>](mailto:alberto.pettazzi@meteogalicia.es):
  
ok guys,

I have set a rule for r.colors such as:

-4    0:0:0
-3    1:1:1
-2    2:2:2
-1    3:3:3
 0    4:4:4

but how can I set the rule for values less than -4 and greater than 0??

thank you as usual,

Alberto Pettazzi

MeteoGalicia - Departamento de Climatología y Observación

Consellería de Medio Ambiente e Desenvolvemento Sostible

Área Central, Local: L-31-C. Polígono de Fontiñas

15703 Santiago de Compostela. A Coruña

Teléfono: +34-981-957463

e-mail: [alberto.pettazzi@meteogalicia.es](mailto:alberto.pettazzi@meteogalicia.es)

_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[http://lists.osgeo.org/mailman/listinfo/grass-user](http://lists.osgeo.org/mailman/listinfo/grass-user)

    

  

Alberto Pettazzi wrote:

<div id=yiv711952157><!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  
  <title></title>
</head>

<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

I tried to do this way, but it doesn't seem to be the
right way

thank you again
</pre>
<div class="moz-signature">

<title></title>
[...]

[a lot of html crap removed; please post in plain text!]

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

see the r.colors help page for more details.

Hamish

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