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

maven apache apachemaven0 at gmail.com
Wed Jun 17 08:06:46 EDT 2009


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 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?
2009/6/17 Micha Silver <micha at arava.co.il>

>  maven apache wrote:
>
> Yes
> My tiff have 5 color, red blue green and pink and yellow. I want get the
> area for each color..
> First I import the tiff .however I got a.green a.red a.blue and a.alpha
> four raster.
>
> Multi-band tiffs are imported as separate bands. You can combine them with
> r.composite.
>
>
> 2009/6/17 Micha Silver <micha at arava.co.il>
>
>> maven apache wrote:
>>
>> can the grass calculate the area of different color for a image?
>>> I have a tiff, and I have seen five color in it,I wonder I can calculate
>>> the area for each color with grass?
>>>
>> Did you check out r.stats -a ?
>>
>>
>>> This mail was received via Mail-SeCure System.
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> grass-user mailing list
>>> grass-user at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/grass-user
>>>
>>> This mail was received via Mail-SeCure System.
>>>
>>>
>>>
>>>
>>
>>
>
> This mail was received via Mail-SeCure System.
>
> ------------------------------
>
> _______________________________________________
> grass-user mailing listgrass-user at lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/grass-user
>
> This mail was received via Mail-SeCure System.
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20090617/d2398e3e/attachment.html


More information about the grass-user mailing list