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