Nibble function

Available with Spatial Analyst license.

Overview

Replaces selected cells of a raster with the value of their nearest neighbor. This is useful for editing areas of a raster in which the data may be erroneous.

Cells that are NoData in the Mask Raster define the locations where cell values in the input Raster will be nibbled (replaced). Any locations in the input Raster that are outside the mask area will not be nibbled, and will have the same value in the output raster as they have in the input raster.

Nibble illustration

This is a global raster function.

Notes

Use the Nibble NoData cells parameter to determine if NoData cells in the input raster that are within the mask area should remain NoData or if they can be replaced by the nearest valid value.

Parameters

ParametersDescription

Raster

(Required)

The input raster that will be nibbled.

The input raster can be an integer or a floating-point type.

Mask Raster

(Required)

The raster used as the mask.

Cells with NoData as their value will be nibbled in the input Raster.

The mask raster can be an integer or a floating-point type.

Use NoData values if they are the nearest neighbor

Defines if NoData values in the input raster are allowed to nibble into the area defined by the mask raster.

  • Yes—Specifies that the nearest neighbor value will be used whether it is NoData or another data value in the input raster. NoData values in the input raster are free to nibble into areas defined in the mask if they are the nearest neighbor. This is the default.
  • No—Specifies that only data values are free to nibble into areas defined in the mask raster. NoData values in the input raster are not allowed to nibble into areas defined in the mask raster even if they are the nearest neighbor.

Nibble NoData cells

Defines if NoData cells in the input raster will remain NoData in the output raster.

  • No—Specifies that NoData cells in the input raster will remain NoData in the output. This is the default.
  • Yes—Specifies that NoData cells in the input raster and within the mask can be nibbled into valid output cell values.

Zone Raster

The input zone raster.

A zone is all the cells in a raster that have the same value, whether or not they are contiguous. The input zone layer defines the shape, values, and locations of the zones. The zone raster can be either integer or floating point type.

This parameter is optional.

Related topics


In this topic
  1. Overview
  2. Notes
  3. Parameters