[GRASS-dev] G_make_aspect*_colors() broken

Glynn Clements glynn at gclements.plus.com
Wed Jul 5 23:21:22 EDT 2006


Brad Douglas wrote:

> G_make_aspect*_colors() in lib/gis/color_asp.c is broken.  It chooses
> (defaults to?) a greyscale ramp, rather than what is expected for aspect
> maps.
> 
> Verified with r.slope.aspect and r.colors.

It creates a black->white->black double ramp, with the half-way point
being black. This will do the right thing, provided that your aspect
map covers the full range of possible values (e.g. -180 to 180 or 0 to
360), but won't work if a the extrema are absent.

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




More information about the grass-dev mailing list