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

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

Arguments

speciesLayers

A RasterStack or RasterLayer that should contain species cover data in the study area

standAgeMap

A rasterLayer of stand ages with attribute "imputedPixID"

ecoregionFiles

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

biomassMap

raster of total stand biomass in t/ha. Biomass units are converted to g/m^2.

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, e.g., LCC2005

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, with biomass in g/m^2.