home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 396049670

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-396049670 https://api.github.com/repos/pydata/xarray/issues/2223 396049670 MDEyOklzc3VlQ29tbWVudDM5NjA0OTY3MA== 6815844 2018-06-10T13:36:42Z 2018-06-10T13:49:58Z MEMBER

Thanks for your deeper analysis.

It seems everything's well with xarray.

Happy to hear that.

I first thought i'll get a 1D array which is not the case (this is often the behavior I want).

Our interp is working orthogonally by default, so passing two arrays sized 10,000 will result in interpolation of 100,000,000 values. In order to get a 1D array, you can pass two dataarrays with the same dimension, python new_tension = xr.DataArray(new_tension, dims='new_dim') new_resistance = xr.DataArray(new_resistance, dims='new_dim') arr.interp(tension=new_tension, resistance=new_resistance) which gives a 1d array with the new dimension new_dim. See here for the details.

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