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

missing alpha in gv.load_tiff #571

Open
oarcher opened this issue May 4, 2022 · 0 comments
Open

missing alpha in gv.load_tiff #571

oarcher opened this issue May 4, 2022 · 0 comments

Comments

@oarcher
Copy link

oarcher commented May 4, 2022

it seems that the alpha channel is missing when loading a tiff file with gv.load_tiff

!wget https://cerweb.ifremer.fr/oarcher/tmp/test_alpha.tiff
import geoviews as gv
gv.extension('bokeh')

gv.tile_sources.Wikipedia * gv.load_tiff('test_alpha.tiff')

image

That's because in

vdims = el.vdims[:bands]

el.vdims is [Dimension('R'), Dimension('G'), Dimension('B')] (A dimension is missing)

A partial workaround is to replace with

vdims = list('RGBA')[:bands]

image

But perhaps that gv.RGB.vdims should also return Dimension('A') ?

geoviews 1.9.5.post4+g8d7669f.dirty installed from master branch.

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 a pull request may close this issue.

1 participant