SAGA-GIS Tool Library Documentation (v7.2.0)

Tool Shrink and Expand

Regions with valid data in the input grid can be shrunk or expanded by a certain amount (radius). Shrinking just sets the border of regions with valid data to NoData, expanding sets NoData cells along the border of regions with valid data to a new valid value, computed by the method selected (min, max, mean, majority).

Parameters

 NameTypeIdentifierDescriptionConstraints
InputGridGrid (input)INPUT--
OutputResult Grid (*)Grid (optional output)RESULT--
OptionsGrid systemGrid systemPARAMETERS_GRID_SYSTEM--
OperationChoiceOPERATION-Available Choices:
[0] shrink
[1] expand
[2] shrink and expand
[3] expand and shrink
Default: 3
Search ModeChoiceCIRCLE-Available Choices:
[0] Square
[1] Circle
Default: 1
RadiusIntegerRADIUS-Minimum: 1
Default: 1
MethodChoiceEXPAND-Available Choices:
[0] minimum
[1] maximum
[2] mean
[3] majority
Default: 3
(*) optional

Command-line

Usage: saga_cmd grid_tools 28 [-INPUT <str>] [-RESULT <str>] [-OPERATION <str>] [-CIRCLE <str>] [-RADIUS <num>] [-EXPAND <str>]
  -INPUT:<str>    	Grid
	Grid (input)
  -RESULT:<str>   	Result Grid
	Grid (optional output)
  -OPERATION:<str>	Operation
	Choice
	Available Choices:
	[0] shrink
	[1] expand
	[2] shrink and expand
	[3] expand and shrink
	Default: 3
  -CIRCLE:<str>   	Search Mode
	Choice
	Available Choices:
	[0] Square
	[1] Circle
	Default: 1
  -RADIUS:<num>   	Radius
	Integer
	Minimum: 1
	Default: 1
  -EXPAND:<str>   	Method
	Choice
	Available Choices:
	[0] minimum
	[1] maximum
	[2] mean
	[3] majority
	Default: 3