earthkit.climate.land.flow_index

earthkit.climate.land.flow_index(q: xarray.DataArray | str = 'q', ds: xarray.Dataset | Any = None, *, p: float = 0.95, **kwargs: Any) Any

Flow index.

Calculate the pth percentile of daily streamflow normalized by the median flow.

Units:

  • q_flow_index: 1

This function wraps xclim.indicators.land.flow_index.

Parameters:
  • q (xarray.DataArray | str) – Daily streamflow data.

  • p (float) – Percentile for calculating the flow index, between 0 and 1. Default of 0.95 is for high flows.

  • ds (xarray.Dataset | Any) – Input dataset.

  • **kwargs (Any) – Additional keyword arguments.

Returns:

The computed index.

Return type:

Any