[GRASSLIST:5426] how create one legend for several raster

Hello,

I'm playing a little bit with r.sun
If I alter the latitude for different regions (always the same area for better comparisons) I get different values. When I display them I get always the same color ramp, because the legend 'rainbow' analyses the values within every raster and distributes them accordingly.

So Im searching for a simple legend to compare the different raster, similar to this:

Value R|G|B

0-200 106 | 255 | 89
200-400 139 | 255 | 77
400-600 178 | 255 | 64
....
2200-2400 209 | 210 | 88

Is this possible direkt with r.colors, type. 'rules' or must I reclassify the floating raster to get single values?

Is there some place for different legends, to help people not to invent the wheel again and again?

Any hints or help?

Thanks in Advance

Georg

------------------------------------
            Georg Lösel
            Sonnenweg 37
           30171 Hannover

      ++49 (0) 511 - 760 4123
         georg@de-schorsch.de
          www.de-schorsch.de
       52°22'04" N / 9°45'31" E
GPG-Key: homepage/gpg_georgloesel.asc
--------------------------------------

So Im searching for a simple legend to compare the different raster,
similar to this:

Value R|G|B

0-200 106 | 255 | 89
200-400 139 | 255 | 77
400-600 178 | 255 | 64
....
2200-2400 209 | 210 | 88

Is this possible direkt with r.colors, type. 'rules'

sure.

r.colors map color=rules << EOF
0 106:255:89
200 106:255:89
200 139:255:77
400 139:255:77
400 178:255:64
600 178:255:64
...
2200 209:210:88
2400 209:210:88
EOF

Is there some place for different legends, to help people not to
invent the wheel again and again?

You can save the rules file (saved in $MAPSET/colr/) to the
$GISBASE/etc/colors/ directory and then access it with:

r.colors rules=your_rules

see the other files there for an idea as well as the r.colors help page
  http://grass.itc.it/grass60/manuals/html60_user/r.colors.html

Also check out the use= option of d.legend?

Hamish

Georg Lösel <georg@de-schorsch.de> wrote

Is there some place for different legends, to help people not to
invent the wheel again and again?

Hamish <hamish_nospam@yahoo.com> wrote:

You can save the rules file (saved in $MAPSET/colr/) to the
$GISBASE/etc/colors/ directory and then access it with:

r.colors rules=your_rules

see the other files there for an idea as well as the r.colors help page
http://grass.itc.it/grass60/manuals/html60_user/r.colors.html

I wonder if there are some ready-to-use rules files for r.colors available for download somewhere? (Is that what you meant too Georg?)

Maciek

> see the other files there for an idea as well as the r.colors help
> page
> http://grass.itc.it/grass60/manuals/html60_user/r.colors.html

I wonder if there are some ready-to-use rules files for r.colors
available for download somewhere? (Is that what you meant too Georg?)

just what is in the $GISBASE/etc/colors directory.

Feel free to make your own (see the r.colors help page) and submit them
to the mailing list if you think they are useful and novel.

Hamish

How about a place for submitted color files on the Wiki?

Michael

On 1/19/05 2:07 PM, "Hamish" <hamish_nospam@yahoo.com> wrote:

see the other files there for an idea as well as the r.colors help
page
http://grass.itc.it/grass60/manuals/html60_user/r.colors.html

I wonder if there are some ready-to-use rules files for r.colors
available for download somewhere? (Is that what you meant too Georg?)

just what is in the $GISBASE/etc/colors directory.

Feel free to make your own (see the r.colors help page) and submit them
to the mailing list if you think they are useful and novel.

Hamish

____________________
C. Michael Barton, Professor of Anthropology
School of Human Evolution and Social Change
PO Box 872402
Arizona State University
Tempe, AZ 85287-2402
USA

Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>