Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weitghed contingency tables #411

Open
lluritu opened this issue Dec 5, 2023 · 1 comment
Open

Weitghed contingency tables #411

lluritu opened this issue Dec 5, 2023 · 1 comment

Comments

@lluritu
Copy link

lluritu commented Dec 5, 2023

Hello, when computing gridded verification metrics and aggregating over a spatial domain it is sometimes important to weight the contributions of each grid point by the area it represents. However, all the scores based on the contingency table do not offer this option in xskillscore.

Recently I prepared a modification of the contingency tables code that allows weighting the counts by the cos(lat) of the (regular lat-lon) gridded data. Since xhistogram supports weights, it is a relatively simple implementation.

If that is of general interest, please let me know and I can contribute the code.

Best,
Llorenç

@aaronspring
Copy link
Collaborator

Great. Please open a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants