pops_model: PoPS (Pest or Pathogen Spread) model

View source: R/pops_model.R

pops_modelR Documentation

PoPS (Pest or Pathogen Spread) model

Description

Wrapper for pops_model_cpp. A dynamic species distribution model for pest or pathogen spread in forest or agricultural ecosystems. The model is process based meaning that it uses understanding of the effect of weather and other environmental factors on reproduction and survival of the pest/pathogen in order to forecast spread of the pest/pathogen into the future.

Usage

pops_model(
  random_seed,
  multiple_random_seeds,
  random_seeds,
  use_lethal_temperature,
  lethal_temperature,
  lethal_temperature_month,
  use_survival_rates,
  survival_rate_month,
  survival_rate_day,
  host_pools,
  total_populations,
  competency_table,
  pest_host_table,
  mortality_on,
  quarantine_areas,
  quarantine_directions,
  treatment_maps,
  treatment_dates,
  pesticide_duration,
  use_movements,
  movements,
  movements_dates,
  weather,
  temperature,
  survival_rates,
  weather_coefficient,
  weather_coefficient_sd,
  res,
  rows_cols,
  time_step,
  reproductive_rate,
  spatial_indices,
  season_month_start_end,
  soil_reservoirs,
  start_date = "2018-01-01",
  end_date = "2018-12-31",
  treatment_method = "ratio",
  natural_kernel_type = "cauchy",
  anthropogenic_kernel_type = "cauchy",
  use_anthropogenic_kernel = FALSE,
  percent_natural_dispersal = 0,
  natural_distance_scale = 21,
  anthropogenic_distance_scale = 0,
  natural_dir = "NONE",
  natural_kappa = 0,
  anthropogenic_dir = "NONE",
  anthropogenic_kappa = 0,
  output_frequency = "year",
  output_frequency_n = 1,
  quarantine_frequency = "year",
  quarantine_frequency_n = 1,
  use_quarantine = FALSE,
  spreadrate_frequency = "year",
  spreadrate_frequency_n = 1,
  mortality_frequency = "year",
  mortality_frequency_n = 1,
  use_spreadrates = FALSE,
  model_type_ = "SI",
  latency_period = 0,
  generate_stochasticity = TRUE,
  establishment_stochasticity = TRUE,
  movement_stochasticity = TRUE,
  dispersal_stochasticity = TRUE,
  establishment_probability = 0,
  dispersal_percentage = 0.99,
  use_overpopulation_movements = FALSE,
  overpopulation_percentage = 0,
  leaving_percentage = 0,
  leaving_scale_coefficient = 1,
  bbox = NULL,
  network_min_distance = 0,
  network_max_distance = 0,
  network_filename = "",
  network_movement = "walk",
  weather_size = 0,
  weather_type = "deterministic",
  dispersers_to_soils_percentage = 0,
  use_soils = FALSE
)

Arguments

random_seed

Sets the random seed for the simulation used for reproducibility

multiple_random_seeds

Boolean to indicate if the model should use multiple random seeds (allows for performing uncertainty partitioning) or a single random seed (backwards compatibility option). Default is FALSE.

random_seeds

vector of random seeds in the order of "disperser_generation", "natural_dispersal", "anthropogenic_dispersal", "establishment", "weather", "movement", "overpopulation", "survival_rate", "soil"

use_lethal_temperature

A boolean to answer the question: does your pest or pathogen have a temperature at which it cannot survive? (TRUE or FALSE)

lethal_temperature

The temperature in degrees C at which lethal temperature related mortality occurs for your pest or pathogen (-50 to 60)

lethal_temperature_month

The month in which lethal temperature related mortality occurs for your pest or pathogen integer value between 1 and 12

use_survival_rates

Boolean to indicate if the model will use survival rates to limit the survival or emergence of overwintering generations.

survival_rate_month

What month do over wintering generations emerge. We suggest using the month before for this parameter as it is when the survival rates raster will be applied.

survival_rate_day

What day should the survival rates be applied

host_pools

list of host_pool lists with each host_pool list containing matrices of infected, susceptible, exposed, total_hosts, total_exposed, resistant, mortality, and mortality_tracker for that host.

total_populations

matrix of total populations

competency_table

A csv with the hosts as the first n columns (n being the number of hosts) and the last column being the competency value. Each row is a set of Boolean for host presence and the competency value (between 0 and 1) for that combination of hosts in a cell.

pest_host_table

The file path to a csv that has these columns in this order: host, susceptibility, mortality rate, and mortality time lag as columns with each row being the species. Host species must be in the same order in the host_file_list, infected_file_list, pest_host_table rows, and competency_table columns. The host column is only used for metadata and labeling output files.

mortality_on

Boolean to indicate if mortality is used

quarantine_areas

areas that are set as quarantined for computing escape from quarantine statistics.

quarantine_directions

String with comma separated directions to include in the quarantine direction analysis, e.g., 'N,E'. By default all directions (N, S, E, W) are considered

treatment_maps

list of matrices where treatment or management has occurred in a given year

treatment_dates

Dates in which to apply treatment list with format ('YYYY_MM_DD') (needs to be the same length as treatment_file and pesticide_duration)

pesticide_duration

How long does the pesticide (herbicide, vaccine, etc..) last before the host is susceptible again. If value is 0 treatment is a culling (i.e. host removal) not a pesticide treatment. (needs to be the same length as treatment_dates and treatment_file)

use_movements

this is a boolean to turn on use of the movement module.

movements

a matrix with columns lon_from, lat_from, lon_to, lat_to, number of animals, and date.

movements_dates

this is a list of dates passed as strings in the format 'YYYY-MM-DD'

weather

Boolean that is true if weather is used

temperature

vector of matrices of temperature values used to check against lethal temperature

survival_rates

vector of matrices of survival rates used to determine percentage of overwinter population that emerges

weather_coefficient

vector of matrices of weather coefficients

weather_coefficient_sd

vector of matrices of weather coefficient standard deviations.

res

vector of east/west resolution and north/south resolution

rows_cols

vector of number of rows and columns in the raster files

time_step

How often should spread occur options: ('day', 'week', 'month').

reproductive_rate

number of spores or pest units produced by a single host under optimal weather conditions

spatial_indices

list of all spatial locations with suitable hosts

season_month_start_end

vector of months when spread starts and stops

soil_reservoirs

list of matrices with soil pests created from soil_pest_file.

start_date

Date to start the simulation with format ('YYYY_MM_DD')

end_date

Date to end the simulation with format ('YYYY_MM_DD')

treatment_method

What method to use when applying treatment one of ("ratio" or "all infected"). ratio removes a portion of all infected and susceptibles, all infected removes all infected a portion of susceptibles.

natural_kernel_type

What type of dispersal kernel should be used for natural dispersal. Current dispersal kernel options are ('Cauchy', 'exponential', 'uniform', 'deterministic neighbor','power law', 'hyperbolic secant', 'gamma', 'weibull', 'logistic')

anthropogenic_kernel_type

What type of dispersal kernel should be used for anthropogenic dispersal. Current dispersal kernel options are ('cauchy', 'exponential', 'uniform', 'deterministic neighbor','power law', 'hyperbolic secant', 'gamma', 'weibull', 'logistic', 'network')

use_anthropogenic_kernel

A boolean that turns on the use of the anthropogenic or long distance dispersal portion of the 2 scale dispersal kernel function

percent_natural_dispersal

what percentage of dispersal is natural range versus anthropogenic range value between 0 and 1

natural_distance_scale

distance scale parameter for natural range dispersal kernel numeric value > 0

anthropogenic_distance_scale

distance scale parameter for anthropogenic range dispersal kernel numeric value > 0

natural_dir

Sets the predominate direction of natural dispersal usually due to wind values ('N', 'NW', 'W', 'SW', 'S', 'SE', 'E', 'NE', 'NONE')

natural_kappa

sets the strength of the natural direction in the von-mises distribution numeric value between 0.01 and 12

anthropogenic_dir

Sets the predominate direction of anthropogenic dispersal usually due to human movement typically over long distances (e.g. nursery trade, movement of firewood, etc..) ('N', 'NW', 'W', 'SW', 'S', 'SE', 'E', 'NE', 'NONE')

anthropogenic_kappa

sets the strength of the anthropogenic direction in the von-mises distribution numeric value between 0.01 and 12

output_frequency

Sets when outputs occur either ('year', 'month', week', 'day', 'time step', or 'every_n_steps')

output_frequency_n

Sets number of units from output_frequency in which to export model results if mortality_frequency is 'every_n_steps'. Must be an integer >= 1.

quarantine_frequency

sets how often the quarantine statistics are calculated either ('year', 'month', 'week', 'day' or 'time step') (default is year)

quarantine_frequency_n

sets number units ('year', 'month', 'week', 'day' or 'time step') in which to calculate and export quarantine statistics.

use_quarantine

Boolean to indicate whether or not there is a quarantine area if TRUE must pass in a raster file indicating the quarantine areas (default = FALSE)

spreadrate_frequency

sets how often the spread rate statistics are calculated either ('year', 'month', 'week', 'day' or 'time step') (default is year)

spreadrate_frequency_n

sets number units ('year', 'month', 'week', 'day' or 'time step') in which to calculate and export spread rate statistics.

mortality_frequency

Sets the frequency of mortality calculations occur either ('year', 'month', week', 'day', 'time step', or 'every_n_steps')

mortality_frequency_n

Sets number of units from mortality_frequency in which to run the mortality calculation if mortality_frequency is 'every_n_steps'. Must be an integer >= 1.

use_spreadrates

Boolean to indicate whether or not to calculate spread rates

model_type_

What type of model most represents your system. Options are "SEI" (Susceptible - Exposed - Infected/Infested) or "SI" (Susceptible - Infected/Infested). Default value is "SI".

latency_period

How many times steps does it take to for exposed populations become infected/infested. This is an integer value and must be greater than 0 if model type is SEI.

generate_stochasticity

Boolean to indicate whether to use stochasticity in reproductive functions default is TRUE

establishment_stochasticity

Boolean to indicate whether to use stochasticity in establishment functions default is TRUE

movement_stochasticity

Boolean to indicate whether to use stochasticity in movement functions default is TRUE

dispersal_stochasticity

Boolean to indicate whether to use a stochasticity in the dispersal kernel default is TRUE

establishment_probability

Threshold to determine establishment if establishment_stochasticity is FALSE (range 0 to 1, default = 0.5)

dispersal_percentage

Percentage of dispersal used to calculate the bounding box for deterministic dispersal

use_overpopulation_movements

Boolean to indicate whether to use the overpopulation pest movement module (driven by the natural kernel with its scale parameter modified by a coefficient)

overpopulation_percentage

Percentage of occupied hosts when the cell is considered to be overpopulated

leaving_percentage

Percentage of pests leaving an overpopulated cell

leaving_scale_coefficient

Coefficient to multiply scale parameter of the natural kernel (if applicable)

bbox

bounding box for network kernel

network_min_distance

minimum time a propagule rides on the network. Used if anthropogenic_kernel_type = 'network'.

network_max_distance

maximum time a propagule rides on the network. Used if anthropogenic_kernel_type = 'network'.

network_filename

The entire file path for the network file. Used if anthropogenic_kernel_type = 'network'.

network_movement

What movement type do you want to use in the network kernel either "walk", "jump", or "teleport". "walk" allows dispersing units to leave the network at any cell along the edge. "jump" automatically moves to the nearest node when moving through the network. "teleport" moves from node to node most likely used for airport and seaport networks.

weather_size

the number of matrices in a list or layers in a raster object

weather_type

string indicating how the weather data is passed in either as a mean and standard deviation to represent uncertainty ("probabilistic") or as a time series ("deterministic")

dispersers_to_soils_percentage

range from 0 to 1 representing the percentage of dispersers that fall to the soil and survive.

use_soils

Boolean to indicate if pests establish in the soil and spread out from there. Typically used for soil borne pathogens.

Value

list of vector matrices of infected and susceptible hosts per simulated year and associated statistics (e.g. spread rate)


ncsu-landscape-dynamics/rpops documentation built on May 1, 2024, 10:21 a.m.