earthkit.meteo.stats.array.iter_quantiles ========================================= .. py:function:: earthkit.meteo.stats.array.iter_quantiles(arr, which = 100, axis = 0, method = 'sort') Iterate over the quantiles of a large array :param arr: Data array :type arr: :class:`numpy array` :param which: List of quantiles to compute, e.g. `[0., 0.25, 0.5, 0.75, 1.]`, or number of evenly-spaced intervals (e.g. 100 for percentiles). :type which: :class:`int` or :class:`list` of :class:`floats` :param axis: Axis along which to compute the quantiles :type axis: :class:`int` :param method: Method of computing the quantiles: * sort: sort `arr` in place, then interpolates the quantiles one by one * numpy_bulk: compute all the quantiles at once using `numpy.quantile` * numpy: compute the quantiles one by one using `numpy.quantile` :type method: ``'sort'``, ``'numpy_bulk'``, ``'numpy'`` :returns: Quantiles, in increasing order if `which` is an `int`, otherwise in the order specified :rtype: :class:`Iterable[numpy array]`