localDispGRASS: Dispersal of seeds in neighbouring cells

Description Usage Arguments Details Value Author(s)

Description

Disperses seeds locally, i.e. in neighbouring cells, from an input raster layer in GRASS and stores the dispersed seeds in an output layer in GRASS

Usage

1
localDispGRASS(input, output = "localDispSeeds", zeroToNULL = TRUE, overwrite = FALSE)

Arguments

input

name of GRASS raster layer specifying number of seeds to be dispersed - character

output

name of GRASS raster layer generated, containing the dispersed seeds - character

zeroToNULL

boolean if TRUE replace 0 with NA in the returned matrix, otherwise all NA will be replaced with 0

overwrite

boolean if TRUE, output will be overwritten if it exists

Details

The seeds in the input layer are dispersed from each cell into the neighbouring layers following these likelihoods:

'

1
2
3
4
5
6
7
8
' +------+------+------+
' | 1/16 | 1/16 | 1/16 |
' +------+------+------+
' | 1/16 | 8/16 | 1/16 |
' +------+------+------+
' | 1/16 | 1/16 | 1/16 |
' +------+------+------+
' 

The resulting seed layer is saved and, if it exists and overwrite==TRUE, overwritten.

The MASK in GRASS is respected.

Value

invisibly character name of the output layer

Author(s)

Rainer M Krug Rainer@krugs.de


rkrug/seedDisp documentation built on July 6, 2019, 4:37 p.m.