[GRASS-user] COG
Markus Neteler
neteler at osgeo.org
Fri Dec 11 14:55:00 EST 2009
On Wed, Dec 9, 2009 at 4:28 PM, Achim Kisseler
<ak7 at jupiter.uni-freiburg.de> wrote:
>
> Hi all,
>
> is it possible in grass to calculate the "center of gravity"?
Yes.
> Given two raster maps:
> 1) map where areas are defined (can be vector map, too)
> 2) raster map with "gravity" values
>
> I cannot find something like this in grass.
Please try here:
http://www.grassbook.org/scripts/rcentroid.sh.txt
You may adapt it to your needs (and modernize it as well, it is
from the first edition of the book).
Best
Markus
More information about the grass-user
mailing list