[GRASS-user] r.reclass probs with negative values

Hamish hamish_nospam at yahoo.com
Tue Nov 14 23:38:05 EST 2006


Michael Barton wrote:
> R.mapcalc and r.recode both create new maps.
> 
> However, r.reclass is especially useful because it DOESN'T create a
> new map. It just makes a new cats table for an existing raster map.
> This means that it is sort of a 'virtual' map or map 'view'. It also
> means that it runs much faster (important in interated scripts) and
> takes up very little space (also good for iteration that creates
> multiple map 'views').
> 
> It would be nice if this could be done with FP maps too somehow,

I don't see any reason why FP maps shouldn't be able to be base maps for
a reclassification into integer categories (besides r.reclass lacks the
code to do this AFAIK).

> since FP maps also have cats tables that affect how they are
> displayed.

FCELL, DCELL (floating point) maps do have cats/ tables, but they are
typically empty*,**.


* you can add labels there for different values, e.g. for d.legend

** FCELL,DCELL lists number of cats as 255 (this shows up in r.info)
   why?


Hamish




More information about the grass-user mailing list