| genPGsPostDisturbance | R Documentation |
pixelGroups in partially disturbed pixels.Re-generate new pixelGroups in partially disturbed pixels.
genPGsPostDisturbance(
cohortData,
pixelGroupMap,
disturbedPixelTable,
disturbedPixelCohortData,
colsForPixelGroups = LandR::columnsForPixelGroups,
doAssertion = getOption("LandR.assertions", TRUE)
)
cohortData |
|
pixelGroupMap |
|
disturbedPixelTable |
|
disturbedPixelCohortData |
a |
colsForPixelGroups |
character. |
doAssertion |
A logical indicating whether some internal tests should be run to
ensure the function is running correctly.
Default: |
This function regenerates pixelGroups in situations where
disturbances are not stand-replacing and create survivor and dead
cohorts in some, but potentially not all, pixels of a pixelGroup. This is
necessary to prevent reintroducing dead cohorts that were not affected
in the other pixels of the same, original, pixelGroup.
ATTENTION This function alone will not generate final pixelGroups,
and will likely need to be followed by an updateCohortData run.
The function:
creates a table of undisturbed pixels, and disturbed pixels with dead and surviving cohorts
but not new cohorts (e.g. from serotiny/resprouting) – these are added by updateCohortData;
generates pixelGroups considering these dead and surviving cohorts – this ensures that
we account for cohorts that died in some but not all pixels of a given pixelGroup;
then removes dead cohorts (as they should not be in tables for downstream
functions like updateCohortData) and recalculates pixelGroups – this ensures that
pixels that became similar/dissimilar after the death of some cohorts can form new pixelGroups.
a named list with:
a cohortData table with the updated pixelGroups, as well as
survivor cohorts, but not dead cohorts.
a pixelGroupMap with the updated pixelGroups in disturbed pixels
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.