home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 259057144

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
259057144 MDU6SXNzdWUyNTkwNTcxNDQ= 1582 Rasterio tags are not accessible through open_rasterio 4414299 closed 0     5 2017-09-20T06:48:18Z 2018-03-16T18:48:46Z 2017-12-12T14:38:53Z CONTRIBUTOR      

The problem

When opening an ENVI file directly using rasterio, (some) metadata from the header file is available through tags(): python import rasterio src = rasterio.open(file) src.tags() # dict of metadata for the whole array src.tags(1) # same for band 1 Opening the same file through open_rasterio, the metadata is not carried through to the returned DataArray, neither as attributes nor as coordinates (which is the use case I'm interested in, since the metadata usually contains corresponding wavelengths for the bands).

Solutions?

I don't know what kind of data tags() might contain in general. For my use case, parsing the tags for each band as coordinates is necessary at some point. It might be better generally if the tags are stored as an attribute and munged afterwards, but this is complicated by the fact that there's tags for the whole file as well as for separate bands.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1582/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
  • 5 rows from issue in issue_comments
Powered by Datasette · Queries took 0.511ms · About: xarray-datasette