I'm able to get the max value of a raster map using the following command :
which return max = 45784578
and I use this value to create another raster like so :
which appears to be correct
My question is : Is there a way to do it dynamically? I want to automatise
that into a bash script.
I've tried : /r.mapcalc "newrast = myrast * 100 / max(myrast)"/ expecting
max(myrast) returns here 45784578 (max value) with no success.
which appears to be incorrect.
Any help would be appreciated.
View this message in context: http://osgeo-org.1560.x6.nabble.com/r-mapcalc-and-us-of-max-value-tp5049643.html
Sent from the Grass - Users mailing list archive at Nabble.com.
grass-user mailing list
This mail was received via Mail-SeCure System.
> I'm able to get the max value of a raster map using the
> following command :
> which return max = 45784578
> and I use this value to create another raster like so :
> Returns :
> which appears to be correct
> 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.
Thanks for the precision. My current region is set using the raster map.
On Fri, Apr 26, 2013 at 10:29 AM, Markus Neteler <[hidden email]> wrote: