Minimum value within a specified square neighbourhood
Result = windowminimum(expression, windowlength)
spatial ordinal, scalar
spatial, non spatial scalar
windowlength is measured in true length (default)
windowlength is measured in number of cell lengths
For each cell a square window with the cell in its centre is defined by windowlength. The windowlength is the length of the window in horizontal and vertical directions. For each cell on expression, the minimum cell value within its window is determined and assigned to the corresponding cell on Result. Both cells on expression which are entirely in the window and cells which are partly in the window are considered.
The cell value on windowlength should be greater than 0, else a missing value is assigned to the corresponding cell on Result.
A cell on windowlength with a missing value results in a missing value on Result at the corresponding cell. However, if a missing value on windowlength occurs in a cell in the window which is not the centre cell of the window the value on expression in that cell is considered for determination of the minimum cell value in the window.
This operation belongs to the group of Neigbourhood operators; window operators
- • pcrcalcbindingResult1 = Result1.map;Expr = Expr.map;initialreport Result1 = windowminimum( Expr, 6);• pythonExpr = readmap(“Expr.map”)Result1 = windowminimum( Expr, 6)
- • pcrcalcbindingResult2 = Result2.map;Expr = Expr.map;WinLen2 = WinLen2.map;initialreport Result2 = windowminimum(Expr, WinLen2);• pythonExpr = readmap(“Expr.map”)WinLen2 = readmap(“WinLen2.map”)Result2 = windowminimum(Expr, WinLen2)