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

Fix black stripes when mosaicing without nodata #219

Merged
merged 1 commit into from
Sep 7, 2023

Conversation

gjoseph92
Copy link
Owner

When a GeoTIFF doesn't have a nodata value, and we use a VRT, GDAL fills in 0s for pixels outside the bounds. However, read(masked=True) doesn't mask these 0s, so they're left in as valid data.

Using add_alpha in the VRT, we get an extra explicit alpha band to use as the mask.

Closes #217.

@gjoseph92 gjoseph92 merged commit 30e7c5b into main Sep 7, 2023
1 check passed
@gjoseph92 gjoseph92 deleted the mask-missing-nodata branch September 7, 2023 20:30
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.

Black stripes on mosaicking
1 participant