Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I have a raster map in GRASS containing elevation values. I want to display the elevation values in only one color (specificaly blue) but in varying shades of blue. I tried the options in r.colors, but none of those displays the map in monochrome.
In GRASS shell type:
> r.colors map=elevation color=rules
> 0 white
> [your maximum elevation value] blue
#!/bin/sh r.colors map=raster_bulacanOriginal2 color=rules 0 white 300 blue end
#!/bin/sh echo -e '0 white\n300 blue' | r.colors map=<mapname> color=rules rules=-
r.colors map=<mapname> color=rules rules=<rulesfile>
ERROR: bad rule (invalid color name): [-25 #00FFFF]
Required, but never shown