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

Weighted zonal statistics #370

Open
rafaqz opened this issue Jan 13, 2023 · 1 comment
Open

Weighted zonal statistics #370

rafaqz opened this issue Jan 13, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@rafaqz
Copy link
Owner

rafaqz commented Jan 13, 2023

We need to facilitate passing a weights matrix to correct zonal statistics for lat/lon etc

@rafaqz
Copy link
Owner Author

rafaqz commented May 19, 2024

This is currently posible to do by preparing an array with something like:

cs = cellsize(A)
weighted = A .* cs ./ mean(cs)

But we could maybe do this with a keyword to zonal stats?

Like cellsize_weighted=true ?

@rafaqz rafaqz added the enhancement New feature or request label May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant