ropensci / NLMR

📦 R package to simulate neutral landscape models 🏔
https://ropensci.github.io/NLMR/
65 stars 17 forks source link

Terra #86

Open chrismallon opened 2 years ago

chrismallon commented 2 years ago

Hi folks,

Thank you so much for this excellent package. I've been using nlm_randomcluster in my work a great deal. We generally use terra for raster operations now. For alignment with the rest of our work, I've updated nlm_percolation.R and nlm_randomcluster.R to work with terra. In my testing, they seem to produce analogous results in roughly 20% of the time.

Tests have been updated, along with code, in a new branch terra.

If you're open to it, I'd love to work on the rest of the functions. They haven't been a priority for us so far, but it's been fun doing the work and I'd appreciate the opportunity to continue to contribute. Irrespective, I hope this can support your work a bit!

Thanks again! Warmly, Chris

marcosci commented 2 years ago

Uh, excellent! I like that very much, in my daily work I rarely use raster anymore. Makes total sense to integrate this here ... will go through your PR and check it, thanks a ton!

JetteReeg commented 10 months ago

Hi, I am currently updating some R tutorials (moving from raster to terra) using the nlmr package (great package btw - thanks for developing!) and I am wondering if there are currently any efforts to delete the raster dependency and move to terra?

bitbacchus commented 10 months ago

Hi Jette,

Hi, I am currently updating some R tutorials (moving from raster to terra) using the nlmr package (great package btw - thanks for developing!) and I am wondering if there are currently any efforts to delete the raster dependency and move to terra?

thanks for nudging, I totally forgot about this issue :-)

I'll try to schedule this for beginning of December.

Cheers,

Sebastian