![](http://geology.wlu.edu/harbor/geol260/lecture_notes/clump.jpg)
The process of querying or classifying grids often leads to isolated small patches of cells and highly irregular boundaries around groups of cells of the same category. The "precision" of these may outweigh their utility as identifiers of hazard, suitability, or condition. Probably the easiest way to eliminate these two conditions is to use a "median" or "mode" filter (see "filter" in next notes section).. Other methods are available.
Growing and shrinking
This process simplifies a grid or vector cell group by alternately expanding then shrinking the size of the cell groups or vector polygons (or by shrinking then expanding). For grids, adding one cell around the perimiter of all cell groups and then trimming one has the effect of smooth the boundaries because small embayments are eliminated. See the explanation for Expand, Shrink, and BoundaryClean in theArcMap Spatial Analyst Functional Reference.
![](http://geology.wlu.edu/harbor/geol260/lecture_notes/clump2.jpg)
This is grow first then shrink. What would shrink then grow do?
In Raster Space
The top maps show a grow-shrink once using the BoundaryClean tool with the "oneway" option, which is not the default. These "clumps" are available as the raster file .../demo/clumps/clump_this.mxd. (made from the query "Maury_zoom > 1200 & mz_slope < 40").
![](http://geology.wlu.edu/harbor/geol260/lecture_notes/clump3.jpg)
![](http://geology.wlu.edu/harbor/geol260/lecture_notes/clump4.jpg)
Here is the same Grid Command, but with the TwoWay variable (runs twice, but the second time through it reverses the grow-shrink to shrink-grow. This eliminates the small islands and peninsulas.)
![](http://geology.wlu.edu/harbor/geol260/lecture_notes/clump3.jpg)
![](http://geology.wlu.edu/harbor/geol260/lecture_notes/clump5.jpg)
The other request available in ArcMap is "Nibble," which you can explore on your own. It is more complicated in is execution and effect.
Grouping contiguous cells into individual regions
This process allows us to identify contiguous cells as unique "clumps." This will be important for selecting them in an analyses such as assigning hazard. In ArcGIS, this process works on grids where the cells to be "clumped" share a common value, and the rest of the cells have "No Data." You can also choose whether of not diagonals count as "contiguous" and whether to save the original value in a "link" field or not. See RegionGroup in the ArcMap Spatial Analyst Functional Reference
![](http://geology.wlu.edu/harbor/geol260/lecture_notes/clump6.jpg)
![](http://geology.wlu.edu/harbor/geol260/lecture_notes/clump7.jpg)