Calculates distance to range boundary and returns a raster object. Alternatively, one could use raster::distance()
but it is very slow with large rasters. This function uses GRASS (and requires grass to be available), but is much faster.
1 2 | rangeDist_grass(spdata, domain, domainkm = 1000, mask = T, verbose = T,
clean = F, gisBase = NULL, file)
|
spdata |
|
domain |
Empty raster extent or path to geotif representing the potential modelling domain with resolution, projection, etc. |
domainkm |
Distance threshold (in km) from expert range to set species |
mask |
|
verbose |
|
clean |
|
gisBase |
Path to GRASS Binaries as required by |
file |
filename for output file exported from GRASS. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.