This function creates a table containing pixel-wise ecoregion codes and whether they are "active" (have biomass > 0) or not for simulation. Unlike ecoregionProducer, this function creates the ecoregion table from pixel information contained in pixelCohortData

makeEcoregionDT(pixelCohortData, speciesEcoregion)

Arguments

pixelCohortData

The full cohortData data.table

speciesEcoregion

A data.table with speciesEcoregion values.

Value

A data.table with ecoregion codes and their active status per pixelID.