[GRASS-user] can the grass calculate the area of different color for a image(tiff or other?)

Moritz Lennert mlennert at club.worldonline.be
Wed Jun 17 08:35:19 EDT 2009

On 17/06/09 14:06, maven apache wrote:
> I got a.green a.red a.blue and a.alpha four raster,then follow the 
> advise from this list I composite the three map g b r to a new raster:outss
> then I run the commond r.stats -a input=outss at PERMANENT 
> <mailto:input=outss at PERMANENT> fs=space nv=* nsteps=255
> got the following output
> 0 429847.542397
> 9321 212745757.083273
> 26425 4430667.032198
> 31744 5444337463.194785
> 32736 35683640.857434
> 32767 92624.052023
> I wonder what do the first number in each line respent? And the second 
> number in each respent the area?

RTFM ;-)

The first number is the category number, i.e. the different categories 
(in your case colors) present in your map.
The second number gives the area statistics which are given in units of 
square meters.


More information about the grass-user mailing list