home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 437058245 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 2
  • grinsted 1

author_association 2

  • MEMBER 2
  • CONTRIBUTOR 1

issue 1

  • Windowed read in open_rasterio · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
486611466 https://github.com/pydata/xarray/issues/2918#issuecomment-486611466 https://api.github.com/repos/pydata/xarray/issues/2918 MDEyOklzc3VlQ29tbWVudDQ4NjYxMTQ2Ng== grinsted 2535390 2019-04-25T10:08:42Z 2019-04-25T10:08:54Z CONTRIBUTOR

Really nice. Thank you. Feel free to close this issue.

Note: rasterio can read directly from http. e.g. this works: python import xarray as xr da = xr.open_rasterio('https://github.com/mapbox/rasterio/raw/master/tests/data/RGB.byte.tif') da[:, 400:600, 400:600].plot.imshow()

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Windowed read in open_rasterio  437058245
486589435 https://github.com/pydata/xarray/issues/2918#issuecomment-486589435 https://api.github.com/repos/pydata/xarray/issues/2918 MDEyOklzc3VlQ29tbWVudDQ4NjU4OTQzNQ== fmaussion 10050469 2019-04-25T09:22:03Z 2019-04-25T09:22:03Z MEMBER

(or any other indexing operation)

Correction: only the windowed operations can be done lazily, the other ones will fail unless you load the data first.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Windowed read in open_rasterio  437058245
486574195 https://github.com/pydata/xarray/issues/2918#issuecomment-486574195 https://api.github.com/repos/pydata/xarray/issues/2918 MDEyOklzc3VlQ29tbWVudDQ4NjU3NDE5NQ== fmaussion 10050469 2019-04-25T08:38:11Z 2019-04-25T08:38:28Z MEMBER

Xarray already supports this, the syntax is that of xarray though. It reads the files lazily, then access only what you select, e.g.:

```python import os import urllib.request import matplotlib.pyplot as plt import xarray as xr

Download the file from rasterio's repository

url = 'https://github.com/mapbox/rasterio/raw/master/tests/data/RGB.byte.tif' urllib.request.urlretrieve(url, 'RGB.byte.tif')

Read the data

da = xr.open_rasterio('RGB.byte.tif') da[:, 400:600, 400:600].plot.imshow(); ```

(or any other indexing operation)

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Windowed read in open_rasterio  437058245

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