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

Spatial interpolator reducers #2034

Open
Fil opened this issue Mar 22, 2024 · 0 comments
Open

Spatial interpolator reducers #2034

Fil opened this issue Mar 22, 2024 · 0 comments
Labels
enhancement New feature or request geo Maps and projections

Comments

@Fil
Copy link
Contributor

Fil commented Mar 22, 2024

The default spatial interpolator applies the current value to the current position, resulting in a "last" binning reducer. We could implement others (thinking out loud for now):

  • "first" is the easiest: just don't overwrite if a value is already present
  • "sum" is easy too (though it applies only to quantitative values), with a caveat that the color domain will have to be set by hand as it will almost always be wrong (it's based on the input values sent to the interpolator); the contours should work directly
  • "random sample" and "mean" can be done by keeping a separate track of the count; ("mean" expects the value to be quantitative)
  • "median" (and any other reducers, including custom functions) need to keep track of all the values, so that's probably not going to be great performance-wise, unless we can have iterative reducers
@Fil Fil added enhancement New feature or request geo Maps and projections labels Mar 22, 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 geo Maps and projections
Projects
None yet
Development

No branches or pull requests

1 participant