r.mapcalc "new_raster=if(old_raster>-0.01 && old_raster<0.01,0,old_raster)"<br><br>Cheers,<br>Marcello.<br><br><br><div class="gmail_quote">On Wed, Jul 13, 2011 at 10:10 AM, Rebecca Bennett <span dir="ltr"><<a href="mailto:rabennett@ymail.com">rabennett@ymail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;">Hello Grass users,<br>
<br>I have a (hopefully) quick question - I would like to replace all values in a raster that fall in the range -0.01 to 0.01 (i.e. 0.01><-0.01) with 0 but can't quite work out how to express this in mapcalc. <br>
<br>Can anyone set me on the right track?<br><br>Thanks for reading,<br><font color="#888888">Rebecca<br></font></div></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>