earthkit.meteo.extreme.array.cpf
- earthkit.meteo.extreme.array.cpf(clim, ens, sort_clim=True, sort_ens=True, epsilon=None, symmetric=False, from_zero=False)
Compute Crossing Point Forecast (CPF)
WARNING: this code is experimental, use at your own risk!
- Parameters:
clim (
array-like (nclim,npoints)) – Per-point climatologyens (
array-like (nens,npoints)) – Ensemble forecastsort_clim (
bool) – If True, sort the climatology firstsort_ens (
bool) – If True, sort the ensemble firstepsilon (
floatorNone) – If set, use this as a threshold for low-signal regions. Ignored if symmetric is Truesymmetric (
bool) – If True, make CPF values below 0.5 use a symmetric computation (CPF of opposite values)from_zero (
bool) – If True, start looking for a crossing from the minimum, rather than the median
- Returns:
CPF values
- Return type:
array-like (npoints)