Maning,<br><br>Depends on what you are doing with r.report, but you can often use r.stats instead, to output a csv file (look at docs for r.stats if you want percent or cell counts, my example assumes area counts).<br>r.stats -an fs=&quot;,&quot; input=raster1,raster2<br>
<br>If you need to do a unit conversion ie m^2 to acres, use awk:<br>r.stats -an input=raster1,raster2 | awk -F, &#39;{acres=$3*0.00024710538; print $1&quot; &quot;$2&quot; &quot;acres}&#39; &gt; output.txt<br><br>Jonah Duckles<br>
Senior Analyst<br>Lanworth<br>
<br><br><div class="gmail_quote">On Tue, Feb 24, 2009 at 5:37 AM, maning sambale <span dir="ltr">&lt;<a href="mailto:emmanuel.sambale@gmail.com">emmanuel.sambale@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;">
Hi,<br>
<br>
Looking for tips in &quot;transforming&quot; r.report output into a<br>
&quot;spreadsheet&quot; like format.<br>
<br>
--<br>
cheers,<br>
maning<br>
------------------------------------------------------<br>
&quot;Freedom is still the most radical idea of all&quot; -N.Branden<br>
wiki: <a href="http://esambale.wikispaces.com/" target="_blank">http://esambale.wikispaces.com/</a><br>
blog: <a href="http://epsg4253.wordpress.com/" target="_blank">http://epsg4253.wordpress.com/</a><br>
------------------------------------------------------<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>
</blockquote></div><br>