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