home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 50296450

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/191#issuecomment-50296450 https://api.github.com/repos/pydata/xarray/issues/191 50296450 MDEyOklzc3VlQ29tbWVudDUwMjk2NDUw 1217238 2014-07-28T03:07:04Z 2014-07-28T03:07:04Z MEMBER

Hi Richard,

Your question is actually very timely. We don't have any routines yet to do interpolation, although one of my colleagues (not sure if he's on GitHub) was looking into 1-dimensional interpolation last week.

A contribution to add interpolation to xray would certainly be very welcome!

I would not recommend wrapping the pandas routines -- they just use their own wrapper over scipy and only interpolate in 1D. They also have somewhat unusual API -- they support interpolation only to fill in missing values (marked with NaN).

Scipy has a wide variety of interpolation options, most of which I have not used. I'm guessing you're most immediately interested in doing something with map_coordinates? What were you thinking for the function signature?

As for where to put it, we have two options: 1. Add a method DataArray.interpolate. 2. If we don't think we can come up with a generic enough API to hold all interpolation strategies in a single method (quite likely!), add a new module xray.interpolation.

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