Fill (Raster Analysis)

Titleā€ƒ Fill (Raster Analysis)

Summary

Fills sinks in a surface raster to remove small imperfections in the data.


Illustration

Fill tool illustration Fill tool illustration

Usage


Syntax

Parameter Explanation
inputSurfaceRaster

The input raster representing a continuous surface.

outputName

The name of the output fill raster service.

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.

zLimit (Optional)

Maximum elevation difference between a sink and its pour point to be filled.

Code Samples

Fill example 1 (Python window)

This example fills the sinks of an input elevation surface raster.


import arcpy
arcpy.Fill_ra("https://myserver/rest/services/elevation/ImageServer","outFill1")

                    

Fill example 2 (stand-alone script)

This example fills the sinks of an input elevation surface raster.


#---------------------------------------------------------------------------
# Name: Fill_example02.py
# Requirements: ArcGIS Image Server

# Import system modules
import arcpy

# Set local variables
inSurface = "https://myserver/rest/services/elevation/ImageServer"
outputFill = "outFill2"
zLimit = 3.28

# Execute Fill raster analysis tool
arcpy.Fill_ra(inSurface, outputFill, zLimit)

                    

Tags

Credits

Use limitations