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/5175#issuecomment-821854599,https://api.github.com/repos/pydata/xarray/issues/5175,821854599,MDEyOklzc3VlQ29tbWVudDgyMTg1NDU5OQ==,5821660,2021-04-17T17:04:48Z,2021-04-17T17:04:48Z,MEMBER,"@skorper So, the workaround would be something along the lines:
```python
>>> dataset = xr.open_dataset('/path/to/file.nc')
>>> nc_dataset = dataset._close.__self__.ds
>>> type(nc_dataset)
```
But note, this only works if the dataset was opened/created from a single source file. And I'm not sure, if this is wanted behaviour.
@alexamici can possibly answer your question, if such API would be possible. To my understanding the backend refactor also did a great deal to disentangle Datasets from the underlying data sources. Please correct me @alexamici, if I'm wrong.
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,860180906
https://github.com/pydata/xarray/issues/5175#issuecomment-821784136,https://api.github.com/repos/pydata/xarray/issues/5175,821784136,MDEyOklzc3VlQ29tbWVudDgyMTc4NDEzNg==,5821660,2021-04-17T07:49:41Z,2021-04-17T07:49:41Z,MEMBER,"AFAICT you could try to use `ds._close` to get the closing function(s) of the underlying file managers. Not sure if you then can lookup their parent-store(s) .
But you could open the store yourself, keep the reference and load it into a Dataset. Not sure if this would work for your use case, though. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,860180906