[GRASS-user] Use r.mapcalc to correct a raster?

Hamish hamish_b at yahoo.com
Sun May 4 22:46:44 EDT 2008

Richard Chirgwin wrote:
> I have created a raster to use as a DEM from a vector contour map - but
> I slipped with some parameters. Because it took a very long time to run
> the calculations, I'm wondering whether I could adjust the Z values to 
> distribute them between a new minimum and new maximum, using r.mapcalc?

maybe r.rescale?

I don't know if that is FP safe or if it just works on cat (CELL) maps
(it's an oldie).  see also r.rescale.eq

or as you suggest do it with r.mapcalc; figure out a y=mx+b relationship
and apply that. (or non-linear fit as required...)


Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

More information about the grass-user mailing list