# Spatial averaging over the domain

**URL:** https://discourse.paraview.org/t/spatial-averaging-over-the-domain/9171
**Category:** ParaView Support
**Created:** [March 14, 2022, 7:37am UTC](https://discourse.paraview.org/t/spatial-averaging-over-the-domain/9171 "2022-03-14T07:37:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RaviGupta](https://discourse.paraview.org/user_avatar/discourse.paraview.org/ravigupta/32/8782_2.png) [@RaviGupta](https://discourse.paraview.org/u/RaviGupta)
#### Post date: [March 14, 2022, 7:37am UTC](https://discourse.paraview.org/t/spatial-averaging-over-the-domain/9171/1 "2022-03-14T07:37:48Z")

</div>

Hi,

I’m trying to find the domain-wide spatial average of a scalar quantity q. I’m working with a non-uniform grid. The python calculator has a mean option. However, it is stated that it returns the average of the array’s contents. Will it take into account the mesh’s non-uniformity in averaging?. The mean option in the python calculator is giving nothing and saying the data range is too small to render. Can anyone recommend a method for performing overall spatial averaging of a scalar quantity with data on a non-uniform mesh?

Thanks in advance.
