[GRASSLIST:3220] colors for d.his

Could anyone provide hints for creating a nice color ramp for the map used as the hue parameter of d.his suitable for representing an alpine valley in which the lowest elevations would be green going to brown, grey, and white for the highest elevations?

--
Richard Greenwood
www.greenwoodmap.com

Could anyone provide hints for creating a nice color ramp for the map
used as the hue parameter of d.his suitable for representing an alpine
valley in which the lowest elevations would be green going to brown,
grey, and white for the highest elevations?

see:
http://intevation.de/rt/webrt?serial_num=2072

thus,

r.colors map=xxxx col=rules << EOF
-11000 0 0 0
-500 0 0 30
-100 0 0 200
-1 150 150 255
0 0 150 0
270 90 165 90
300 90 175 90
500 50 180 50
500 70 170 70
1000 70 145 75
1000 70 155 75
2000 150 156 100
2800 220 220 220
3000 255 255 255
8850 255 255 255
nv 255 255 255
EOF

i.e. [elevation Red Green Blue]

or for your suggested colors, use these rules:

0% green
33.3% brown
66.7% grey
100% white

Hamish

Hamish wrote:

Could anyone provide hints for creating a nice color ramp for the map used as the hue parameter of d.his suitable for representing an alpine
valley in which the lowest elevations would be green going to brown, grey, and white for the highest elevations?

see:
http://intevation.de/rt/webrt?serial_num=2072

thus,

r.colors map=xxxx col=rules << EOF
-11000 0 0 0
-500 0 0 30
-100 0 0 200
-1 150 150 255
0 0 150 0
270 90 165 90
300 90 175 90
500 50 180 50
500 70 170 70
1000 70 145 75
1000 70 155 75
2000 150 156 100
2800 220 220 220
3000 255 255 255
8850 255 255 255
nv 255 255 255
EOF

i.e. [elevation Red Green Blue]

or for your suggested colors, use these rules:

0% green
33.3% brown
66.7% grey
100% white

Hamish

Thank you for the prompt reply. After reading the documentation it proves to be much easier than I was making it. I am embarrassed to have posted such a trivial question.

Thanks for your help.
--
Richard Greenwood
www.greenwoodmap.com

On Mon, Apr 19, 2004 at 08:56:12PM +0000, Richard Greenwood wrote:

Hamish wrote:
>>Could anyone provide hints for creating a nice color ramp for the map
>>used as the hue parameter of d.his suitable for representing an alpine
>>valley in which the lowest elevations would be green going to brown,
>>grey, and white for the highest elevations?
>
>
>
>see:
>http://intevation.de/rt/webrt?serial_num=2072
>
>thus,
>
>r.colors map=xxxx col=rules << EOF
>-11000 0 0 0
>-500 0 0 30
>-100 0 0 200
>-1 150 150 255
>0 0 150 0
>270 90 165 90
>300 90 175 90
>500 50 180 50
>500 70 170 70
>1000 70 145 75
>1000 70 155 75
>2000 150 156 100
>2800 220 220 220
>3000 255 255 255
>8850 255 255 255
>nv 255 255 255
>EOF
>
>
>i.e. [elevation Red Green Blue]
>
>or for your suggested colors, use these rules:
>
>0% green
>33.3% brown
>66.7% grey
>100% white
>
>
>Hamish

Thank you for the prompt reply. After reading the documentation it
proves to be much easier than I was making it. I am embarrassed to have
posted such a trivial question.

To make it less trivial, someone could implement above color table
into r.colors as 'terrain'...

Markus

Markus Neteler wrote:

> Thank you for the prompt reply. After reading the documentation it
> proves to be much easier than I was making it. I am embarrassed to have
> posted such a trivial question.

To make it less trivial, someone could implement above color table
into r.colors as 'terrain'...

Or maybe:

  r.colors ... rules=<name>

which would just be shorthand for e.g.:

  r.colors ... color=rules < $GISBASE/colors/<name>

That way, adding new tables (e.g. "terrain") would just be a matter of
adding a rules file; no coding involved.

The only cases which should really need to be coded are those which
can't be described by a fixed set of rules. BTW, most of the existing
colour tables could be implemented using rules; AFAICT, the only ones
which can't are "grey.eq", "grey.log" and "random".

Actually, maybe we should just change the semantics of the "color=..."
option so that anything other than "rules", "grey.eq", "grey.log" and
"random" is treated as the name of a rules file.

--
Glynn Clements <glynn.clements@virgin.net>

Just as a contrib. This is what I often use for ecology and biogeography, for
global and regional coverages:

Saturated colors:

-11000 black
-4000 0 0 102
-1000 0 102 178
-200 0 128 178
-100 0 204 204
-50 0 204 204
-0.3 0 255 255
1 0 127 0
200 51 178 0
500 153 178 0
1000 178 153 51
1500 178 178 102
4000 127 127 127
5000 white
10000 white

Unsaturated colors:

-11000 52 73 93
-6000 52 73 93
-1000 55 75 95
-200 70 90 100
-0.3 102 140 140
1 95 127 71
500 163 141 110
1500 153 153 153
5000 200 200 200
9000 white

(I find the unsaturated a little too dark and too saturated, I'll fix it
someday I have time to give it some thought :slight_smile:

Both try to present diffs in lowlands and shallow seas, the habitats of the
organisms we usually work with, and for ecology altitude and depth
differences mean far more the closer you are to sealevel, so the color ramps
focus on that by being very steep close to sealevel. So diffs in depths and
mountains are mostly toned down.

--

Gustavo Alcides Concheiro Pérez <gacp@d-konstruktors.org>
Unión de la Cruz del Sur

«Non serviam»

---
Clave pública GPG para gacp / GPG public key for gacp:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.0.7 (GNU/Linux)

mQGiBD5c/XARBADRrT8X4B3lH+nRlTZz96Qrg7DBiIIOXvVKcUQZN5Mf1g60a8Sq
14NK6w+nL/CHWwV8Ebl0lS5mQBAkvCk6bEpU0TYVEqkX2x0c0WNwGD2qY3XIegrO
AziTOs+a0ttJnh9pDFSWtb5kg1OZSZ9HzuS67zOWhlMn2O/kmoCs8LFLCwCgxpwD
I2uKF8GdvNWuCT91TR27MkED/A2MPecRNydFJIaAFmAnCOLrzmvjTU0tXDsNoui0
kyVOzodDkPIJN/HNco1eF0uomHNpHHEqFXszk7+B2wQ6r+3xdI9RKBRQcoDO2+5T
5hMJdZZme3GnyzAAHeojevNCm79IyT4Oqt5hTnFjB8iF/islD62UROVqnW1TcMRP
5ZU5A/0ccjpac8VD4doM+Yj/lmf15UfJI7R5JTdh1Rg2HyptxMeUX+vJiacjwUR8
Z1L2vxBqlZfW5PMw6y+ZAc7go39FKSclcI0L6BAyg6SP5l/M9mbncYMSdG/ZDZiW
lcTVGU8usfnmp36gFDP+0AKHIa8by31UOZ6UHyZr3gyfWUpYN7RBR3VzdGF2byBB
bGNpZGVzIENvbmNoZWlybyBQw6lyZXogKGdhY3ApIDxnYWNwQGQta29uc3RydWt0
b3JzLm9yZz6IWQQTEQIAGQUCPlz9cAQLBwMCAxUCAwMWAgECHgECF4AACgkQ68B5
f74Je7XCaQCfSKAhuF9rHRxG5GryI9+6dWTpX2gAoJuMr7TcYFIPQUgw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