home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 396043207

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/2223#issuecomment-396043207 https://api.github.com/repos/pydata/xarray/issues/2223 396043207 MDEyOklzc3VlQ29tbWVudDM5NjA0MzIwNw== 15956441 2018-06-10T11:55:54Z 2018-06-10T11:55:54Z CONTRIBUTOR

Thanks for your comment

had a deeper look at DataArray.interp and it computes a new DataArray with new coords given by the dict. I first thought i'll get a 1D array which is not the case (this is often the behavior I want). I then compared first 10_000 interpolations on sdf against 100_000_000 in xarray! It explains the gap.

Updated my comparison with the same behavior with scipy and sdf in a jupyter notebook on mybinder

It seems everything's well with xarray.

Extrapolation (linear first) would be a good feature too, I put an example at the end of the notebook about sdf interpolation/extrapolation possibilites (work for nd-arrays of dim 32 as with numpy)

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