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

open_virtual_mfdataset #345

Open
TomNicholas opened this issue Dec 12, 2024 · 1 comment
Open

open_virtual_mfdataset #345

TomNicholas opened this issue Dec 12, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@TomNicholas
Copy link
Member

Should we add a top-level function open_virtual_mfdataset?

Though I would like to be more confident about the best way to parallelize reference generation first

#123

#7

@TomNicholas TomNicholas added the enhancement New feature or request label Dec 12, 2024
@TomNicholas TomNicholas changed the title open_virtual_mfdatset open_virtual_mfdataset Dec 13, 2024
@TomNicholas
Copy link
Member Author

Looking at the implementation of xr.open_mfdataset, I'm becoming optimistic that we can parallelize reference generation for concatenation along any number of dimensions just using dask.delayed or lithops.map. Basically we just use the same machinery xarray does for organising the open_dataset calls into a 1d list, optionally map over that in parallel, return the (small) virtual datasets back to the client over the network, then the multidimensional concatenation occurs on the client.

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

1 participant