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

Wanted: add res and function option for SObin #75

Open
Maschette opened this issue Apr 22, 2020 · 2 comments
Open

Wanted: add res and function option for SObin #75

Maschette opened this issue Apr 22, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@Maschette
Copy link

currently SObin gives you the option for dimensions of the raster it bins into, these aren't always the easiest to know what they should be in some data sets and it would be easier to give a cell resolution (eg res=c(0.25,0.125)) and have SObin calculate the dimensions needed to get that cell size.

Similarly SObin uses n() within dplyr summarize by default, it would be great to add the options for mean, median, min and max.

i can probably do the latter ineloquently but I'm not sure about the res one, @mdsumner?

@Maschette Maschette added the enhancement New feature or request label Apr 22, 2020
@raymondben
Copy link
Member

res parameter added in d6b0217
@Maschette how do you want the function option to work, in terms of providing the data values? Binning to a density raster (as it does now) only requires the x, y locations. To apply a mean or other function we'd also need to add a z parameter that gives the data value at each location. Is that what you were envisaging?

@mdsumner
Copy link
Member

mdsumner commented Mar 7, 2023

ask me about using the warper and the datapointer thing for GDAL for regridding to min, max, sum, or mean with a target_res - in a few weeks maybe, it's all a bit flaky atm

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

3 participants