Topographic Position Index (Spatial Analyst Tools)
Summary
Calculates the topographic position index value for each cell within a specified neighborhood.
Usage
The output raster of this tool contains the Topographic Position Index (TPI) values for each cell. A TPI value is the difference between the current cell value and the mean value of all the cells in its neighborhood.
The available neighborhood shapes are annulus (a donut or ring), circle, rectangle, and wedge. A custom neighborhood shape can be defined using a kernel file.
When a circular, annulus-shaped, or wedge-shaped neighborhood is specified, some of the outer diagonal cells may not be considered in the calculations because the center of the cell must be encompassed within the neighborhood.
The irregular neighborhood type requires that a kernel file value be specified. A kernel file is an ASCII text file that specifies the values and shape of the neighborhood. The file can be created with any plain text editor. The file must have a
.txtextension and no spaces in the file name.When the output raster format is
.crf, this tool supports the Pyramid raster storage environment. Pyramids will be created in the output by default. For any other output format, this environment is not supported, and pyramids will not be created.See Analysis environments and Spatial Analyst for additional details on the geoprocessing environments that apply to this tool.
Parameters
| Label | Explanation | Data type |
|---|---|---|
|
Input Surface Raster |
The input surface raster. |
Raster Layer |
|
Neighborhood (Optional) |
The cells surrounding a processing cell that will be used in the TPI calculation. There are several predefined neighborhood types to choose from, or a custom kernel can be defined. Once the neighborhood type is selected, other parameters can be set to fully define the shape, size, and units of measure. The default neighborhood is an annulus with an inner radius of one cell and an outer radius of three cells. The following are the forms of the available neighborhood types:
For the annulus, circle, rectangle and wedge neighborhood types, the distance units for the parameters can be specified in Cell units or Map units. Cell units is the default. For the irregular neighborhood type, the first line in the kernel file defines the width and height of the neighborhood in numbers of cells. The subsequent lines indicate how the input value that corresponds to that location in the kernel will be processed. A value of 0 in the kernel file indicates that the corresponding location will not be included in the calculation. A value of 1 in the kernel file indicates that the corresponding input cell will be included in the operation. |
Neighborhood |
Return value
| Label | Explanation | Data type |
|---|---|---|
|
Output Raster |
The output topographic position index raster. |
Raster |
Environments
Auto Commit, Cell Size, Cell Size Projection Method, Compression, Current Workspace, Extent, Geographic Transformations, Mask, Output CONFIG Keyword, Output Coordinate System, Pyramid, Scratch Workspace, Snap Raster, Tile Size
Licensing information
- Basic: Requires Spatial Analyst
- Standard: Requires Spatial Analyst
- Advanced: Requires Spatial Analyst