home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 821854599

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/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) <class 'netCDF4._netCDF4.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
Powered by Datasette · Queries took 0.437ms · About: xarray-datasette