climpred.reference.compute_climatology

climpred.reference.compute_climatology(hind, verif=None, metric='pearson_r', comparison='m2e', alignment='same_inits', add_attrs=True, dim='init', **metric_kwargs)[source]

Computes the skill of a climatology forecast.

Parameters
  • hind (xarray object) – The initialized ensemble.

  • verif (xarray object) – control data, not needed

  • metric (str) – Metric name to apply at each lag for the persistence computation. Default: ‘pearson_r’

  • dim (str or list of str) – dimension to apply metric over.

  • add_attrs (bool) – write climpred compute_persistence args to attrs. default: True

  • metric_kwargs (**) – additional keywords to be passed to metric (see the arguments required for a given metric in Metrics).

Returns

Results of climatology forecast with the input metric

applied.

Return type

clim (xarray object)