[GRASS-user] rounding raster values

Paulo van Breugel p.vanbreugel at gmail.com
Wed May 1 11:48:11 PDT 2013


Hi,

I have floating raster layers which values I want to round to x decimal 
places. I wonder if there is an function that allows me to round raster 
values to values x decimal places? There is the option /round()/ in 
r.mapcalc, but that rounds the raster values to nearest integer. I can 
work with integer values, using e.g., /r.mapcalc "output = round(input * 
1000)"/. But an option to round values would be more convenient. Any 
suggestion?

Rgds

Paulo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130501/17c701f1/attachment.html>


More information about the grass-user mailing list