Note: This document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade, and read the current manual page.

**-a**- Set for 8 cell-neighbors. 4 cell-neighbors are default
**--overwrite**- Allow output files to overwrite existing files
**--help**- Print usage summary
**--verbose**- Verbose module output
**--quiet**- Quiet module output
**--ui**- Force launching GUI dialog

**input**=*name***[required]**- Raster map containing categories
**output**=*name***[required]**- Output patch-based result as raster map
**keyval**=*integer***[required]**- The value of the class to be analysed
**method**=*string***[required]**- Operation to perform on fragments
- Options:
*area, perimeter, shape, border, compactness, asymmetry, area-perimeter, fractal, ENN* **title**=*"phrase"*- Title for resultant raster map

Available options for the index to be computed for patches within a certain class are: area (area), perimeter (perim), SHAPE (shape), Border-Index (bor), Compactness (comp), Asymmetry (asym), area-perimeter ratio (apr), fractal dimension (fract), distance to euclidean nearest neighbour (ENN).

**Area**- The
*Area*computes the area of each patch. **Perimeter**- The
*Perimeter*computes the perimeter of each patch. **Area-Perimeter ratio**- The
*Area-Perimeter ratio*divides the patch perimeter by the area. **SHAPE Index**- The
*SHAPE Index*divides the patch perimete by the minimum perimeter possible for a maximally compact patch of the corresponding patch area. **Border Index**- The
*Border Index*.... **Compactness Index**- The
*Compactness Index*.... **Asymmetry Index**- The
*Border Index*.... **Fractal Dimension Index**- The
*Fractal Dimension Index*.... **Nearest Neighbour Index**- The
*Nearest Neighbour Index*computes the Euclidean distance to the first nearest neighbour patch.

g.region rast=landclass96

r.pi.index input=landclass96 output=landclass96_forestclass5_area keyval=5 method=area # improve colouring of resulting map: r.colors landclass96_forestclass5_area col=bgyr

r.pi.index input=landclass96 output=landclass96_forestclass5_area keyval=5 method=area -a

r.pi.index input=landclass96 output=landclass96_forestclass5_ENN keyval=5 method=ENN -a

Scientific concept: Dr. Martin Wegmann

Department of Remote Sensing

Remote Sensing and Biodiversity Unit

University of Wuerzburg, Germany

Port to GRASS GIS 7: Markus Metz

Available at: r.pi.index source code (history)

Latest change: Monday Jun 28 07:54:09 2021 in commit: 1cfc0af029a35a5d6c7dae5ca7204d0eb85dbc55

Main index | Raster index | Topics index | Keywords index | Graphical index | Full index

© 2003-2023 GRASS Development Team, GRASS GIS 7.8.9dev Reference Manual