[GRASS5] Re: [bug #789] (grass) i.grey.scale and FP maps

Markus Neteler neteler at itc.it
Fri Jan 4 11:21:28 EST 2002


On Fri, Jan 04, 2002 at 05:16:56PM +0100, Andreas Lange via RT wrote:
> 
> I am able to reproduce the i.grey.scale bug (stripes).
> It seems to be related to floating point IMHO:
> The following works:
> r.mapcalc test="int(row()*1.2))"
> i.grey.scale test
> (no stripes!)
> 
> But:
> r.mapcalc test="row()*1.2"
> r.colors map=test col=grey.eq 
> does not work with floating point rasters, only with int rasters.
> 
> So perhaps i.grey.scale should simply check that the raster is not floating 
> point?
> 
> Still confused & clueless,
> 

Hi Andreas,

thanks for testing. However, my suggestion is to remove the 
i.grey.scale
completely from GRASS as r.colors provides identical functionality
(including the FP test). One less module to maintain.

Any objections to remove i.grey.scale? If not,
I'll do it.

Markus



More information about the grass-dev mailing list