{"action":"created","issue":{"url":"https://api.github.com/repos/ContinuumIO/dask/issues/117","labels_url":"https://api.github.com/repos/ContinuumIO/dask/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/ContinuumIO/dask/issues/117/comments","events_url":"https://api.github.com/repos/ContinuumIO/dask/issues/117/events","html_url":"https://github.com/ContinuumIO/dask/issues/117","id":65553102,"number":117,"title":"Reblocking along some subset of axes","user":{"login":"shoyer","id":1217238,"avatar_url":"https://avatars.githubusercontent.com/u/1217238?v=3","gravatar_id":"","url":"https://api.github.com/users/shoyer","html_url":"https://github.com/shoyer","followers_url":"https://api.github.com/users/shoyer/followers","following_url":"https://api.github.com/users/shoyer/following{/other_user}","gists_url":"https://api.github.com/users/shoyer/gists{/gist_id}","starred_url":"https://api.github.com/users/shoyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoyer/subscriptions","organizations_url":"https://api.github.com/users/shoyer/orgs","repos_url":"https://api.github.com/users/shoyer/repos","events_url":"https://api.github.com/users/shoyer/events{/privacy}","received_events_url":"https://api.github.com/users/shoyer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-31T21:40:30Z","updated_at":"2015-03-31T22:04:46Z","closed_at":null,"body":"For the user-facing reblock API in xray, I would like to be able to reblock along only some subset of axes, e.g., `ds.reblock(blockshape={'time': 100})` should only modify blockdims along the `time` dimension, even if there are also `latitude` and `longitude` dimensions.\r\n\r\nThis looks like a little tricky to do with the current reblock API.\r\n\r\nTwo options:\r\n\r\n1. Expose `blockdims_from_blockshape` in the public API. That way, I can calculate blockdims myself, filling in ones I don't want to change.\r\n2. Support providing only some axes to `blockdims` and `blockshape` in `reblock`. For example, to indicate that only axis 0 should be reblocked but others should be left alone (in a 3D array), we could write `blockshape=(100, None, None)` or `blockshape={0: 100}`.\r\n\r\nThoughts?\r\n\r\nCC @PeterDSteinberg"},"comment":{"url":"https://api.github.com/repos/ContinuumIO/dask/issues/comments/88266407","html_url":"https://github.com/ContinuumIO/dask/issues/117#issuecomment-88266407","issue_url":"https://api.github.com/repos/ContinuumIO/dask/issues/117","id":88266407,"user":{"login":"PeterDSteinberg","id":1445602,"avatar_url":"https://avatars.githubusercontent.com/u/1445602?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterDSteinberg","html_url":"https://github.com/PeterDSteinberg","followers_url":"https://api.github.com/users/PeterDSteinberg/followers","following_url":"https://api.github.com/users/PeterDSteinberg/following{/other_user}","gists_url":"https://api.github.com/users/PeterDSteinberg/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterDSteinberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterDSteinberg/subscriptions","organizations_url":"https://api.github.com/users/PeterDSteinberg/orgs","repos_url":"https://api.github.com/users/PeterDSteinberg/repos","events_url":"https://api.github.com/users/PeterDSteinberg/events{/privacy}","received_events_url":"https://api.github.com/users/PeterDSteinberg/received_events","type":"User","site_admin":false},"created_at":"2015-03-31T22:04:46Z","updated_at":"2015-03-31T22:04:46Z","body":"I see better what you are saying.  I think we should make <pre><code>blockdims_from_blockshape</code></pre> able to be imported, and also we should make more options in the reblock method of dask arrays and the reblock function.  The options should support reblocking a subset of the dimensions, specified by either blockdims or blockshape.  I'll work on that soon."}}