Finding the position from an input list meeting a specified criterion

There are two local tools that assign the position of the raster containing the cell value that meets a specified criterion relative to a list of values obtained from a series of input rasters: Highest Position and Lowest Position. The two possible criteria are the position of the raster with the maximum value for the input rasters and the position of the raster with the minimum value.

Example

The following table shows the values from each input raster for a particular cell location:

InRas1

InRas2

InRas3

InRas4

InRas5

InRas6

4

3

6

3

5

4

Example input values

Sorting these values from lowest to highest would result in the following table:

Value

Input raster

3

InRas2

InRas4

4

InRas1

InRas6

5

InRas5

6

InRas3

Sorted values list

Highest position

The highest value in the list, 6, is contained in the third input raster, InRas3.

Using the Highest Position tool, the resultant output value representing the position of the raster having the maximum value for that cell is 3.

Lowest position

In this example, there are two rasters that contain the lowest value in the input list, that value being 3.

Using the Lowest Position tool, the position of the first raster encountered with the value 3 will be reported. In this example, while both the second (InRas2) and fourth (InRas4) rasters contain the lowest value (3), the second raster is encountered first, so the output cell value will be 2.

Related Topics


6/29/2011