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

Feature request: more geometry options for zonal #677

Open
danscr opened this issue Jun 5, 2024 · 1 comment
Open

Feature request: more geometry options for zonal #677

danscr opened this issue Jun 5, 2024 · 1 comment

Comments

@danscr
Copy link

danscr commented Jun 5, 2024

Currently, geometry in zonal considers cells where center, the whole or part of the cell are contained within another geometry. For polygon data, it would be quite useful to calculate the fraction of overlap between cell and polygon to compute statistics.

@danscr danscr changed the title More geometry options for zonal Feature request: more geometry options for zonal Jun 5, 2024
@rafaqz
Copy link
Owner

rafaqz commented Jun 5, 2024

You could do this manually in a loop over each polygon using coverage.

But yes it would be nice to automate that process. We can just call coverage instead of boolmask internally and multiple by coverage rather than masking.

Maybe with a separate coverage=true keyword? To show that it's quite different to choosing a boundary?

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