home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where author_association = "NONE" and issue = 1444752393 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 1

  • naught101 2

issue 1

  • remap_label_indexers removed without deprecation update? · 2 ✖

author_association 1

  • NONE · 2 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1321361968 https://github.com/pydata/xarray/issues/7278#issuecomment-1321361968 https://api.github.com/repos/pydata/xarray/issues/7278 IC_kwDOAMm_X85OwmIw naught101 167164 2022-11-21T02:18:56Z 2022-11-21T02:18:56Z NONE

If it takes another couple of years to break, and need another re-write that's probably OK.

But if there is a better/more standard way to do what I'm trying to do, please let me know.

The underlying issue is that I have a netcdf with a RotatedPole grid (e.g. any of the CORDEX data), and I need to find the nearest grid point to a certain point. To do this, I map my point onto the RotatedPole projection (converting it from lat, lon, to x, y, or rlat, rlon), and then use the index mapping's nearest method to find the nearest grid point.

It didn't seem like there was an obvious way to do this with the actual API functions, so that's what I landed on.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  remap_label_indexers removed without deprecation update? 1444752393
1316170523 https://github.com/pydata/xarray/issues/7278#issuecomment-1316170523 https://api.github.com/repos/pydata/xarray/issues/7278 IC_kwDOAMm_X85Ocysb naught101 167164 2022-11-16T01:54:24Z 2022-11-16T01:54:24Z NONE

Thank you, this is sufficient for me for now. I was able to replace

python nearest_point = remap_label_indexers(self.data, dict(x=x, y=y), method='nearest')[0]

with

python nearest_point = map_index_queries(self.data, dict(x=x, y=y), method='nearest').dim_indexers

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  remap_label_indexers removed without deprecation update? 1444752393

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 11.703ms · About: xarray-datasette