Note: A new GRASS GIS stable version has been released: GRASS GIS 7. Go directly to the new manual page here
NAME
r.mapcalculator - Calculate new raster map from a r.mapcalc expression.
KEYWORDS
SYNOPSIS
r.mapcalculator
r.mapcalculator help
r.mapcalculator [-eo] [amap=string] [bmap=string] [cmap=string] [dmap=string] [emap=string] [fmap=string] formula=string outfile=string [help=string] [--overwrite] [--verbose] [--quiet]
Flags:
- -e
- Expert mode (enter a set of r.mapcalc expressions)
- -o
- Do not overwrite existing map
- --overwrite
- Allow output files to overwrite existing files
- --verbose
- Verbose module output
- --quiet
- Quiet module output
Parameters:
- amap=string
- A
- bmap=string
- B
- cmap=string
- C
- dmap=string
- D
- emap=string
- E
- fmap=string
- F
- formula=string
- Formula (e.g. A-B or A*C+B)
- outfile=string
- Name for output raster map
- help=string
- Show help
- Options: -,help,man
- Default: -
DESCRIPTION
r.mapcalculator provides a GUI frontend to r.mapcalc.
Up to 5 maps can be combined using simple expressions.
In the expert mode, it runs r.mapcalc for more complex expressions.
Enter an r.mapcalc expression in the formula field using the
format:
A+B or exp(A+C)+(B-2)*7 where A, B, C are raster maps
entered in the A field, B field, and C field.
Do not enter output file in the formula field, hence:
- correct: A+B
- incorrect: newfile = A+B
- Use no spaces or blanks.
The expert mode runs r.mapcalc for more complex expressions.
EXAMPLES
SEE ALSO
r.mapcalc
AUTHOR
R. Brunzema (r.brunzema@web.de)
Updated to GRASS 5.7 by Michael Barton, Arizona State University
Last changed: $Date: 2016-04-09 15:41:36 -0700 (Sat, 09 Apr 2016) $
Main index - raster index - Full index
© 2003-2016 GRASS Development Team