[GRASS5] r.colors bug
Glynn Clements
glynn.clements at virgin.net
Wed May 26 10:37:55 EDT 2004
Radim Blazek wrote:
> GRASS 5.7 (probably also 5.3),
>
> $ARCH/etc/colors/gyr:
> 0% green
> 50% yellow
> 100% red
>
> r.colors map=pok color=gyr
>
> -> colr/pok
> % 0 255
> 0:0:255:0 127.5:255:255:0
> 127.5:255:255:0 255:255:0:0
> 0:255
>
> i.e. 0 set to white.
Unless someone has changed it, the color= option uses the coded rules;
e.g. color=gyr uses G_make_gyr_fp_colors(), which has the hardcoded
0=white rule.
IOW this bug/feature is in the various G_make_*_colors() functions in
libgis.
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-dev
mailing list