-
Notifications
You must be signed in to change notification settings - Fork 78
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
Support DataTree for organizing Datasets by type of level #327
Comments
Wanted to bring up this topic again now that datatree was merged into xarray. I envision instead of needing See also xarray-contrib/datatree#195, #344 |
You might also want to use the new open_groups API too. |
I would definitely recommend |
As discussed in xarray-contrib/datatree#195, it would be wonderful (and relatively straightforward) to add support for DataTree in
cfgrib
. This would allow a improved organization of the different datasets that would have been previously been returned fromcfgrib.open_datasets()
in a single data collection.As far as implementation, I would propose refactoring the existing
open_datasets()
to something like:Then,
open_datasets
could be re-implemented something like:(these snippets were edited quick in-between conference sessions; no guarantee that I didn't miss something and these don't work properly as-is)
This all being said, discussions would likely need to happen to decide whether this should be supported before or after integration of DataTree into xarray proper (xref pydata/xarray#7418).
cc @TomNicholas, @blaylockbk
The text was updated successfully, but these errors were encountered: