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

Martin Landa landa.martin at gmail.com
Tue Aug 5 12:34:11 EDT 2008


Hi,

2008/8/5 christian Brandt <chrisbrandt74 at 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 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? 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 *
-------------- next part --------------
A non-text attachment was scrubbed...
Name: r-colors-rules-fix.diff
Type: text/x-diff
Size: 1524 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-user/attachments/20080805/03558ada/r-colors-rules-fix.bin


More information about the grass-user mailing list