[GRASS-user] Color table

Glynn Clements glynn at gclements.plus.com
Wed Aug 13 23:47:33 EDT 2008


Raphael Saldanha wrote:

> I'm using the script r.colors.stddev and making some adjustments for my
> needs.
> 
> First, I set all 0 values to null (r.null), then I run the modified script,
> with this color table:
> 
> ...
>      r.colors "$GIS_OPT_INPUT" color=rules << EOF
>        nv black
>        0% black
>        $MEAN_MINUS_2STDEV black
>        $mean 136 136 136
>        $MEAN_PLUS_2STDEV white
>        100% white
> ...
> 
> But the null values don't become to be displayed black, they still white.

How are you displaying the image? If you're using gis.m, raster maps
are overlaid by default, so any null pixels will let the background
colour show through. Uncheck the "overlay maps from other layers"
checkbox to make the background opaque.

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


More information about the grass-user mailing list