Closed samaperrin closed 7 months ago
not sure why, but my R will only install rasterdiv from github:
remotes::install_github("mattmar/rasterdiv")
in that latest version, theShannon()
function does not work with araster::RasterLayer
but does work withterra::SpatRaster
. This means you can't use CRAN version ofrasterdiv
right now, but I suspect the package will move in that direction. I've updated the PR, and if you are content with using the development version ofrasterdiv
, then I'm happy to merge.
Yeah this sounds better to be honest, if it's working with terra then I assume it's faster. Will give it a test run on Monday and then merge.
Why have changes been made?
One of the final environmental covariates that we need is habitat heterogeneity. We have found a metric based on the rasterdiv package by Rocchini et al. THis is a simple implementation based on the available CORINE data which generates habitat heterogeneity based on the surrounding pixels.
What changes have been made?
Additional changes