nctoolkit.DataSet.tpercentile¶
- DataSet.tpercentile(self, p=None, over='time')¶
Calculate the temporal percentile of all variables
- Parameters
p (float or int) – Percentile to calculate
Examples
If you want to calculate the 20th percentile over all time steps. Do the following:
>>> ds.tpercentile(20)
If you want to calculate the 20th percentile for each year in a dataset, do this:
>>> ds.tpercentile(20)