iLand
Public Member Functions | List of all members
StandStatistics Class Reference

Collects information on stand level for each tree species. More...

#include <standstatistics.h>

Public Member Functions

 StandStatistics ()
 
void setResourceUnitSpecies (const ResourceUnitSpecies *rus)
 
void add (const StandStatistics &stat)
 add aggregates of stat to own aggregates More...
 
void addAreaWeighted (const StandStatistics &stat, const double weight)
 add aggregates of stat to this aggregate and scale using the weight (e.g. stockable area) More...
 
void add (const Tree *tree, const TreeGrowthData *tgd)
 call for each tree within the domain More...
 
void addNPP (const TreeGrowthData *tgd)
 add only the NPP More...
 
void add (const SaplingStat *sapling)
 call for regeneration layer of a species in resource unit More...
 
void clear ()
 call before trees are aggregated More...
 
void clearOnlyTrees ()
 clear the statistics only for tree biomass (keep NPP, regen, ...) More...
 
void calculate ()
 call after all trees are processed (postprocessing) More...
 
void calculateAreaWeighted ()
 call after a series of addAreaWeighted More...
 
double count () const
 
double dbh_avg () const
 average dbh (cm) More...
 
double height_avg () const
 average tree height (m) More...
 
double volume () const
 sum of tree volume (m3/ha) More...
 
double gwl () const
 total increment (m3/ha) More...
 
double basalArea () const
 sum of basal area of all trees (m2/ha) More...
 
double leafAreaIndex () const
 [m2/m2]/ha stocked area (trees > 4m) More...
 
double leafAreaIndexSaplings () const
 m2/m2 LAI of sapling layer More...
 
double npp () const
 sum. of NPP (kg Biomass increment, above+belowground, trees >4m)/ha More...
 
double nppAbove () const
 above ground NPP (kg Biomass increment)/ha More...
 
double nppSaplings () const
 carbon gain of saplings (kg Biomass increment)/ha More...
 
int cohortCount () const
 number of cohorts of saplings / ha More...
 
int saplingCount () const
 number individuals in regeneration layer (represented by "cohortCount" cohorts) N/ha More...
 
double saplingAge () const
 average age of sapling (currenty not weighted with represented sapling numbers...) More...
 
double saplingBasalArea () const
 total basal area (m2) of saplings (>1.3m) More...
 
double cStem () const
 
double nStem () const
 
double cBranch () const
 
double nBranch () const
 
double cFoliage () const
 
double nFoliage () const
 
double cCoarseRoot () const
 
double nCoarseRoot () const
 
double cFineRoot () const
 
double nFineRoot () const
 
double cRegeneration () const
 
double nRegeneration () const
 
double totalCarbon () const
 total carbon stock: sum of carbon of all living trees + regeneration layer More...
 

Detailed Description

Collects information on stand level for each tree species.

Call clear() to clear the statistics, then call add() for each tree and finally calculate(). To aggregate on a higher level, use add() for each StandStatistics object to include, and then calculate() on the higher level. Todo-List for new items:

Constructor & Destructor Documentation

◆ StandStatistics()

StandStatistics::StandStatistics ( )
inline

Member Function Documentation

◆ add() [1/3]

void StandStatistics::add ( const SaplingStat sapling)

call for regeneration layer of a species in resource unit

◆ add() [2/3]

void StandStatistics::add ( const StandStatistics stat)

add aggregates of stat to own aggregates

◆ add() [3/3]

void StandStatistics::add ( const Tree tree,
const TreeGrowthData tgd 
)

call for each tree within the domain

◆ addAreaWeighted()

void StandStatistics::addAreaWeighted ( const StandStatistics stat,
const double  weight 
)

add aggregates of stat to this aggregate and scale using the weight (e.g. stockable area)

◆ addNPP()

void StandStatistics::addNPP ( const TreeGrowthData tgd)

add only the NPP

◆ basalArea()

double StandStatistics::basalArea ( ) const
inline

sum of basal area of all trees (m2/ha)

◆ calculate()

void StandStatistics::calculate ( )

call after all trees are processed (postprocessing)

◆ calculateAreaWeighted()

void StandStatistics::calculateAreaWeighted ( )

call after a series of addAreaWeighted

◆ cBranch()

double StandStatistics::cBranch ( ) const
inline

◆ cCoarseRoot()

double StandStatistics::cCoarseRoot ( ) const
inline

◆ cFineRoot()

double StandStatistics::cFineRoot ( ) const
inline

◆ cFoliage()

double StandStatistics::cFoliage ( ) const
inline

◆ clear()

void StandStatistics::clear ( )

call before trees are aggregated

◆ clearOnlyTrees()

void StandStatistics::clearOnlyTrees ( )

clear the statistics only for tree biomass (keep NPP, regen, ...)

◆ cohortCount()

int StandStatistics::cohortCount ( ) const
inline

number of cohorts of saplings / ha

◆ count()

double StandStatistics::count ( ) const
inline

◆ cRegeneration()

double StandStatistics::cRegeneration ( ) const
inline

◆ cStem()

double StandStatistics::cStem ( ) const
inline

◆ dbh_avg()

double StandStatistics::dbh_avg ( ) const
inline

average dbh (cm)

◆ gwl()

double StandStatistics::gwl ( ) const
inline

total increment (m3/ha)

◆ height_avg()

double StandStatistics::height_avg ( ) const
inline

average tree height (m)

◆ leafAreaIndex()

double StandStatistics::leafAreaIndex ( ) const
inline

[m2/m2]/ha stocked area (trees > 4m)

◆ leafAreaIndexSaplings()

double StandStatistics::leafAreaIndexSaplings ( ) const
inline

m2/m2 LAI of sapling layer

◆ nBranch()

double StandStatistics::nBranch ( ) const
inline

◆ nCoarseRoot()

double StandStatistics::nCoarseRoot ( ) const
inline

◆ nFineRoot()

double StandStatistics::nFineRoot ( ) const
inline

◆ nFoliage()

double StandStatistics::nFoliage ( ) const
inline

◆ npp()

double StandStatistics::npp ( ) const
inline

sum. of NPP (kg Biomass increment, above+belowground, trees >4m)/ha

◆ nppAbove()

double StandStatistics::nppAbove ( ) const
inline

above ground NPP (kg Biomass increment)/ha

◆ nppSaplings()

double StandStatistics::nppSaplings ( ) const
inline

carbon gain of saplings (kg Biomass increment)/ha

◆ nRegeneration()

double StandStatistics::nRegeneration ( ) const
inline

◆ nStem()

double StandStatistics::nStem ( ) const
inline

◆ saplingAge()

double StandStatistics::saplingAge ( ) const
inline

average age of sapling (currenty not weighted with represented sapling numbers...)

◆ saplingBasalArea()

double StandStatistics::saplingBasalArea ( ) const
inline

total basal area (m2) of saplings (>1.3m)

◆ saplingCount()

int StandStatistics::saplingCount ( ) const
inline

number individuals in regeneration layer (represented by "cohortCount" cohorts) N/ha

◆ setResourceUnitSpecies()

void StandStatistics::setResourceUnitSpecies ( const ResourceUnitSpecies rus)
inline

◆ totalCarbon()

double StandStatistics::totalCarbon ( ) const
inline

total carbon stock: sum of carbon of all living trees + regeneration layer

◆ volume()

double StandStatistics::volume ( ) const
inline

sum of tree volume (m3/ha)


The documentation for this class was generated from the following files: