home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 643972816

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/4078#issuecomment-643972816 https://api.github.com/repos/pydata/xarray/issues/4078 643972816 MDEyOklzc3VlQ29tbWVudDY0Mzk3MjgxNg== 1005109 2020-06-15T08:07:52Z 2020-06-15T09:10:17Z CONTRIBUTOR

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 the monkey patched version

EDIT : added the second interp in order to show more general use

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