diagnostic.functions.spatial_time_mean#

spatial_time_mean(ds: Dataset)[source]#

Calculate the spatial mean of the data. If the time dimension is present, the data is averaged over the time dimension.

Parameters:

ds (xr.Dataset) – The data to calculate the spatial mean of.

Returns:

The spatial mean of the data.

Return type:

xr.Dataset