home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 468937654

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
468937654 MDExOlB1bGxSZXF1ZXN0Mjk4MjY5MTU2 3136 Added suppport for geotiff colormap() colorinterp to be loaded into attrs 5696346 closed 0     6 2019-07-17T01:10:45Z 2022-04-07T20:21:59Z 2022-04-07T20:21:58Z NONE   0 pydata/xarray/pulls/3136

This is tangentially related to the to_geotiff() discussion.

We're using intake-xarray to read a year's worth of Sentinel-2 Scene Classification Layers into a DataArray, doing some processing, and then writing the output to a single band GeoTIFF. When writing the output, we'd like to preserve the colormap of the original underlying data. xarray-intake uses xarray to read the dataset, so thought it might be useful to add support in open_rasterio() to read and load src.colormap(1) and src.colorinterp into the attributes of the DataArray. My thinking is that if in the future the community ends up wanting to add a to_geotiff() method, reading the src colormap and colorinterp might be useful.

Before adding tests, I thought I'd submit the PR to see what others thought about adding this functionality. If there's support for this, I'm happy to add any needed tests or documentation.

  • [ ] Tests added
  • [ ] Fully documented, including whats-new.rst for all changes and api.rst for new API
{
    "url": "https://api.github.com/repos/pydata/xarray/issues/3136/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    13221727 pull

Links from other tables

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