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.

Note: This addon document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade your GRASS GIS installation, and read the current addon 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]**- Name of input raster map
**output**=*name***[required]**- Name for output raster map
**keyval**=*integer***[required]**- Key value
**method**=*string[,**string*,...]**[required]**- Operation to perform on fragments
- Options:
*distance, path_distance, area, perimeter, shapeindex* **number**=*num[-num][,**num[-num]*,...]**[required]**- Number of nearest neighbors to analyse
**statmethod**=*string***[required]**- Statistical method to perform on the values
- Options:
*average, variance, standard deviation, value, sum* **dmout**=*string*- Output name for distance matrix and id-map (performed if not empty)
**adj_matrix**=*string*- Output name for adjacency matrix (performed if not empty)
**title**=*"phrase"*- Title for resultant raster map

Within *r.pi.enn* the following setting have to be set:

**Distance**- The
*Average*computes the average distance of the n NN. **Path distance**- The
*path_distance*computes the actual distance to the n NN. **Area**- The
*area*computes the area of the n NN. **Perimeter**- The
*perimeter*computes the perimeter of the n NN. **SHAPE Index**- The
*shapeindex*computes the SHAPE Index of the n NN.

**Average**- The
*Average*computes the average distance of the n NN. **Variance**- The
*Variance*computes the variance of the distance of the n NN. **Std. Dev.**- The
*Std. Dev*computes the std. dev. of the distance of the n NN.

r.pi.enn input=landclass96 output=dist1.c5 keyval=5 method=distance number=1 statmethod=average # -> gives a map of patches (all of category of 5) with the average distance to their first NN r.pi.enn input=landclass96 output=dist10.c5 keyval=5 method=distance number=10 statmethod=average # -> gives a map of patches (all of category of 5) with the average distance to their first-10th NN r.pi.enn input=landclass96 output=dist1.5.10.c5 keyval=5 method=distance number=1,5,10 statmethod=average # -> gives a map of patches (all of category of 5) with the average distance to their first, first-to-fifth and first-to-10th NN r.pi.enn input=landclass96 output=dist10b.c5 keyval=5 method=path_distance number=10 statmethod=average # -> gives a map of patches (all of category of 5) with the actual distance to the 10th NN

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.enn source code (history)

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

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.

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

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

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