WeightedMean function

Calculate spatial area-weighted average of multidimensional arrays