Finding the number of occurrences from an input list meeting a specified criterion
Three local tools assign the number of times a cell's values meet a specified criterion relative to the input values: Equal To Frequency, Greater Than Frequency, and Less Than Frequency. These tools determine for each cell how many times the input values obtained from a list of rasters are either equal to, greater than, or less than the specified value input.
Tip:
To have the specified value be a single number, you can use the Create Constant Raster tool to create a constant raster of that value.
Example
For example, for a particular cell location, consider a Value raster value of 2 and the following values:
ValRas |
InRas1 |
InRas2 |
InRas3 |
InRas4 |
InRas5 |
InRas6 |
---|---|---|---|---|---|---|
2 |
3 |
6 |
1 |
2 |
0 |
5 |
The sorted list of the input cell values is 0, 1, 2, 3, 5, 6.
The output from these tools would be as follows:
- Equal To Frequency—Since there is only a single input value in the list that is equal to the Value raster, the output cell value is 1.
- Greater Than Frequency—Three input values are greater than the comparison value of 2, so the output cell value is 3.
- Less Than Frequency—Two values are less than the comparison value, so the output cell value is 2.
Related Topics
4/10/2014