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

Hi,

2008/8/5 christian Brandt <chrisbrandt74@hotmail.com>:

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@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? Please see also the attached colorscript.

it seems to be a bug in r.colors, the attached patch quickly fix it.
Anyway r.colors needs some more cleaning. In GRASS7 I would suggest to
remove

-i Enter rules interactively

1) then if rules file is given read from the file
2) if not given (and color=rules) switch to the interactive mode
3) or completely remove interactive mode, print error about missing
rules file <- seems to be a better solution, to avoid any interactive
mode in GRASS7

?

Martin

[cc: grass-dev, sorry for cross-posting)

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *

(attachments)

r-colors-rules-fix.diff (1.49 KB)