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

getLandingsFromTarget and buildSimList use different methods for clumped rasters #33

Closed
see24 opened this issue May 27, 2024 · 1 comment

Comments

@see24
Copy link
Member

see24 commented May 27, 2024

buildSimList converts to polygons while getLandingsFromTarget iterates over each clump. Probably buildSimList should call getLandingsFromTarget to avoid duplication but need to figure out which method is better.

@see24 see24 closed this as completed in 3db6463 May 30, 2024
@see24
Copy link
Member Author

see24 commented May 30, 2024

Now using getLandings in buildSimList. Also changed so using terra::as.polygons in all cases and skipping the patches (clumping) part if raster values are not in 0, 1

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

No branches or pull requests

1 participant