home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 699169927

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-699169927 https://api.github.com/repos/pydata/xarray/issues/4463 699169927 MDEyOklzc3VlQ29tbWVudDY5OTE2OTkyNw== 6815844 2020-09-25T21:42:40Z 2020-09-25T21:42:40Z MEMBER

Hi @aulemahal

I think you want to interpolate along tas well as x, and y. If so, you can do

python In [8]: da.interp(t=dx['t'], y=dy, x=dx, method='linear') Out[8]: <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

If not, this fails as dx['t'] and da['t'] do not match each other. The error message can be improved. A contribution is welcome ;)

{
    "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.62ms · About: xarray-datasette