onstove.RasterLayer.get_quantiles#

RasterLayer.get_quantiles(quantiles: tuple[float]) ndarray[source]#

Gets the values of th specified quantiles.

It uses the numpy.quantile function to return the quantiles of the raster array.

Parameters:
quantiles: array_like of float

Quantile or sequence of quantiles to compute, which must be between 0 and 1 inclusive.

Returns:
np.ndarray

Quantile values of the raster array.

Notes

Refer to numpy.quantile for more information.