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 nodata value masking issue in UNA's urban nature balance #1520

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

phargogh
Copy link
Member

@phargogh phargogh commented Feb 6, 2024

UNA was incorrectly assuming that by the time we were calculating urban nature supply, all of the nodata values in the raster would be FLOAT32_NODATA, which was not actually happening with Stacie's data. This PR updates how we calculate the balance to handle any nodata values.

Fixes #1519

Checklist

  • Updated HISTORY.rst and link to any relevant issue (if these changes are user-facing)
    - [ ] Updated the user's guide (if needed)
    - [ ] Tested the Workbench UI (if relevant)

Copy link
Member

@emlys emlys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense!

@emlys emlys merged commit 9e9b4a4 into natcap:main Feb 7, 2024
24 of 25 checks passed
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.

inf values ending up in UNA outputs
2 participants