Skip to content
New issue

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

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

Already on GitHub? # to your account

FIX: handle unset nodata and correctly set mask for expanded areas #37

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

mwtoews
Copy link
Owner

@mwtoews mwtoews commented Aug 9, 2024

This PR handles unset nodata a bit better, included when nan values are implicitly used as nodata. The returned array fill_value is changed to be the same as nodata.

Also, when expanding the grid beyond raster bounds, the outside information is properly masked. For instance, before there is a "halo":
image

while this is fixed to mask the expanded areas:
image

@mwtoews mwtoews merged commit a541f05 into main Aug 9, 2024
6 checks passed
@mwtoews mwtoews deleted the unset-nodata branch August 9, 2024 10:29
@mwtoews mwtoews added the bug Something isn't working label Aug 22, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant