issue_comments: 1016705107
This data as json
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/pydata/xarray/issues/6174#issuecomment-1016705107 | https://api.github.com/repos/pydata/xarray/issues/6174 | 1016705107 | IC_kwDOAMm_X848mbBT | 35968931 | 2022-01-19T17:37:12Z | 2022-01-19T18:05:07Z | MEMBER |
If you've read through all of #4118 you will have seen that there is a prototype package providing a nested data structure which can handle groups. Using ```python from datatree import DataTree dt = DataTree.from_dict(ds_dict) dt.to_netcdf('filepath.nc') ``` (Here if you want groups within groups then the keys in the dictionary should be specified like filepaths, e.g.
Again
To extract all the groups as individual datasets you can do this to recreate the dictionary of datasets:
Is your solution noticeably faster? We (@jhamman and I) haven't really thought about speed of DataTree I/O yet I don't think, preferring to just make something simple which works for now. The current I/O code for DataTree is here. Despite that project only being a prototype, it is still probably the best solution to your problem that we currently have (at least the neatest). If you are interested in trying it out and reporting any problems then that would be greatly appreciated! EDIT: The idea discussed here might also be of interest to you. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
1108138101 |