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

Adding coastlines does not preserve transparency #99

Closed
adybbroe opened this issue Nov 10, 2017 · 3 comments
Closed

Adding coastlines does not preserve transparency #99

adybbroe opened this issue Nov 10, 2017 · 3 comments
Assignees
Labels

Comments

@adybbroe
Copy link
Contributor

When adding coast lines to an image the image is no more transparent. Perhaps this is inevitable, as I guess the coastlines/overlay is stored to the alpha channel?

See e.g. the example at
pytroll-examples/satpy/viirs_smoke.ipynb

@djhoese djhoese added the bug label Dec 4, 2017
@adybbroe adybbroe self-assigned this Jun 1, 2021
@adybbroe
Copy link
Contributor Author

adybbroe commented Jun 1, 2021

I am pretty sure this is no more an issue! Right?

@djhoese
Copy link
Member

djhoese commented Jun 1, 2021

Looks good to me:

image

Edit: For the record, here's the code I ran:

from satpy import Scene; from glob import glob

scn = Scene(reader='viirs_sdr', filenames=glob('/data/satellite/viirs/conus_day/*t180[1234]*.h5'))
scn.load(['true_color'])
new_scn = scn.resample('moll')
new_scn.show('true_color', overlay={'coast_dir': '/data/gshhg_shapefiles/', 'color': (255, 140, 100)})

@djhoese djhoese closed this as completed Jun 1, 2021
@adybbroe
Copy link
Contributor Author

adybbroe commented Jun 1, 2021

Thanks @djhoese !

adybbroe added a commit to adybbroe/satpy that referenced this issue Dec 2, 2021
Fix Read The Doc pages - does not build at the moment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants