mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-15 00:04:37 -04:00
Avoid creating temporary helpfiles Added basic converter to convert rst into html on the fly Added SAGA help files
62 lines
1.7 KiB
ReStructuredText
62 lines
1.7 KiB
ReStructuredText
GRID CALCULATOR
|
|
===============
|
|
|
|
Description
|
|
-----------
|
|
|
|
The raster calculator allows the computation of algebraic expressions with raster layers, obtaining derived information in the form of new layers of geographical data
|
|
|
|
The following operators and functions are available:
|
|
|
|
- The following operators are available for the formula definition:
|
|
- + Addition
|
|
- - Subtraction
|
|
- * Multiplication
|
|
- / Division
|
|
- ^ power
|
|
- abs(x) - absolute value
|
|
- sqrt(x) - square root
|
|
- ln(x) - natural logarithm
|
|
- log(x) - base 10 logarithm
|
|
- exp(x) - exponential
|
|
- sin(x) - sine
|
|
- cos(x) - cosine
|
|
- tan(x) - tangent
|
|
- asin(x) - arcsine
|
|
- acos(x) - arccosine
|
|
- atan(x) - arctangent
|
|
- atan2(x, y) - arctangent of x/y
|
|
- gt(x, y) - if x>y the result is 1.0, else 0.0
|
|
- lt(x, y) - if x<y the result is 1.0, else 0.0
|
|
- eq(x, y) - if x=y the result is 1.0, else 0.0
|
|
- mod(x, y) - returns the floating point remainder of x/y
|
|
- ifelse(c, x, y) - if c=1 the result is x, else y
|
|
- int(x) - integer part of floating point value x
|
|
- pi() - returns the value of Pi
|
|
|
|
|
|
If when calculating the value of a given cell, a no-data value appears in any of the layers used in the formula, the resulting value will always be a no-data value.
|
|
|
|
Parameters
|
|
----------
|
|
|
|
- ``Grids[MultipleInput]``: The grids to use. They can be refered in the formula using letters (``a, b, c...``), or the letter ``g`` followed by the index number (``g1, g2, g3...``). The order for this naming is the same order as they appear in the selection window.
|
|
- ``Formula[String]``: The formula to use, which can use any of the expressions listeed above.
|
|
|
|
Outputs
|
|
-------
|
|
|
|
- ``Result[Raster]``: The resulting layer.
|
|
|
|
See also
|
|
---------
|
|
|
|
|
|
Console usage
|
|
-------------
|
|
|
|
|
|
::
|
|
|
|
sextante.runalg('saga:gridcalculator', grids, formula, use_nodata, result)
|