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 island masking bug #1278

Merged
merged 3 commits into from
Aug 13, 2024
Merged

Fix island masking bug #1278

merged 3 commits into from
Aug 13, 2024

Conversation

robbibt
Copy link
Member

@robbibt robbibt commented Aug 13, 2024

The geodata_coast_100k layer (used to define "land" in our ARD styles) has values of 0 (water), 1 (islands) and 2 (land):
image

But for some reason, the pq_mask_fmask_land mask seems to be using a value of 1 and then inverting it... which seems to be leading to islands being masked but water and land being preserved.

This PR attempts to fix this by to change this line to [0], i.e. water, which should lead to ocean being masked but not land or islands.

@robbibt robbibt requested a review from SpacemanPaul August 13, 2024 08:10
@robbibt robbibt marked this pull request as ready for review August 13, 2024 08:14
@robbibt robbibt merged commit 2ddb99e into master Aug 13, 2024
4 of 6 checks passed
@robbibt robbibt deleted the fix_island_masking branch August 13, 2024 22:59
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.

2 participants