[GRASS-user] Multiply raster sum by a number?

Nick Jachowski njachowski at gmail.com
Sat May 5 03:29:32 EDT 2012


Hi Tanya,

Try this in the command line:

r.mapcalc "newmap = 741.0 * 0.01"

or in the GUI use the map calculator and put in your desired equation as
above.

The output of this command will be a new map with a value of 7.41.  You can
read about the mapcalc command here:
http://grass.fbk.eu/gdp/html_grass64/r.mapcalc.html

Hope that helps!
Nick


On Sat, May 5, 2012 at 10:08 AM, Tanya Dyck <tanya.dyck at hotmail.com> wrote:

>  I have a very basic question that I hope can be answered.  I want to
> multiply the sum of my raster count (741) by a value (0.01) and have an
> output raster with that value.  I've used r.sum to determine the sum of the
> data value but am unsure how I can take that value to multiply by a user
> defined value.  Any help would be much appreciated.
>
> Best,
>
> Tanya
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20120505/c2db1747/attachment.html


More information about the grass-user mailing list