Available with Image Server
The Nibble tool replaces cells of a raster corresponding to a mask with the value of the nearest neighbor.
Example
You can use this tool to edit areas of a raster where the data may be erroneous.
Usage notes
Nibble includes configurations for input layers, NoData settings, and result layer.
Input layers
The Input layers group includes the following parameters:
Input raster specifies the raster with the masked locations that will be replaced by the value of their nearest neighbor.
The raster can be either integer or floating point type.
Input mask raster 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.
The raster can be either integer or floating point type.
The Optional zone layer group includes the following parameter:
Input zone raster specifies the raster to define the input zones. 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.
NoData settings
The NoData settings group includes the following parameters:
Allow nearest neighbor cells to be NoData specifies whether NoData cells in the input raster can replace cells in the masked areas if they are the nearest neighbor.
Checked—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.
Unchecked—Only data values can replace cells in the masked area. NoData values in the input raster are not allowed to nibble into masked areas even if they are the nearest neighbor.
Process masked NoData cells specifies whether NoData cells in the input raster that are within the masked area will be preserved or replaced.
Unchecked—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.
Checked—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.
Result layer
The Result layer group includes the following parameters:
Output raster name is the name of the output raster layer that contains the nibbled result.
The name must be unique. If a layer with the same name already exists in your organization, the tool will fail and you will be prompted to use a different name.
- Save in folder specifies the name of a folder in My content where the result will be saved.
Environments
Analysis environment settings are additional parameters that affect a tool's results. You can access the tool's analysis environment settings from the Environment settings parameter group.
This tool honors the following analysis environments:
- Output coordinate system
- Processing extent
Note:
The default processing extent in Map Viewer is Full extent. This default is different from Map Viewer Classic in which Use current map extent is enabled by default.
- Snap raster
- Cell size
- Mask
- Parallel processing factor
Output
The output raster records the result of the nibble operation. The cell values at the identified input locations will be replaced with the value of their nearest neighbor.
Usage requirements
This tool requires the following licensing and configurations:
- Creator or GIS Professional user type
- Publisher or Administrator role, or an equivalent custom role
- ArcGIS Image Server configured for raster analysis
Resources
Use the following resources to learn more:
- How Nibble works in ArcGIS Pro
- Nibble in ArcGIS REST API
- Nibble in ArcGIS API for Python
- Nibble in ArcGIS Pro with the Spatial Analyst extension
- Nibble in ArcGIS Pro with the Raster Analysis extension