-
Notifications
You must be signed in to change notification settings - Fork 26
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
Support weighted usage of exact_resample #59
Comments
I've updated this to throw an error if the weighted operations are used. Can you share what you're trying to accomplish with them? |
I am trying to resample precipitation data into a coarser grid and wanted to use the "weighted_mean" function instead of the "mean" to take into account that the areas of pixels within the coarser cells have different areas b/c it is a lon/lat grid. |
That makes sense. I think for now you'd need to multiply the precipitation flux (fine grid) by area to convert to a precipitation amount, resample to the coarse grid using |
This doesn't solve the general case of weighting, but the |
Thank you! |
Hello,
I think I found a bug in the exact_resample() function. While exact_resample() accepts "weighted_mean" and "weighted_sum" as functions, it does not accept the weights argument:
The text was updated successfully, but these errors were encountered: