Passing datasets with different group hierarchy to open_mfdataset
Is your feature request related to a problem?
When you want to open multiple datasets located at different nodes of group hierarchy in HDF file, you can't pass a list of group keys ( save_mfdataset offers 'groups' keyword; emphasis on the s). Add to that, the 'files' keyword argument does not accept 'datastore' as a valid input.
Describe the solution you'd like
No response
Describe alternatives you've considered
One, of course, can open_dataset each one in a loop and combine afterwards. One possible fix is to Modify the 'group' argument to accept a list the same length as paths list. Another could be changing "paths" keyword to accept datastore or h5py objects. Both are trivial in my opinion. Most of the code is already there in other functions (open_dataset, save_mfdataset).
Additional context
No response
Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you!
Would opening all the groups at once using xarray-datatree help with your use case?
Would opening all the groups at once using
xarray-datatreehelp with your use case?
Thank you! Datatree is exactly what I was looking for. This should be advertised more.
Yeah we're working on that :)