issue_comments: 401028473
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/pull/2255#issuecomment-401028473 | https://api.github.com/repos/pydata/xarray/issues/2255 | 401028473 | MDEyOklzc3VlQ29tbWVudDQwMTAyODQ3Mw== | 306380 | 2018-06-28T13:08:58Z | 2018-06-29T14:00:19Z | MEMBER | ```python import os if not os.path.exists('myfile.tif'): import requests response = requests.get('https://oin-hotosm.s3.amazonaws.com/5abae68e65bd8f00110f3e42/0/5abae68e65bd8f00110f3e43.tif') with open('myfile.tif', 'wb') as f: f.write(response.content) import dask dask.config.set({'array.chunk-size': '1MiB'}) import xarray as xr ds = xr.open_rasterio('myfile.tif', chunks=True) # this only reads metadata to start
Also depends on https://github.com/dask/dask/pull/3679 . Without that PR it will use values that are similar, but don't precisely align with 1024. Oh, I should point out that the image has tiles of size (512, 512) |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
336371511 |