nctoolkit.DataSet.rolling_mean¶
- DataSet.rolling_mean(self, window=None)¶
Calculate a rolling mean based on a window Time output is the middle time of the window.
- Parameters
= int (window) – The size of the window for the calculation of the rolling mean
Examples
If you wanted to calculate a rolling mean with the mean calculated over every 10 time steps, do the following:
>>> ds.rolling_mean(10)