[GRASS-user] r.mapcalc and us of max value
markus.metz.giswork at gmail.com
Thu Apr 25 13:26:27 PDT 2013
On Thu, Apr 25, 2013 at 10:08 PM, simogeo <simon.georget at gmail.com> wrote:
> Hi Micha,
> Thanks for your reply. It works perfectly but I would prefer to use :
MAX=`r.info -rst map=<your raster> | grep max | cut -d '=' -f 2`
r.info reports max of the raster map as it is, r.univar reports max
for the current region settings. Since r.mapcalc uses the current
region settings, you should really use r.univar instead of r.info.
> since it's much faster!
> thanks again.
> View this message in context: http://osgeo-org.1560.x6.nabble.com/r-mapcalc-and-us-of-max-value-tp5049643p5049720.html
> Sent from the Grass - Users mailing list archive at Nabble.com.
> grass-user mailing list
> grass-user at lists.osgeo.org
More information about the grass-user