cat and size
Lars Schylberg
larss at fmi.kth.se
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.clump input=cat.map output=clump.map
r.stats -c fs== in=clump.map | r.reclass in=clump.map out=area.map
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
cat.map and the area.map
Lars
Lars Schylberg Email: larss at fmi.kth.se
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