Add options to deal with ties in cell statistics tool when selecting the majority option

Idea created by tomdilts on Aug 9, 2019
    Reviewed
    Score20
    • tomdilts
    • curtvprice

    Cell statistics is an incredibly useful tool.  When using the MAJORITY option the default behavior of the tool for dealing with ties (when the two most abundant values are of equal abundance) is to create NoData.  This will often result in a map with lots of holes (NoData cells).  I would propose adding at least three options for dealing with ties.  One option would be FIRST. This would take the first value of the two tied values in the raster stack.  Another option would be LAST in which it takes the last raster of the stack with the tied value. A third option would be RANDOM. This would randomly select one of the two tied values. Finally a fourth option would be NEIGHBORHOOD. This option would expand by searching a 3x3 neighborhood and using the MAJORITY  cell in that neighborhood.  If a tie couldn't be broken using a 3x3 neighborhood then a 5x5 neighborhood would be used, etc. until all cells have a value.