issues: 336273865
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
336273865 | MDU6SXNzdWUzMzYyNzM4NjU= | 2254 | Writing Datasets to netCDF4 with "inconsistent" chunks | 1554921 | closed | 0 | 3 | 2018-06-27T15:15:02Z | 2018-06-29T05:07:27Z | 2018-06-29T05:07:27Z | CONTRIBUTOR | Code Sample```python import xarray as xr from dask.array import zeros, ones Construct two variables with the same dimensions, but different chunkingx = zeros((100,100),dtype='f4',chunks=(50,100)) x = xr.DataArray(data=x, dims=('lat','lon'), name='x') y = ones((100,100),dtype='f4',chunks=(100,50)) y = xr.DataArray(data=y, dims=('lat','lon'), name='y') Put them both into the same datasetdset = xr.Dataset({'x':x,'y':y}) Save to a netCDF4 file.dset.to_netcdf("test.nc") ``` The last line results in
Problem descriptionThis error is triggered by I'm assuming If I define a more general check
Is this change as straight-forward as I think, or Is there something intrinsic about Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2254/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |