nctoolkit.DataSet.vertical_cumsum
- DataSet.vertical_cumsum()
vertical_cumsum: Calculate the vertical sum of variable values.
This is calculated for each time step and grid cell.
Examples
If you wanted to calculate the cumulative sum of values across all vertical levels of every variable in a dataset, you would do this:
>>> ds.vertical_sum()
The cumulative sum will be calculated from the first to the last vertical level. For example, in oceanic data it would start at the sea surface.