I have a raster layer and want to reclassify one class based on a rule. Unfortunately I can't find commands for the raster calculator and don't know how to implement it.
Basically I want the Raster Calculator to do the following:
If "my-layer" == 0, reclassify it using a majority filter (8 neighbouring cells)...
I've used the Shift command for this type of thing. In model builder you can automate and trial and error your process. Tool location: Toolboxes\System Toolboxes\Data Management Tools.tbx\Projections and Transformations\Raster\Shift
Can't edit my previous post for some reason...? Anyways: the following raster calculator expression is better as it will ensure that 0 values don't get included when the FocalStatistics expression is executed: