home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 485988536

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
485988536 MDU6SXNzdWU0ODU5ODg1MzY= 3269 Accessing COG overviews with read_rasterio 1872600 closed 0     3 2019-08-27T19:21:07Z 2021-07-30T07:09:14Z 2021-07-30T07:09:14Z NONE      

It's considered best practice to create cloud-optimized geotiff (COG) with overviews, which are essentially copies of the dataset at different resolutions to allow fast representation at different scales.

It would be nice if we could pick a specific overview using xr.read_rasterio, perhaps by just an additional parameter on the call, like xr.read_rasterio(url, overview=512) or something.

Currently we need to use Rasterio to find out what the overlays are, for example: python url = 'https://esip-pangeo-uswest2.s3-us-west-2.amazonaws.com/sciencebase/Southern_California_Topobathy_DEM_1m_cog.tif' src = rasterio.open(url, 'r') [src.overviews(i) for i in src.indexes] which results in: [[4, 8, 16, 32, 64, 128, 256, 512, 1023]] See the notebook here for the hack workaround to extract an overlay from COG: https://nbviewer.jupyter.org/gist/rsignell-usgs/dc4cf94fae97d085f6f2b9b896ec5336

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/3269/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 1 row from issues_id in issues_labels
  • 3 rows from issue in issue_comments
Powered by Datasette · Queries took 78.416ms · About: xarray-datasette