Does the following:
add new cohort data into cohortdata
;
assign initial biomass and age for new cohort;
assign the new pixelgroup to the pixels that have new cohort;
update the pixelgroup map.
addNewCohorts(newCohortData, cohortData, pixelGroupMap, time, speciesEcoregion)
newCohortData | must be a complete cohortData object with entirely new
|
---|---|
cohortData | a |
pixelGroupMap | Raster layer with pixel values equal to a pixel group number that
correspondsd exactly to ] |
time | Current time e.g., time(sim). This is used to extract the correct
parameters in |
speciesEcoregion | A speciesEcoregion table. |
A data.table
with a new, rbindlist
ed cohortData