cat and size

Lars Schylberg larss at
Tue Jun 8 03:12:15 EDT 1993

> What's the appropriate way to get a category
> and its corresponding size of area from
> a raster layer?

r.stats -c fs== | r.reclass

This will give the area sizes in pixels.

r.cats could pick up the category label if want that.

If you want to examine this in an interactive way use r.what.rast with the and the


Lars Schylberg                          Email: larss at  
Dept. of Geodesy and Photogrammetry 
Royal Institute of Technology (KTH)     Tel.   +46 8 790 86 33   
S-100 44  STOCKHOLM, SWEDEN             Fax.   +46 8 790 66 10

More information about the grass-user mailing list