create_pollen_sources: Pollen sources emission simulation

Description Usage Arguments Value

View source: R/pollen_data.R

Description

Simulate pollen sources emission for maize crop. The proportion of plants emitting pollen per day (during 12 days) was observed by Frédérique Angevin (Angevin et al. 2008).

Usage

1
2
3
4
5
6
7
8
create_pollen_sources(
  sf,
  timeline = 1:61,
  density = runif(1, 7, 11),
  pollen = rgamma(1, shape = 1.6, scale = 1/(2 * 10^-7))
)

create.pollen.sources()

Arguments

sf

A sf object defining sources fields

timeline

Vector of interger. Time units (e.g. days) including the pollen emission (for simulation, default is time.max). Minimal value is a vector of 12 days.

density

Plant density (number of plant by squared meter)

pollen

Pollen production (number of grains by plant)

Value

A matrix indexed by sources ID (in rows) and by time ( in columns) whose rows give the values of pollen emission (number of grains) for every source.


briskaR documentation built on Dec. 11, 2021, 9:23 a.m.