You can use r.recode to do this, but you&#39;ll need to reformat the output from r.stats.<br><br>Example:<br><br><b>r.stats -a -n &lt;raster&gt;</b><br><br>0 1234<br>1 2345<br>2 3456<br>......<br><br>This needs to be:<br><br>
0:0:1234:1234<br>1:1:2345:2345<br>2:2:3456:3456<br>......<br><br>Save this to a txt file and use it with the rules flag of r.recode.&nbsp; If you have a large amount of categories, I would suggest using awk or perl to reformat the r.stats output.&nbsp; <br>
<br>-Jamie<br><br><div class="gmail_quote">On Fri, Nov 14, 2008 at 8:22 AM, Milton Cezar Ribeiro <span dir="ltr">&lt;<a href="mailto:miltinho.astronauta@gmail.com">miltinho.astronauta@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear all,<div><br></div><div>I generated a clump map from my cover map, and computed the area of each patch using r.stats.&nbsp;</div><div>Now I need generate a map which values is the area for each clump.</div><div><br></div>
<div>
Suggestions are welcome.</div><div><br></div><div>Best regards,</div><div><br></div><div>miltinho astronatua</div><div>brazil</div>
<br>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">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></blockquote></div><br>