home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 327583527

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/1555#issuecomment-327583527 https://api.github.com/repos/pydata/xarray/issues/1555 327583527 MDEyOklzc3VlQ29tbWVudDMyNzU4MzUyNw== 2443309 2017-09-06T19:06:54Z 2017-09-06T19:06:54Z MEMBER

@kuchaale - Thanks for the report. You are trying to save a list of DataArray objects using save_mfdataset, which does not currently support saving DataArrays to netCDF.

Changing your line:

Python foo = xr.DataArray(data, coords=[times, locs], dims=['time', 'space']) foo.name = 'foo' to Python foo = xr.DataArray(data, coords=[times, locs], dims=['time', 'space']).to_dataset(name='foo')

corrects issue.

We could add a save_mfdataarray function or just handle the type conversion in save_mfdataset if that would be useful.

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