earthkit.meteo.extreme.xarray.cpf¶
- earthkit.meteo.extreme.xarray.cpf(clim, ens, sort_clim=True, sort_ens=True, epsilon=None, symmetric=False, from_zero=False, clim_dim=None, ens_dim=None)¶
Compute Crossing Point Forecast (CPF).
WARNING: this code is experimental, use at your own risk!
- Parameters:
clim (
xarray.DataArray) – Per-point climatology. The reduction dimension (quantiles) is set byclim_dim.ens (
xarray.DataArray) – Ensemble forecast. The reduction dimension (ensemble members) is set byens_dim.sort_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 medianclim_dim (
str, optional) – Name of the climatology/quantile dimension inclim.ens_dim (
str, optional) – Name of the ensemble/member dimension inens.
- Returns:
CPF values.
- Return type:
xarray.DataArray