home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 474641356

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/2822#issuecomment-474641356 https://api.github.com/repos/pydata/xarray/issues/2822 474641356 MDEyOklzc3VlQ29tbWVudDQ3NDY0MTM1Ng== 1217238 2019-03-20T00:54:34Z 2019-03-20T00:54:43Z MEMBER

When you leave the with context, the original file is automatically closed.

But something like either of these should work: with xr.open_dataset('some_netcdf_classic_file') as ds: data = ds # do something with data data.to_netcdf('some_new_file', 'w') or ``` with xr.open_dataset('some_netcdf_classic_file') as ds: data = ds.load()

do something with data

data.to_netcdf('some_new_file', 'w') ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  422903285
Powered by Datasette · Queries took 161.634ms · About: xarray-datasette