waterDispGRASS: Dispersal of seeds by water

Description Usage Arguments Details Value Author(s)

Description

Water disperse seeds from a seed layer using GRASS

Usage

1
waterDispGRASS(input, output="waterDispSeeds", flowdir, depRates, 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

flowdir

character name of GRASS raster containing flow direction (in GRASS agnps format)

depRates

character name of GRASS raster layer cotaining the deposit rates for each cell.

zeroToNULL

boolean if TRUE replace 0 with NA in the returned matrix,

overwrite

boolean TRUE to overwrite existing output raster

Details

This function disperses seeds using water dispersal using the raster flowdir in GRASS agnps format and a raster containing the deposit rates of the seeds for each cell (values rangingfrom 0 to 1).

The principle in this module is as follow:

  1. create empty output layer

  2. copy input layer into seedsToBeDispersed

  3. repeat

  4. calculate seeds which are deposited in each cell based on depRates and add these to the output layer

  5. subtract the deposited seeds from the seedsToBeDispersed layer

  6. disperse remaining seeds in each direction separately for each cell

  7. add up dispersed seeds and store in seedsToBeDispersed

  8. until seedsToBeDispersed is empty

  9. end

Value

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.