Skip to content

Weitghed contingency tables #411

Description

@lluritu

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ç

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions