home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 373572878

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/1995#issuecomment-373572878 https://api.github.com/repos/pydata/xarray/issues/1995 373572878 MDEyOklzc3VlQ29tbWVudDM3MzU3Mjg3OA== 1217238 2018-03-16T01:16:57Z 2018-03-16T01:16:57Z MEMBER

One way to allow chunking across x would be to finish up dask.array.einsum: https://github.com/dask/dask/issues/732

I'm reluctant to add reduce_func to xarray because it isn't clear to me exactly what the underlying abstraction is. It's something like a gufunc, but does a little bit more. Also, ideally we'd like this to be in dask.array, maybe as part of dask.array.apply_gufunc (https://github.com/dask/dask/pull/3109).

For this specific problem, I think you could solve it with xarray.apply_ufunc by writing something like a gufunc that keeps the reduced axis as size 1 to apply to each chunk, and afterwards summing up along that dimension.

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