This is a wrapper for generatePixelGroups
, initiateNewCohort
and updates to
pixelGroupMap
via assignment to new pixelIndex
values in newPixelCohortData
.
By running these all together, there is less chance that they will diverge.
There are some checks internally for consistency.
updateCohortDataPostHarvest( newPixelCohortData, cohortData, pixelGroupMap, currentTime, speciesEcoregion, treedHarvestPixelTable = NULL, successionTimestep, provenanceTable, cohortDefinitionCols = c("pixelGroup", "age", "speciesCode"), verbose = getOption("LandR.verbose", TRUE), doAssertion = getOption("LandR.assertions", TRUE) )
newPixelCohortData | must be a complete |
---|---|
cohortData | A |
pixelGroupMap | A |
currentTime | The current simulation time e.g., |
speciesEcoregion | A |
treedHarvestPixelTable | A data.table with at least 2 columns, |
successionTimestep | The time between successive seed dispersal events. In LANDIS-II, this is called "Succession Timestep". This is used here |
provenanceTable | A |
cohortDefinitionCols | the columns in |
verbose | Integer, where increasing number is increasing verbosity. Currently, only level 1 exists; but this may change. |
doAssertion | A logical indicating whether some internal tests should be run to
ensure the function is running correctly.
Default: |
A list of length 2, cohortData
and pixelGroupMap
, with
newPixelCohortData
inserted.
Does the following:
add new cohort data into cohortData
;
assign initial B
and age
for new cohort;
assign the new pixelGroup
to the pixels that have new cohort;
update the pixelGroup
map.