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 climatology

  • ens (array-like (nens, npoints)) – Ensemble forecast

  • sort_clim (bool) – If True, sort the climatology first

  • sort_ens (bool) – If True, sort the ensemble first

  • epsilon (float or None) – If set, use this as a threshold for low-signal regions. Ignored if symmetric is True

  • symmetric (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)