[GRASSLIST:7011] Re: calculating center of intensity

Hamish hamish_nospam at yahoo.com
Sat Jun 4 00:43:36 EDT 2005


> If so, do the same for the y_coordinates and then calculate the center
> of mass "by hand" with the help of the r.stats module (because it
> doesn't appear that r.mapcalc has a sum() function).

r.univar has sum for entire map.

Separate coherent clouds by category number and then cycle a mask for
each value & run r.univar or as you mention use r.stats to do the same
in one step.



Hamish




More information about the grass-user mailing list