Heureka API .NET Documentation
Calculate site index from age and height

The API includes a variety of classes that perform common calculations. One such class is ApiSiteIndexCalculator which can be called statically to calculate the site index of a species group.

Calculating site index for Pine CS
Copy Code

var siteIndex = ApiSiteIndexCalculator.GetSiteIndexFromHeightCurve(
                         dominantSpecies: SpeciesGroupCode.Pine, 
                         currentDominantHeight: 15, 
                         currentAge: 50);

The calculator can also convert from site indexes for birch, oak, beech and contorta, to site index for pine or spruce. This is sometimes needed because Heureka only accepts Pine or Spruce as site index species.

Example Title
Copy Code
var species = SpeciesGroupCode.Birch;
//Calculate the site index for pine or spruce from site index species Birch with site index 20
//After the call, species will be set to either SpeciesGroupCode.Pine or SpeciesGroupCode.Spruce.
var siteIndex = ApiSiteIndexCalculator.ConvertToPineOrSpruce(ref species, fromSpeciesSiteIndex: 20);