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: Fix 0 elevation bug in relalt filter #75

Merged
merged 2 commits into from
Jan 2, 2025

Conversation

thorbjoernl
Copy link
Collaborator

@thorbjoernl thorbjoernl commented Jan 2, 2025

There was an issue where when filtering the elevation based on distance, the replacement value for excluded cells in the grid would be set to False which Python helpfully treats as 0 when determining the minimum altitude in the radius. As a consequence all sites would be compared to a valley floor of 0m. Now the replacement is set properly to NaN, which should fix the valley floor calculation.

Thanks @heikoklein for finding the problem.

@thorbjoernl thorbjoernl self-assigned this Jan 2, 2025
@thorbjoernl thorbjoernl added this to the m2025-01 milestone Jan 2, 2025
@thorbjoernl thorbjoernl requested a review from heikoklein January 2, 2025 15:13
@thorbjoernl thorbjoernl merged commit ba37ed7 into main Jan 2, 2025
3 checks passed
@thorbjoernl thorbjoernl deleted the fix-relalt-station-filter branch January 2, 2025 15:21
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