[R-sig-Geo] center of mass for variable values in a grid

Waichler, Scott R Scott.Waichler at pnl.gov
Sat Sep 11 01:49:13 CEST 2010


Is there an existing function to compute the coordinates for the center of mass of a variable in a 2D or 3D grid, where dx, dy, and dz are known for all cells?  The mass in each cell varies by location.

Thanks,
Scott Waichler
Pacific Northwest National Laboratory
scott.waichler at pnl.gov



More information about the R-sig-Geo mailing list