<div class="gmail_quote">
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div class="h5">And if you want to improve the output, then two steps:<br>First use r.category to give a label to each category like so:<br>(assuming the first is black)</div></div></blockquote></blockquote>
<div>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?</div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div class="h5"><span></span><br>echo &quot;0:Black&quot; | r.category outss rules=-<br>(note the &#39;-&#39; which means &quot;read from stdin&quot;)<br>Next use r.report like so:<br>r.report outss unit=k<br>(gives a table with the cat value, the label and area in sqkm) </div>
</div></blockquote>
<div>
<div></div>
<div class="h5"><br><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">_______________________________________<br>grass-user mailing list<br><a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br><br>This mail was received via Mail-SeCure System.<br><br><br></blockquote><br></div></div>
</blockquote></div><br>