uxarray icon indicating copy to clipboard operation
uxarray copied to clipboard

Weighted Mean Functionality

Open philipc2 opened this issue 1 year ago • 1 comments
trafficstars

Add support for weighted means

Face Centered Variables

  • Use the Face Area as a weight

Edge Centered Variables

  • Use the Edge Magnitude as a weight

philipc2 avatar Jun 28 '24 16:06 philipc2

Possible code for a weighted face average:

# (dask * numpy) / (numpy) ? 
(self.data * self.uxgrid.face_areas) / self.uxgrid.face_areas.sum()

philipc2 avatar Jun 28 '24 17:06 philipc2