rangeDist_grass: Use GRASS to calcuate distance to range edge

Description Usage Arguments

Description

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.

Usage

1
2
rangeDist_grass(spdata, domain, domainkm = 1000, mask = T, verbose = T,
  clean = F, gisBase = NULL, file)

Arguments

spdata

list object with range and points

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 domain.

mask

logical indicating whether to mask the distance to values <= domainkm.

verbose

logical indicating whether to print status messages.

clean

logical indicating whether to delete all temporary GRASS files (the default) or keep them. By default these files are in the current tempdir() and will be deleted when quitting R.

gisBase

Path to GRASS Binaries as required by initGRASS

file

filename for output file exported from GRASS.


bossMaps documentation built on May 2, 2019, 3:57 p.m.