<?xml version="1.0" encoding="UTF-8"?><metadata>
<Esri>
<CreaDate>20181111</CreaDate>
<CreaTime>16430300</CreaTime>
<ArcGISFormat>1.0</ArcGISFormat>
<SyncOnce>TRUE</SyncOnce>
<ModDate>20181116</ModDate>
<ModTime>14562600</ModTime>
</Esri>
<dataIdInfo>
<idCitation>
<resTitle>Nibble (Raster Analysis)</resTitle>
<date>
<createDate>20181111</createDate>
</date>
</idCitation>
<idAbs>
<para>Replaces cells of a raster corresponding to a mask with the values of the nearest neighbors.</para>
</idAbs>
<descKeys KeyTypCd="005">
<keyTyp>
<keyTyp>005</keyTyp>
</keyTyp>
<keyword>Generalization</keyword>
<keyword>Simplify</keyword>
<keyword>Replace Cells</keyword>
</descKeys>
</dataIdInfo>
<distInfo>
<distributor>
<distorFormat>
<formatName Sync="TRUE">ArcToolbox Tool</formatName>
</distorFormat>
</distributor>
</distInfo>
<mdDateSt>20181116</mdDateSt>
<mdContact>
<rpOrgName>Environmental Systems Research Institute, Inc. (Esri)</rpOrgName>
<rpCntInfo>
<cntAddress>
<delPoint>380 New York Street</delPoint>
<city>Redlands</city>
<adminArea>California</adminArea>
<postCode>92373-8100</postCode>
<eMailAdd>info@esri.com</eMailAdd>
<country>United States</country>
</cntAddress>
<cntPhone>
<voiceNum>909-793-2853</voiceNum>
<faxNum>909-793-5953</faxNum>
</cntPhone>
<cntOnlineRes>
<linkage>http://www.esri.com</linkage>
</cntOnlineRes>
</rpCntInfo>
<role>
<RoleCd>007</RoleCd>
</role>
</mdContact>
<tool displayname="Nibble (Raster Analysis)" name="Nibble" softwarerestriction="none" toolboxalias="ra">
<summary>
<para>Replaces cells of a raster corresponding to a mask with the values of the nearest neighbors.</para>
</summary>
<alink_name>Nibble_ra</alink_name>
<toolIllust alt="Nibble tool illustration" src="withheld" type="dialog"/>
<toolIllust alt="Nibble tool illustration" src="withheld" type="illustration"/>
<parameters>
<param datatype="Raster Layer; Image Service; String" direction="Input" displayname="Input Raster" expression="inputRaster" name="inputRaster" sync="true" type="Required">
<pythonReference>
<para>The input raster that will be nibbled.</para>
<para>The raster can be either integer or floating point type.</para>
</pythonReference>
<dialogReference>
<para>The input raster that will be nibbled.</para>
<para>The raster can be either integer or floating point type.</para>
</dialogReference>
</param>
<param datatype="Raster Layer; Image Service; String" direction="Input" displayname="Input Mask Raster" expression="inputMaskRaster" name="inputMaskRaster" sync="true" type="Required">
<pythonReference>
<para>The raster used as the mask.</para>
<para>The cells that are NoData define the cells that will be nibbled, or replaced, by the value of the closest nearest neighbour.</para>
</pythonReference>
<dialogReference>
<para>The raster used as the mask.</para>
<para>The cells that are NoData define the cells that will be nibbled, or replaced, by the value of the closest nearest neighbour.</para>
</dialogReference>
</param>
<param datatype="String" direction="Input" displayname="Output Name" expression="outputName" name="outputName" sync="true" type="Required">
<pythonReference>
<para>The name of the output nibble raster service.</para>
<para>The default name is based on the tool name and the input layer name. If the layer already exists, you will be prompted to provide another name.</para>
</pythonReference>
<dialogReference>
<para>The name of the output nibble raster service.</para>
<para>The default name is based on the tool name and the input layer name. If the layer already exists, you will be prompted to provide another name.</para>
</dialogReference>
</param>
<param datatype="Boolean" direction="Input" displayname="Use NoData values if they are the nearest neighbor" expression="nibbleValues" name="nibbleValues" sync="true" type="Optional">
<pythonReference>
<para>Keywords defining if NoData values in the input raster are allowed to nibble into the area defined by the mask raster.</para>
<bulletList>
<bullet_item>ALL_VALUES —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.</bullet_item>
<bullet_item>DATA_ONLY —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.</bullet_item>
</bulletList>
</pythonReference>
<dialogReference>
<para>Defines if NoData values in the input raster are allowed to nibble into the area defined by the mask raster.</para>
<bulletList>
<bullet_item>Checked—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.</bullet_item>
<bullet_item>Unchecked—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.</bullet_item>
</bulletList>
</dialogReference>
</param>
<param datatype="Boolean" direction="Input" displayname="Nibble NoData cells" expression="nibbleNodata" name="nibbleNodata" sync="true" type="Optional">
<pythonReference>
<para>Keywords defining if NoData cells in the input raster that are within the mask will remain NoData in the output raster.</para>
<bulletList>
<bullet_item>PRESERVE_NODATA—Specifies that NoData cells in the input raster and within the mask will remain NoData in the output. This is the default.</bullet_item>
<bullet_item>PROCESS_NODATA—Specifies that NoData cells in the input raster and within the mask can be nibbled into valid output cell values.</bullet_item>
</bulletList>
</pythonReference>
<dialogReference>
<para>Defines if NoData cells in the input raster that are within the mask will remain NoData in the output raster.</para>
<bulletList>
<bullet_item>Unchecked—Specifies that NoData cells in the input raster and within the mask will remain NoData in the output. This is the default.</bullet_item>
<bullet_item>Checked—Specifies that NoData cells in the input raster and within the mask can be nibbled into valid output cell values.</bullet_item>
</bulletList>
</dialogReference>
</param>
<param datatype="Raster Layer; Image Service; String" direction="Input" displayname="Input Zone Raster" expression="inputZoneRaster" name="inputZoneRaster" sync="true" type="Optional">
<pythonReference>
<para>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.</para>
<para>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.</para>
</pythonReference>
<dialogReference>
<para>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.</para>
<para>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.</para>
</dialogReference>
</param>
</parameters>
<returnvalues/>
<environments>
<environment label="Cell size" name="cellSize"/>
<environment label="Output extent" name="extent"/>
<environment label="Mask" name="mask"/>
<environment label="Output coordinate system" name="outputCoordinateSystem"/>
<environment label="Snap raster" name="snapRaster"/>
</environments>
<usage>
<bullet_item>
<para>Nibble allows selected areas of a raster to be assigned the value of their nearest neighbor. It can be used to replace a replace a few individual cells with the values immediately nearby. With larger mask areas, larger swaths of cells can be replaced.</para>
</bullet_item>
<bullet_item>
<para>Cells that are NoData in the input mask raster define which cells will be nibbled. Any locations in the input raster that are not within the mask area will not be nibbled, and so the output value for them will be the same as the input value.</para>
<para>NoData cells in the input raster that are not within the mask are not nibbled. They will remain NoData regardless of the settings of the two NoData parameters.</para>
</bullet_item>
</usage>
<scriptExamples>
<scriptExample>
<title>Nibble example 1 (Python window)</title>
<para>This example replaces cells identified by the mask input with values determined by the nearest neighbors of the input raster.</para>
<code xml:space="preserve">import arcpy
arcpy.Nibble_ra(
"https://MyPortal.esri.com/server/rest/services/Hosted/in_raster/ImageServer",
"https://MyPortal.esri.com/server/rest/services/Hosted/in_mask/ImageServer",
"outnibbled1")
</code>
</scriptExample>
<scriptExample>
<title>Nibble example 2 (stand-alone script)</title>
<para>This example replaces cells identified by the mask input with values determined by the nearest neighbors of the input raster.</para>
<code xml:space="preserve">#-------------------------------------------------------------------------------
# Name: Nibble_Ex_02.py
# Description: Replaces cells of a raster corresponding to a mask # with the values of the nearest neighbors within defines zones.
#
# Requirements: ArcGIS Image Server
# Import system modules
import arcpy
# Set local variables
inputLayer = "https://MyPortal.esri.com/server/rest/services/Hosted/inras/ImageServer"
inputMaskLayer = "https://MyPortal.esri.com/server/rest/services/Hosted/inmask/ImageServer"
outputName = "outnibbled2"
nibbleValuesOpt = "DATA_ONLY"
nibbleNodataOpt = "PROCESS_NODATA"
inputZoneLayer = "https://MyPortal.esri.com/server/rest/services/Hosted/inzones/ImageServer"
arcpy.Nibble_ra(inputLayer, inputMaskLayer, outputName, nibbleValuesOpt, nibbleNodataOpt, inputZoneLayer)
</code>
</scriptExample>
</scriptExamples>
<shortdesc>ArcGIS raster analysis geoprocessing tool that replaces cells of a raster corresponding to a mask with the values of the nearest neighbors.</shortdesc>
<arcToolboxHelpPath>withheld</arcToolboxHelpPath>
</tool>
</metadata>
