home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 699435286

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/4463#issuecomment-699435286 https://api.github.com/repos/pydata/xarray/issues/4463 699435286 MDEyOklzc3VlQ29tbWVudDY5OTQzNTI4Ng== 1217238 2020-09-26T06:05:22Z 2020-09-26T06:05:22Z MEMBER

I think this gives the correct result? ```

da.interp(t=da['t'], y=dy, x=dx, method='linear') <xarray.DataArray (t: 2, u: 2)> array([[2., 3.], [2., 3.]]) Coordinates: * t (t) int64 10 12 y (u) float64 1.5 2.5 x (t, u) float64 1.5 1.5 1.5 1.5 * u (u) int64 45 55 ```

My general thought is that if an axis (like t in this case) is omitted, then should be equivalent to indexing with the existing coordinate. That is how normal indexing in xarray worked, so interpolation should work the same.

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