Frequently asked question
Code:
# preliminary processing
- Create a copy of the input surface raster (subsequently
referred to as the currently filled dataset).
- Compute FocalFlow using the input copy.
- Fill one-cell sinks using neighborhood cell addressing
techniques.
# filling larger sinks
- Loop until no sink exists
- Compute FlowDirection
- Compute Sink using FlowDirection result
- Find number of sinks remaining (to decide if 'filling'
is finished)
- If not finished
- Compute Watershed using FlowDirection and Sink results
- Compute ZonalFill using Watershed result and currently
filled dataset
- Set any ZonalFill cellvalues to Z-Min if cells are NoData
- If zlimit is not used
- If filled dataset is < ZonalFill, update cell value
using ZonalFill result
- Else
- Compute ZonalMinimum using watershed result and filled
dataset
- Set any Zonalmin cellvalues to Z-Min if cells are
nodata
- Compute the difference dataset between ZonalFill and
ZonalMinimum results
- If filled dataset has cell values < ZonalFill and
difference dataset < Z-Limit
- Then update cell value using ZonalFill result
- Endif
- Endif
- End loop
Article ID:000006594
Get help from ArcGIS experts
Download the Esri Support App