Note: This document is for an older version of GRASS GIS that has been discontinued. You should upgrade, and read the current manual page.
r.centroids is a wrapper function for r.volume that computes the center point of raster clumps of data (neighboring, same-valued pixels). The centroids will always fall within the clump so they may not be the true, mathematical centroid. The centroids will always fall at the center of a pixel.
r.centroids requires an input raster containing clumps of data such as the output of r.clump.
g.region raster=basin_50K
r.centroids input=basin_50K output=centroids50K
Available at: r.centroids source code (history)
Latest change: Wednesday Mar 11 08:17:30 2026 in commit: 2a14bbb9928039c7c7d0ac539d42b08ff72c88f7
Main index | Raster index | Topics index | Keywords index | Graphical index | Full index
© 2003-2025 GRASS Development Team, GRASS GIS 8.4.3dev Reference Manual