From c0e3b8fbf9975b1b1875c70a493dc1e7a2ffaa26 Mon Sep 17 00:00:00 2001 From: volaya Date: Tue, 27 Sep 2016 13:26:01 +0200 Subject: [PATCH] [processing] added short help for saga raster calculator --- python/plugins/processing/algs/help/saga.yaml | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 python/plugins/processing/algs/help/saga.yaml diff --git a/python/plugins/processing/algs/help/saga.yaml b/python/plugins/processing/algs/help/saga.yaml new file mode 100644 index 00000000000..8068ccbb149 --- /dev/null +++ b/python/plugins/processing/algs/help/saga.yaml @@ -0,0 +1,48 @@ +saga:rastercalculator: > + This algorithm allows to perform algebraic operations on raster layers + + 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. + + The resulting layer has the extent and cellsize of the main layer. + + The following operators and functions are available. + + - Addition (+) + + - Subtraction ( - ) + + - Multiplication (*) + + - Division (/) + + - Power (^) + + - ln(x): returns natural logarithm of x. + + - sin(x): returns the sine of x. x must be in radians + + - cos(x): returns the cosine of x. x must be in radians + + - cos(x): returns the tangente of x. x must be in radians + + - asin(x): returns the arcsine of x, in radians + + - acos(x): returns the arccosine of x, in radians + + - atan(x): returns the arctangent of x, in radians + + - atan2(x,y): returns the arctangent y/x, in radians + + - abs(x): return the absolute value of x. abs(- 5)=5 + + - int(x): returns the integer part of x. int(5.4)=5 + + - mod(x,y): returns the modulus of x/y. mod(7,4)=3 + + - gt(x,y): true if x is greater than y + + - lt(x,y): true if x is lower than y + + - 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. + + - ifelse(condition, x, y) returns x if condition evaluates to true (condition=1) or y if it evaluates to false \ No newline at end of file