diagnostic.functions.bias#

bias(da: Dataset, ref: Dataset, calc_relative=False)[source]#

Calculate the bias of the data compared to a reference.

Parameters:
  • da (xr.DataArray or xr.Dataset) – The data to calculate the bias of.

  • ref (xr.DataArray or xr.Dataset) – The reference to compare the data to.

  • calc_relative (bool, optional) – If True, calculate the relative bias, if False calculate the absolute bias, by default False

Returns:

The bias of the data compared to there reference.

Return type:

xr.Datasets