SAGA-GIS Tool Library Documentation (v7.3.0)

Tool Simple Filter (Restricted to Polygons)

Simple standard filters for grids, evaluation within polygons.

Parameters

 NameTypeIdentifierDescriptionConstraints
InputGridGrid (input)INPUT--
pPolygonsShapes (input)SHAPESpPolygons: the simple filter will only operate on grid cells which fall in the same shape-
OutputFiltered Grid (*)Grid (optional output)RESULT--
OptionsGrid systemGrid systemPARAMETERS_GRID_SYSTEM--
FilterChoiceMETHODChoose the shape of the filter kernel.Available Choices:
[0] Smooth
[1] Sharpen
[2] Edge
Default: 0
Kernel TypeChoiceKERNEL_TYPEThe shape of the filter kernel.Available Choices:
[0] Square
[1] Circle
Default: 1
Kernel RadiusIntegerKERNEL_RADIUSThe kernel radius in cells.Minimum: 1
Default: 2
(*) optional

Command-line

Usage: saga_cmd grid_filter 18 [-INPUT <str>] [-RESULT <str>] [-SHAPES <str>] [-METHOD <str>] [-KERNEL_TYPE <str>] [-KERNEL_RADIUS <num>]
  -INPUT:<str>        	Grid
	Grid (input)
  -RESULT:<str>       	Filtered Grid
	Grid (optional output)
  -SHAPES:<str>       	pPolygons
	Shapes (input)
  -METHOD:<str>       	Filter
	Choice
	Available Choices:
	[0] Smooth
	[1] Sharpen
	[2] Edge
	Default: 0
  -KERNEL_TYPE:<str>  	Kernel Type
	Choice
	Available Choices:
	[0] Square
	[1] Circle
	Default: 1
  -KERNEL_RADIUS:<num>	Kernel Radius
	Integer
	Minimum: 1
	Default: 2