Make pixelTable from biomass, age, land-cover and species cover data

makePixelTable(
  speciesLayers,
  species,
  standAgeMap,
  ecoregionFiles,
  biomassMap,
  rasterToMatch,
  rstLCC,
  printSummary = TRUE,
  doAssertion = getOption("LandR.assertions", TRUE)
)

Arguments

speciesLayers

stack of species layers rasters

species

a data.table with species traits such as longevity, shade tolerance, etc.

standAgeMap

raster of stand age

ecoregionFiles

A list with two objects: the ecoregionMap and a table summarizing its information per pixelID. See ecoregionProducer.

biomassMap

raster of total stand biomass

rasterToMatch

A RasterLayer objects to use as the template for all subsequent raster operations (i.e., the one used throughout the simulation).

rstLCC

raster of land-cover class

printSummary

Logical. If TRUE, the default, a print out of the summary(pixelTable) will occur.

doAssertion

A logical indicating whether some internal tests should be run to ensure the function is running correctly. Default: getOption("LandR.assertions", TRUE).

Value

A data.table as many rows as non-NA pixels in rasterToMath and the columns containing pixel data from the input raster layers.