radarx.retrieve.nowcasting.exceedance_probability#
- radarx.retrieve.nowcasting.exceedance_probability(ensemble, threshold, *, member_dim='member')[source]#
Share of the members of an ensemble at or above a threshold.
The probability of exceeding a threshold is estimated as the fraction of the ensemble members that exceed it (the ensemble probability of Bowler et al. 2006 [1]). A cell is NaN where every member is NaN; NaN members are left out of the count.
- Parameters:
ensemble (
xarray.DataArray) – Forecast with a member dimension, e.g. fromnowcast().threshold (
float) – Threshold in the units of the ensemble.member_dim (
str, optional) – Name of the member dimension. Default"member".
- Returns:
xarray.DataArray– Probability (between 0 and 1) on the dimensions of the ensemble without the member dimension.- Raises:
ValueError – If the ensemble has no dimension
member_dim.
See also
References
Examples
>>> prob = radarx.retrieve.exceedance_probability(ens, 35.0)