Creates a raster of ecoregion codes per pixel. Unlike ecoregionProducer, this fills the raster with pixel information contained in pixelCohortData.

makeEcoregionMap(ecoregionFiles, pixelCohortData)

Arguments

ecoregionFiles

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

pixelCohortData

The full cohortData data.table

Value

A raster with ecoregion codes.