home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 638909879

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
638909879 MDExOlB1bGxSZXF1ZXN0NDM0NTg2NDg5 4155 Implement interp for interpolating between chunks of data (dask) 1005109 closed 0     42 2020-06-15T14:42:32Z 2020-09-06T12:27:15Z 2020-08-11T23:15:49Z CONTRIBUTOR   0 pydata/xarray/pulls/4155

In a project of mine I need to interpolate a dask-based xarray between chunk of data.

When using the current official interp function (xarray v0.15.1), the code:

```python datax = xr.DataArray(data=da.from_array(np.arange(0, 4), chunks=2), coords={"x": np.linspace(0, 1, 4)}, dims="x") datay = xr.DataArray(data=da.from_array(np.arange(0, 4), chunks=2), coords={"y": np.linspace(0, 1, 4)}, dims="y") data = datax * datay

# both of these interp call fails
res = datax.interp(x=np.linspace(0, 1))
print(res.load())

res = data.interp(x=np.linspace(0, 1), y=0.5)
print(res.load())

`` fails withNotImplementedError: Chunking along the dimension to be interpolated (0) is not yet supported.`, but succeed with this version

I also want to alert that my version does not work with "advanced interpolation" (as shown in the xarray documentation) Also, my version cannot be used to make interpolate_na work with chunked data

  • [x] Closes #4078
  • [x] Tests added
  • [x] Passes isort -rc . && black . && mypy . && flake8
  • [x] Fully documented, including whats-new.rst for all changes and api.rst for new API
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/4155/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    13221727 pull

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 42 rows from issue in issue_comments
Powered by Datasette · Queries took 157.736ms · About: xarray-datasette