nctoolkit.DataSet.ensemble_max

nctoolkit.DataSet.ensemble_max#

DataSet.ensemble_max(nco=False, ignore_time=False)#

ensemble_max: Calculate an ensemble maximum

This operates on a grid cell by grid cell basis.

Parameters:
  • nco (boolean) – Do you want to use NCO for the calculation? Default is False, i.e. CDO is used. Modify default if run time is an issue.

  • ignore_time (boolean) – If True the max is calculated over all time steps. If False, the ensemble max is calculated for each time steps; for example, if the ensemble is made up of monthly files the max for each month will be calculated.

Examples

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

>>> ds.ensemble_max()