[GRASS5] No fp support in r.reclass

Markus Neteler neteler at itc.it
Wed Feb 27 07:38:58 EST 2002

(cc grass5)

On Wed, Feb 27, 2002 at 12:26:01PM +0000, Gualter Barbas Baptista wrote:
> Markus Neteler wrote:
> >Hi Gualter,
> >
> >r.reclass is doing a reclassification of data. The resulting classes
> >are integer by definition as a class is generally a whole number.
> >
> >Probably you have a different application in mind?
> >
> Yes. I made a relative index ranging from 0 to 1, but I have some 
> numbers above 1 (outliers). The idea was to reclass all the numbers 
> above 1 to -1, leaving the others the same. If I run d.reclass it will 
> reclass all my pixels to -1, 0 or 1.
> I managed to do the same with r.mapcalc, but this takes much more time, 
> hard disk and CPU. Also, I could just multiply by 100, but then this 
> wouldn't be so nice to show.

Have a look at r.recode. That allows you to change
a range of data to something different.

Hope this helps,


More information about the grass-dev mailing list