Skip to content

Commit c0e3b8f

Browse files
volayaalexbruy
authored andcommittedOct 18, 2016
[processing] added short help for saga raster calculator
1 parent 135576e commit c0e3b8f

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
 
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
saga:rastercalculator: >
2+
This algorithm allows to perform algebraic operations on raster layers
3+
4+
It requires a base layer, and a set of additional layers. The base layer is identified as "a" in the formula, while the additional layers are identified as "b, c, d...", using the order in which they appear in the multiple selection dialog.
5+
6+
The resulting layer has the extent and cellsize of the main layer.
7+
8+
The following operators and functions are available.
9+
10+
- Addition (+)
11+
12+
- Subtraction ( - )
13+
14+
- Multiplication (*)
15+
16+
- Division (/)
17+
18+
- Power (^)
19+
20+
- ln(x): returns natural logarithm of x.
21+
22+
- sin(x): returns the sine of x. x must be in radians
23+
24+
- cos(x): returns the cosine of x. x must be in radians
25+
26+
- cos(x): returns the tangente of x. x must be in radians
27+
28+
- asin(x): returns the arcsine of x, in radians
29+
30+
- acos(x): returns the arccosine of x, in radians
31+
32+
- atan(x): returns the arctangent of x, in radians
33+
34+
- atan2(x,y): returns the arctangent y/x, in radians
35+
36+
- abs(x): return the absolute value of x. abs(- 5)=5
37+
38+
- int(x): returns the integer part of x. int(5.4)=5
39+
40+
- mod(x,y): returns the modulus of x/y. mod(7,4)=3
41+
42+
- gt(x,y): true if x is greater than y
43+
44+
- lt(x,y): true if x is lower than y
45+
46+
- eq(x,y): true if x equals y. When using this function SAGA evaluates it in a per–cell basis. Therefore, eq(a,b) will not return 1 if grid a equals grid b. It will return 1 for those cells that have the same value in both grids, and zero otherwise.
47+
48+
- ifelse(condition, x, y) returns x if condition evaluates to true (condition=1) or y if it evaluates to false

0 commit comments

Comments
 (0)
Please sign in to comment.