forage_index: Calculate landscape forage quality index

View source: R/forage_index.R

forage_indexR Documentation

Calculate landscape forage quality index

Description

New implementation of landscape forage quality index (Lonsdorf et al 2009). Uses FFT convolution to improve runtime.

Usage

forage_index(
  output_dir,
  landcover_path,
  foragetable_path = NA,
  forage_table,
  seasons,
  forage_range = NA,
  guild_table = NA,
  agg_factor = NA,
  normalize = T,
  useW = F,
  rastertag = NA,
  verbose = T
)

Arguments

output_dir

Path to directory for output files.

landcover_path

Path to land cover raster, including base file name

foragetable_path

Path to forage quality by land use table (CDL class integers should be in column called 'LULC')

forage_table

Forage quality by land use table (insead of foragetable_path)

seasons

seasons to include. Must match names of forage table.

forage_range

Foraging range (in m) to use for distance weighting forage scores surrounding focal cell.

guild_table

Bee community to use to model foraging activity. Includes foraging range and relative abundance of each species.

#optional parameters

agg_factor

Aggregation factor for large rasters (use 4 to convert 50m to 120m resolution CDL)

normalize

Normalize values by the number of cells within each moving window?

rastertag

Text string to include in name of output raster

verbose

Include more log messages from model run?

Details

It is necessary to specify 'forage_range' OR 'guild_table,' not both.


land-4-bees/SpeedyBeeModel documentation built on Sept. 27, 2022, 1:17 a.m.