[GRASSLIST:818] Re: Eliminating negative values on raster image
Glynn Clements
glynn at gclements.plus.com
Sat Apr 22 07:33:03 EDT 2006
Tim De Chant wrote:
> I have a raster map with negative values in it that I'd like to
> eliminate. I know the values should not be negative, and I'd like to
> change any negative value to zero. I have looked through the map
> calculator (r.mapcalc) to see if I could create an expression that
> would create such a map but haven't had any luck. Could anyone help
> me out with writing one? Thanks.
r.mapcalc "new = max(old, 0)"
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user
mailing list