[GRASS-user] error message coming with r.colors

Glynn Clements glynn at gclements.plus.com
Tue Aug 5 14:35:32 EDT 2008


christian Brandt wrote:

> I try to adapt the color table of a raster file using an ascii file
> (> rules option) with the following statement:
> 
> r.colors map=b25_daymax0.l1_neu at PERMANENT color=rules 'rules=/sonne3/.../GIS/colorscript_farben_temp'
> 
> Hence the following message comes up:
> 
> "color", "rules", and "raster" options are mutually exclusive
> 
> Any ideas what this means?

What it says; you can't use both "color" and "rules". If you use
"color=rules", the rules are read from stdin (equivalent to -i). If
you use "rules=...", the rules are read from the specified file.

So, just omit the color=rules option, i.e.:

r.colors map=b25_daymax0.l1_neu at PERMANENT 'rules=/sonne3/.../GIS/colorscript_farben_temp'

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list