xskillscore.Contingency.hits

Contingency.hits(yes_category=2)

Returns the number of hits (true positives) for dichotomous contingency data.

Parameters

yes_category (value, optional) – The category coordinate value of the category corresponding to ‘yes’

Returns

An array containing the number of hits

Return type

xarray.Dataset or xarray.DataArray

References

https://www.cawcr.gov.au/projects/verification/#Contingency_table