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).
- Author: V.Wichmann & O.Conrad (c) 2011
- Menu: Grid|Gaps
Parameters
| Name | Type | Identifier | Description | Constraints |
Input | Grid | Grid (input) | INPUT | - | - |
Output | Result Grid (*) | Grid (optional output) | RESULT | - | - |
Options | Grid system | Grid system | PARAMETERS_GRID_SYSTEM | - | - |
Operation | Choice | OPERATION | - | Available Choices: [0] shrink [1] expand [2] shrink and expand [3] expand and shrink Default: 3 |
Search Mode | Choice | CIRCLE | - | Available Choices: [0] Square [1] Circle Default: 1 |
Radius | Integer | RADIUS | - | Minimum: 1 Default: 1 |
Method | Choice | EXPAND | - | 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