Dear all,<div><br></div><div>Thanks for all tips. </div><div>The code below worked fine. As my map is in meters, I saved the wanted AREA OF CLUMPs in hectare.</div><div><br></div><div>r.stats -na input=clump_map | awk '{print $1,"=",$2/10000}'|r.reclass input=clump_map output=clump_map_AreaHA -</div>
<div><br></div><div>All the best, for all.</div><div><br></div><div>miltinho</div><div>brazil<br><br><div class="gmail_quote">2008/11/16 Hamish <span dir="ltr"><<a href="mailto:hamish_b@yahoo.com">hamish_b@yahoo.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d">Milton wrote:<br>
> > I generated a clump map from my cover map, and computed the area of each<br>
> > patch using r.stats.<br>
> > Now I need generate a map which values is the area for each clump.<br>
<br>
</div><div class="Ih2E3d">Jamie Adams wrote:<br>
> You can use r.recode to do this, but you'll need to<br>
> reformat the output from r.stats.<br>
<br>
<br>
</div>another way is set areas as r.category labels, then create a new map<br>
from the labels using r.mapcalc's @ operator. Again, perhaps some<br>
reformatting is needed with awk etc. to rearrange column order?<br>
<font color="#888888"><br>
<br>
Hamish<br>
<br>
<br>
<br>
<br>
<br>
</font></blockquote></div><br></div>