diagnostic.functions.time_series_spatial_mean#

time_series_spatial_mean(ds: Dataset)[source]#

Calculate the time series of the data. If lat and lon are present, the data is averaged over the spatial dimensions lat and lon.

Parameters:

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

Returns:

The time series of the spatial mean of the data.

Return type:

xr.Dataset