nctoolkit.DataSet.vertical_sum

nctoolkit.DataSet.vertical_sum#

DataSet.vertical_sum()#

vertical_sum: Calculate the vertical sum of variable values.

This is calculated for each time step and grid cell.

Examples

If you wanted to sum of values across all vertical levels of every variable in a dataset, you would do this:

>>> ds.vertical_sum()