You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should support generating references from files containing multiple groups in the same way that xr.open_dataset and datatree.open_datatree work.
So we should add a new open_virtual_datatree function, and a new (optional) group kwarg to open_virtual_dataset.
This can be done right now using the datatree package (as an optional dependency imported inside open_virtual_datatree) but once that gets merged into xarray main (which is happening right now) we can get rid of that dependency.
One thing I realized about this is that concatenating multiple DataTree objects is currently a little awkward. I don't know if this is actually a common pattern, but imagine you had two netCDF files each with groups, and you wanted to concatenate group1 in file1 with group1 in file2 etc.
Adding open_virtual_datatree would allow you to open the files like this:
We should support generating references from files containing multiple groups in the same way that
xr.open_dataset
anddatatree.open_datatree
work.So we should add a new
open_virtual_datatree
function, and a new (optional)group
kwarg toopen_virtual_dataset
.This can be done right now using the datatree package (as an optional dependency imported inside
open_virtual_datatree
) but once that gets merged into xarraymain
(which is happening right now) we can get rid of that dependency.See #78 (comment) and #11.
cc @sharkinsspatial
The text was updated successfully, but these errors were encountered: