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