Marklund biomass with SweTimberΒΆ

This notebook demonstrates how to combine the SweTimber helper class with the Marklund_1988 biomass wrapper.

[1]:
from pyforestry.sweden.biomass import Marklund_1988
from pyforestry.sweden.timber import SweTimber
[2]:
# Construct a SweTimber instance
pine = SweTimber(
    species="pinus sylvestris",
    diameter_cm=25,
    height_m=15,
    double_bark_mm=15,
    crown_base_height_m=7
)
[3]:
# Calculate biomass for all components
Marklund_1988(pine)
[3]:
{'stem': np.float64(138.17212824703805),
 'stem_wood': np.float64(125.74493189426362),
 'stem_bark': np.float64(10.572288353477234),
 'living_branches': np.float64(7.419433610116955),
 'needles': np.float64(3.5667312294648026),
 'dead_branches': np.float64(1.0440901553242214),
 'stump_root_system': np.float64(13.045246317168706),
 'stump': np.float64(25.30894605743497)}
[4]:
# Retrieve only the stem biomass
Marklund_1988(pine, component="stem")
[4]:
np.float64(138.17212824703805)