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

Daniel Victoria daniel.victoria at gmail.com
Wed Jun 17 09:15:38 EDT 2009


To be sure what number corresponds to what color, just plot your map
and use the mouse query tool (r.what). Then you can click on a color
and see the category number pop up on screen...

On Wed, Jun 17, 2009 at 10:04 AM, maven apache<apachemaven0 at gmail.com> wrote:
>>> And if you want to improve the output, then two steps:
>>> First use r.category to give a label to each category like so:
>>> (assuming the first is black)
>
> This is what I am not sure, I only get the number respent the category,but I
> am not sure what it stand for,for example the number in first line:9321,does
> it stand for red? or blue?
>>>
>>> echo "0:Black" | r.category outss rules=-
>>> (note the '-' which means "read from stdin")
>>> Next use r.report like so:
>>> r.report outss unit=k
>>> (gives a table with the cat value, the label and area in sqkm)
>>
>>> _______________________________________
>>> 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.
>>>
>>>
>>
>
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>


More information about the grass-user mailing list