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

Allow custom chunks #224

Closed
malmans2 opened this issue Oct 12, 2023 · 0 comments · Fixed by #227
Closed

Allow custom chunks #224

malmans2 opened this issue Oct 12, 2023 · 0 comments · Fixed by #227
Labels
enhancement New feature or request

Comments

@malmans2
Copy link
Contributor

Is your feature request related to a problem? Please describe.

It's often useful to chunk the requests using various chunk sizes.
#221 fixes chunking with multiple variables, but only size 1 chunks are allowed.

Describe the solution you'd like

I'd like the option to provide custom chunks.
Something like this:

from_source("cds", ..., split_on={"year": 10})

which would result in 10-year chunks.

I.e., split_on should work similarly as the chunks argument of xarray/dask

Describe alternatives you've considered

No response

Additional context

No response

Organisation

B-Open / CADS-EQC

@malmans2 malmans2 added the enhancement New feature or request label Oct 12, 2023
@malmans2 malmans2 mentioned this issue Oct 13, 2023
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.

1 participant