Sebastian Hanß

Results 79 comments of Sebastian Hanß

I'm creating a branch with a working version, just a sec

Have a look at the new branch `terra`. I added your code (replaced some raster funs by terra equivalents, added `terra` to the dependencies in the DESCRIPTION file, and ran...

I'd say I close the PR, you pull the terra branch + add your changes and create a new PR?

Hmm, [it seems that there is some issue with C-code](https://www.stats.ox.ac.uk/pub/bdr/Strict/landscapetools.out). Or rather the R API (Calloc from R.h). The quickest for me would be to re-implement it with rcpp. For...

@jeroen that's pretty easy indeed. Do you have an R 4.5 machine to test it on? The calloc branch?

It makes sense to have it fixed because we are dealing with rasters. Consider this 3x3 pixel landscape: ![Image](https://github.com/user-attachments/assets/872c9adb-fc4e-4491-bb89-4bc937dcda5c) lsm_c_te only considers the pixels left-right and above-below, and calculates a...

Dear @danielvartan , its on our agenda, we're just lacking a bit of (wo-)man power at the moment. My plan at the moment is to see how you did it...