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

Resample to daily process #185

Closed
aulemahal opened this issue May 13, 2021 · 4 comments · Fixed by #215
Closed

Resample to daily process #185

aulemahal opened this issue May 13, 2021 · 4 comments · Fixed by #215
Assignees
Labels
enhancement New feature or request

Comments

@aulemahal
Copy link
Collaborator

Stumbled upon this problem while writing up the earthcube notebook.

For a truly remote computation with "arbitrary" data, it would be nice that finch provides some kind of "resampling" process. I am currently thinking a something that would take subdaily inputs and aggregate it to daily using a specific function (min, max, mean, sum). That would allow chain-computations with more datasets!

@aulemahal aulemahal self-assigned this May 13, 2021
@aulemahal aulemahal added the enhancement New feature or request label May 13, 2021
@huard
Copy link
Collaborator

huard commented May 14, 2021

Ok, I think this is worth having a design discussion.

@huard huard assigned huard and unassigned aulemahal Jul 16, 2021
@huard
Copy link
Collaborator

huard commented Oct 26, 2021

Let's get this done.

Proposed interface:
id : resample_daily
Inputs:

  • resource: netCDF
  • operation: {'mean', 'max', 'min', 'sum'}
  • missing: {'any', ?, ...}

Outputs:

  • output: netCDF

TODO:

  • test missing algorithms over daily data.

@aulemahal
Copy link
Collaborator Author

Are we sure we want to automatically convert units to amount? For example, if we have sub-daily precipitation and want to compute some xclim indicator on it, we must convert the data to a faily frequency, but xclim still expects a flux!

Having it as an option controlled by an argument is interesting though.

@huard
Copy link
Collaborator

huard commented Oct 26, 2021

Maybe not, you're right. Let's keep it simple for now and add features as needed.

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

Successfully merging a pull request may close this issue.

2 participants