On 27/05/2013 22:36, Marcello Benigno
wrote:
Hi Micha, How about using r.reclass ? Create a text file "slope_reclass.txt" which contains rows: 0 thru 2 = 1 2 thru 5 = 2 5 thru 10 = 3 ... 70 thru 100 = 7 then run r.reclass in=slope out=slope_rc rule=slope_reclass.txt Be aware that the reclass map is not a "real" raster. If you need to use it for other things, then a second r.mapcalc _expression_ will be necessary to create on on-disk raster map. Such as: r.mapcalc slope_reclass=slope_rc Regards, Micha
-- Micha Silver GIS Consulting 052-3665918 http://www.surfaces.co.il |
_______________________________________________ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user