[GRASS-user] Mapcalc to replace a range of values
Marcello Gorini
gorini at gmail.com
Wed Jul 13 11:53:50 EDT 2011
r.mapcalc "new_raster=if(old_raster>-0.01 && old_raster<0.01,0,old_raster)"
Cheers,
Marcello.
On Wed, Jul 13, 2011 at 10:10 AM, Rebecca Bennett <rabennett at ymail.com>wrote:
> Hello Grass users,
>
> 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.
>
> Can anyone set me on the right track?
>
> Thanks for reading,
> Rebecca
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20110713/4aa3ffa2/attachment.html
More information about the grass-user
mailing list