On Thu, Apr 25, 2013 at 10:08 PM, simogeo <[email protected]> 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
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/grass-user
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to