issue_comments: 486574195
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/2918#issuecomment-486574195 | https://api.github.com/repos/pydata/xarray/issues/2918 | 486574195 | MDEyOklzc3VlQ29tbWVudDQ4NjU3NDE5NQ== | 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 repositoryurl = 'https://github.com/mapbox/rasterio/raw/master/tests/data/RGB.byte.tif' urllib.request.urlretrieve(url, 'RGB.byte.tif') Read the datada = 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
} |
437058245 |