nctoolkit.DataSet.vertical_mean¶
-
DataSet.
vertical_mean
(self)¶ Calculate the depth-averaged mean for each variable This is calculated for each time step and grid cell
Examples
If you wanted to vertical mean of every variable in a dataset, you would do this:
>>> ds.vertical_mean()
This method will calculate the vertical mean weighted by the thickness of each cell. Note that if cell thickness cannot be derived it will just average the values in each vertical cell.