nctoolkit.DataSet.rolling_stdev

DataSet.rolling_stdev(self, window=None, align='right')

Calculate a rolling standard deviation based on a window

Parameters
  • window (int) – The size of the window for the calculation of the rolling sum

  • align (str) – This determines whether the output time is at the left, centre or right hand side of the time window. Options are “left”, “centre” and “right”

Examples

If you wanted to calculate a rolling standard deviation with the standard deviation calculated over every 10 time steps, do the following:

>>> ds.rolling_sum(10)