[GRASS-user] r.mapcalc and us of max value

Markus Metz 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.

Markus M

>
>
> since it's much faster!
>
> thanks again.
>
> Bye
>
>
>
> --
> 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
> http://lists.osgeo.org/mailman/listinfo/grass-user


More information about the grass-user mailing list