Hi,<br><br><div class="gmail_quote">On Fri, Feb 15, 2013 at 2:09 PM, Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com" target="_blank">glynn@gclements.plus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
Hamish wrote:<br>
<br>
> there are a couple ways to do it, here's one:<br>
>   r.mapcalc "map.2dp = int(0.5 + (map.15g * 100))/100.0"<br>
><br>
> the 0.5 is added because int() truncates instead of rounding.<br>
<br>
</div>Note that r.mapcalc has a round() function.<br></blockquote><div><br></div><div>Also, note that if you want non integer reclassified output you might want to use r.recode instead of r.reclass.</div><div><br></div><div>
cheers, madi </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><br clear="all"><div><br></div>-- <br><div><div><font color="#666666">Margherita DI LEO    </font></div><div><font color="#666666">Postdoctoral Researcher</font></div>
<div><font color="#666666"><br></font></div><div><font color="#666666">European Commission - DG JRC </font></div><div><font color="#666666">Institute for Environment and Sustainability (IES). Unit H03 – FRC</font></div><div>
<font color="#666666">Via Fermi, 2749</font></div><div><font color="#666666">I-21027 Ispra (VA) - Italy - TP 261</font></div><div><font color="#666666">       </font></div><div><font color="#666666">Tel. +39 0332 78 3600   </font></div>
<div><font color="#666666"><a href="mailto:margherita.di-leo@jrc.ec.europa.eu" target="_blank">margherita.di-leo@jrc.ec.europa.eu</a></font></div><div><font color="#666666"><br></font></div><div><font color="#666666">Disclaimer: The views expressed are purely those of the writer and may not in any circumstance be regarded as stating an official position of the European Commission.</font></div>
</div>