Fills sinks in a surface raster to remove small imperfections in the data.
Learn more about how Fill works
Usage tips
Command line and Scripting
-
A sink is a cell with an undefined drainage direction; no cells surrounding it are lower. The pour point is the boundary cell with the lowest elevation for the contributing area of a sink. If the sink were filled with water, this is the point where water would pour out.
-
The z-limit specifies the maximum depth of a sink that will be filled. The z-limit is not the maximum depth to which a sink will be filled.
-
All sinks that are less than the z-limit lower than their lowest adjacent neighbor will be filled to the height of their pour points.
-
Due to the iterative nature of Fill, it can be CPU and disk intensive. It can require up to four times the disk space of the input raster.
-
The number of sinks found with the z-limit will determine the length of processing time. The more sinks, the longer the processing time.
-
The Sink tool can be used to find the number of sinks and help identify their depth. Knowing the depth of the sinks can help in determining an appropriate z-limit for Fill.
-
Fill can also be used to remove peaks. A peak is a cell where no adjacent cells are higher. To remove peaks, the input surface raster must be inverted. This can be performed with the Minus tool. Specify the highest value of the input surface raster as the input raster or constant value 1, and input surface raster as Input raster or constant value 2. Perform a Fill. Invert the results to obtain a surface that has original surface raster values with the peaks removed. The z-limit can be applied to this process as well. If nothing is specified for z-limit, then all peaks will be removed. If it is specified, where the difference in z-value between a peak and its highest adjacent neighbor is greater than the z-limit, that peak will not be removed.
-
The following environment settings affect this tool:
- General: Current Workspace, Scratch Workspace, Output Coordinate system, Output Extent, Snap Raster.
- Raster Storage: See the Raster Storage settings for the particular output raster format selected.
ArcObjects
-
A sink is a cell with undefined drainage direction; no cells surrounding it are lower. The pour point is the boundary cell with the lowest elevation for the contributing area of a sink. If the sink were filled with water, this is the point where water would pour out.
-
The [zLimit] specifies the maximum depth of a sink that will be filled. The [zLimit] is not the maximum depth to which a sink will be filled.
-
All sinks that are less than the [zLimit] lower than their lowest adjacent neighbor will be filled to the height of their pour points.
-
Due to the iterative nature of this command, it can be CPU and disk intensive. It can require up to four times the disk space of the input raster.
-
The number of sinks or peaks found with the [zLimit] will determine the length of processing time. The more sinks or peaks, the longer the processing time.
-
The Sink method can be used to find the number of sinks and help identify their depth. Knowing the depth of the sinks can help in determining an appropriate [zLimit] for Fill.
-
Fill can also be used to remove peaks. A peak is a cell where no adjacent cells are higher. To remove peaks, the geoDataset raster must be inverted. This can be performed with the Minus method. Subtract the surface raster from the highest value of the surface raster. Perform a Fill. Invert the output from Fill (subtract the Fill result from the maximum z value). This will generate a surface that has the peaks removed. The [zLimit] can be applied to this process as well. If nothing is specified for [zLimit], then all peaks will be removed. If it is specified, where the difference in z value between a peak and its highest adjacent neighbor is greater than the [zLimit], that peak will not be removed.