diagnostic.functions.mean_bias#
- mean_bias(da_mod: Dataset, da_ref: Dataset)[source]#
Calculate the bias of the means of modeled and reference data.
- 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