nctoolkit.DataSet.ensemble_percentile

nctoolkit.DataSet.ensemble_percentile#

DataSet.ensemble_percentile(p=None)#

ensemble_percentile: Calculate an ensemble percentile.

This will calculate the percentiles for each time step in the files. For example, if you had an ensemble of files where each file included 12 months of data, it would calculate the percentile for each month. This operates on a grid cell by grid cell basis.

Parameters:

p (float or int) – percentile to calculate. 0<=p<=100.

Examples

If you had an ensemble of climate models with data covering the same time steps, you would calculate the ensemble 90th percentile as follows:

>>> ds.ensemble_percentile(p=90)