The tool allows selected areas of a raster to be assigned the value of their nearest neighbor. This is useful for editing areas of a raster where the data is known to be erroneous.
First, the algorithm determines all areas from the mask raster with the value NoData. The corresponding areas on the input raster will be nibbled. Second, an internal Euclidean allocation is performed to allocate values to the masked cells based on Euclidean distance.
The value of the cells from the input raster that correspond to the cells of NoData from the mask raster are nibbled and replaced by the value of the nearest neighbor according to Euclidean distance.
In the following example, Nibble was applied to the specified input and mask rasters. The operation will only be applied to the input cells that correspond to the NoData values in the mask raster. Those locations will receive the value of the cell that is identified as the closest from the input raster that is outside the defined mask.
In the following example, the mask was created by applying a condition on the input raster that set all values of 7 to NoData.