nctoolkit.DataSet.spatial_mean#
- DataSet.spatial_mean()#
spatial_mean: Calculate the area weighted spatial mean for all variables.
This is performed for each time step.
Examples
If you want to calculate the spatial mean for a dataset, just do the following:
>>> ds.spatial_mean()
Note
This method will calculate the average using weights based on each cell’s area. If cell areas cannot be calculated, it will take a straight average, and a warning will say this.