Nibble function

Available with Image Server

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 with the masked locations that will be replaced by the value of their nearest neighbor.

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

Mask Raster

(Required)

The raster that identifies the locations in the input raster that will be replaced.

Cells with a value of NoData are considered to be within the masked area. In the output raster, these locations will be replaced by the value of their nearest neighbor 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

Specifies whether NoData cells in the input raster can replace cells in the masked areas if they are the nearest neighbor.

  • Yes—Both NoData and data values can replace cells in the masked area. This means that NoData values in the input raster can replace areas defined in the mask if they are the nearest neighbor. This is the default.
  • No—Only data values can replace cells in the masked area. 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

Specifies whether NoData cells in the input raster that are within the masked area will be preserved or replaced.

  • No—Any NoData cells in the input raster that are within the masked area will be preserved (remain as NoData) in the output. This is the default.
  • Yes—NoData cells in the input raster that are within the masked area can be replaced with the value of the nearest neighbor that is outside the masked area.

Zone Raster

The input zone raster. For each zone, input cells that are within the mask will be replaced only by the nearest cell values within that same zone.

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.


In this topic
  1. Notes
  2. Parameters