issues: 310819233
This data as json
| id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 310819233 | MDU6SXNzdWUzMTA4MTkyMzM= | 2036 | better error message for to_netcdf -> unlimited_dims | 10194086 | closed | 0 | 4 | 2018-04-03T12:39:21Z | 2018-05-18T14:48:32Z | 2018-05-18T14:48:32Z | MEMBER | Code Sample, a copy-pastable example if possible```python Your code hereimport numpy as np import xarray as xr x = np.arange(10) da = xr.Dataset(data_vars=dict(data=('dim1', x)), coords=dict(dim1=('dim1', x), dim2=('dim2', x))) da.to_netcdf('tst.nc', format='NETCDF4_CLASSIC', unlimited_dims='dim1') ``` Problem descriptionThis creates the error The correct syntax is With I only tested with netCDF4 as backend. Expected Output
Output of
|
{
"url": "https://api.github.com/repos/pydata/xarray/issues/2036/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | 13221727 | issue |