Performing a growth prognosis will simulate tree growth on a stand (see Create input data using tree layer data on how to set up a compartment).
Step 1. Create a new GrowthCalculator.
| Create a Growth Calculator |
Copy Code |
|---|---|
var growthCalculator = new GrowthCalculator(); | |
![]() |
Advanced: Before using the growth calculator to simulate growth, its control tables can be accessed to specify parameters pertaining to the growth.
| ||||
Short-hand methods
The compartment has short-hand methods for growing which will either create the growth calculator automatically, or accept a supplied growth calculator with specified settings. In either way, The result is an ApiState that holds a collection of data on the new state of the stand, including the new state of the tree layers.
| Growing with automatically created growth calculator |
Copy Code |
|---|---|
ApiState result = compartment.Grow(5) //Grow 5 years; | |
All grow methods on the compartment take an optional growth calculator as their last argument. If supplied, this calculator will be used to simulate the growth.
| Growing compartment to year 2030 with supplied calculator |
Copy Code |
|---|---|
var growthCalculator = new GrowthCalculator(); ApiState result = compartment.Grow(new DateTime(2030, 1, 1), growthCalculator); | |