[GRASSLIST:1368] Re: r.reclass rounds up the results

Glynn Clements glynn.clements at virgin.net
Fri Sep 26 23:11:37 EDT 2003


Rado Bonk wrote:

> Hi GRASSusers,
> 
> I thought I knew all the details of "r.reclass" but I'm experiencing
> strange r.reclass behaviour now.
> 
> I have reclassified the float map into another float values map. But
> during the process the command rounded up the results, and I did not get
> the map with 30 categories but I only got 2 categories map (0 and 1). 
> 
> Why does r.reclass rounds up the values, and do not produce float
> reclassified values? Or I am missing something.

Reclass maps are always integer (CELL) maps. If you reclass a float
map, the underlying input functions will simply coerce the original
data to CELL then apply the CELL->CELL translation constained in the
reclass table.

AFAICT, r.recode would be more appropriate.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list