makePixelTable: Make 'pixelTable' from biomass, age, land-cover and species...

Description Usage Arguments Value

View source: R/prepInputObjects.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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.


PredictiveEcology/LandR documentation built on Jan. 24, 2021, 12:52 a.m.