nctoolkit.DataSet.tcumsum

DataSet.tcumsum(self)

Calculate the temporal cumulative sum of all variables

Examples

If you want to calculate the cumulative sum for all variables over all timesteps, do this:

>>> ds.tcumsum()