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-486611466,https://api.github.com/repos/pydata/xarray/issues/2918,486611466,MDEyOklzc3VlQ29tbWVudDQ4NjYxMTQ2Ng==,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}",,437058245 https://github.com/pydata/xarray/issues/2918#issuecomment-486589435,https://api.github.com/repos/pydata/xarray/issues/2918,486589435,MDEyOklzc3VlQ29tbWVudDQ4NjU4OTQzNQ==,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}",,437058245 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 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](http://xarray.pydata.org/en/stable/indexing.html) operation) ","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,437058245