home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

5 rows where issue = 444367776 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: reactions, created_at (date), updated_at (date)

user 2

  • fmaussion 3
  • aragong 2

author_association 2

  • MEMBER 3
  • NONE 2

issue 1

  • Is it possible to perform this interpolation with xarray? · 5 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
492625308 https://github.com/pydata/xarray/issues/2962#issuecomment-492625308 https://api.github.com/repos/pydata/xarray/issues/2962 MDEyOklzc3VlQ29tbWVudDQ5MjYyNTMwOA== fmaussion 10050469 2019-05-15T12:01:42Z 2019-05-15T12:01:42Z MEMBER

Thanks! If you want you can also accept the stackoverflow answer for later reference

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Is it possible to perform this interpolation with xarray? 444367776
492624058 https://github.com/pydata/xarray/issues/2962#issuecomment-492624058 https://api.github.com/repos/pydata/xarray/issues/2962 MDEyOklzc3VlQ29tbWVudDQ5MjYyNDA1OA== aragong 48764870 2019-05-15T11:57:28Z 2019-05-15T11:57:28Z NONE

Thank you @fmaussion, I will review that link!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Is it possible to perform this interpolation with xarray? 444367776
492623485 https://github.com/pydata/xarray/issues/2962#issuecomment-492623485 https://api.github.com/repos/pydata/xarray/issues/2962 MDEyOklzc3VlQ29tbWVudDQ5MjYyMzQ4NQ== fmaussion 10050469 2019-05-15T11:55:17Z 2019-05-15T11:55:17Z MEMBER

But I can't figure out what was the code doing without create this new one "common dimension"

It is doing what is called "orthogonal indexing", but with interpolation. The resulting shape of the output is then (2, 2, 2) in your case, but could be any (t, y, x) as given by the size of each dimension indexer.

Maybe this helps a little: http://xarray.pydata.org/en/stable/indexing.html#vectorized-indexing

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Is it possible to perform this interpolation with xarray? 444367776
492617813 https://github.com/pydata/xarray/issues/2962#issuecomment-492617813 https://api.github.com/repos/pydata/xarray/issues/2962 MDEyOklzc3VlQ29tbWVudDQ5MjYxNzgxMw== aragong 48764870 2019-05-15T11:34:32Z 2019-05-15T11:34:32Z NONE

Yes, it is possible. It is a bit "less intuitive" at first sight, but powerful and documented here: http://xarray.pydata.org/en/stable/interpolation.html#advanced-interpolation

The call you need to make is:

python blah.interp(longitude=('z', lon), latitude=('z', lat))

Thank you so much! It works fine! I guess that we are creating a new one common dimension with only this points to interpolate the data. I did this: lat = [44.25, 45.25] lon = [-4.5, -5] t = datetime.strptime('2000-02-28 01:00:00', '%Y-%m-%d %H:%M:%S') vx = da.interp(longitude=('p', lon), latitude=('p', lat), time=('p', [t, t]))

But I can't figure out what was the code doing without create this new one "common dimension". ¿Do you have any clue about that?¿is the code making a subset interpolation between the coordinates?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Is it possible to perform this interpolation with xarray? 444367776
492612763 https://github.com/pydata/xarray/issues/2962#issuecomment-492612763 https://api.github.com/repos/pydata/xarray/issues/2962 MDEyOklzc3VlQ29tbWVudDQ5MjYxMjc2Mw== fmaussion 10050469 2019-05-15T11:17:05Z 2019-05-15T11:17:05Z MEMBER

Yes, it is possible. It is a bit "less intuitive" at first sight, but powerful and documented here: http://xarray.pydata.org/en/stable/interpolation.html#advanced-interpolation

The call you need to make is:

python blah.interp(longitude=('z', lon), latitude=('z', lat))

{
    "total_count": 2,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 1,
    "eyes": 0
}
  Is it possible to perform this interpolation with xarray? 444367776

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
CREATE INDEX [idx_issue_comments_issue]
    ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
    ON [issue_comments] ([user]);
Powered by Datasette · Queries took 22.077ms · About: xarray-datasette