SAGA-GIS Module Library Documentation (v2.2.3)

Module Function

Generate a grid based on a functional expression.
The function interpreter uses an expression parser that offers the folowing operators:

+ Addition
- Subtraction
* Multiplication
/ Division
^ power
sin(a)
cos(a)
tan(a)
asin(a)
acos(a)
atan(a)
atan2(a,b)
abs(a)
int(a)
sqrt(a)
int(a)
mod(a,b)
gt(a,b) returns 1 if a greater b
lt(a,b) returns 1 if a lower b
eq(a,b) returns 1 if a equal b
The Variablen are x and y
Example: sin(x*x+y*y)/(x*x+y*y)

Parameters

 NameTypeIdentifierDescriptionConstraints
OutputFunctionGrid (output)RESULT--
OptionsxminFloating pointXMIN-Default: -5.000000
xmaxFloating pointXMAX-Default: 5.000000
yminFloating pointYMIN-Default: -5.000000
ymaxFloating pointYMAX-Default: 5.000000
FormulaTextFORMUL-Default: sin(x*x + y*y)

Command-line

Usage: saga_cmd grid_calculus 4 [-RESULT <str>] [-XMIN <str>] [-XMAX <str>] [-YMIN <str>] [-YMAX <str>] [-FORMUL <str>]
  -RESULT:<str>	Function
	Grid (output)
  -XMIN:<str>  	xmin
	Floating point
	Default: -5.000000
  -XMAX:<str>  	xmax
	Floating point
	Default: 5.000000
  -YMIN:<str>  	ymin
	Floating point
	Default: -5.000000
  -YMAX:<str>  	ymax
	Floating point
	Default: 5.000000
  -FORMUL:<str>	Formula
	Text
	Default: sin(x*x + y*y)