diagnostic.functions.temporal_bias#

temporal_bias(ds: Dataset, ref: Dataset, calc_relative=False)[source]#

Calculate the temporal bias of the data compared to the reference. If lat and lon are present, ds and ref is averaged over the spatial dimensions lat and lon.

Parameters:
  • ds (xr.Dataset) – The data to calculate the temporal bias of.

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

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

Returns:

The temporal bias of the data compared to the reference.

Return type:

xr.Dataset