diagnostic.functions.spatial_bias#
- spatial_bias(ds: Dataset, ref: Dataset, calc_relative=False)[source]#
Calculate the spatial bias of the data compared to the reference. The time dimensions are averaged over if present.
- Parameters:
ds (xr.Dataset) – The data to calculate the spatial bias of.
ref (xr.Dataset or xr.DataArray) – 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 spatial bias of the data compared to the reference.
- Return type:
xr.Dataset or xr.DataArray