Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add alpha dimension #671

Closed
wants to merge 4 commits into from
Closed

Add alpha dimension #671

wants to merge 4 commits into from

Conversation

ahuang11
Copy link
Collaborator

Fixes #571

import rioxarray
import geoviews as gv
gv.extension('bokeh')

ds = rioxarray.open_rasterio("test_alpha.tiff")
gv.util.from_xarray(ds, nan_nodata=True)
image

This is the most direct way to fix it, but there is also alpha_dimension here https://github.com/holoviz/holoviews/blob/main/holoviews/element/raster.py#L620-L626, which currently does not support xarray Dataset.

@philippjfr
Copy link
Member

Seems like there's something missing here, this only adds the test.

@ahuang11 ahuang11 closed this Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

missing alpha in gv.load_tiff
2 participants