Marklund biomass with SweTimber#
Notebook Objectives#
Combine SweTimber with Marklund biomass equations for practical biomass calculations.
Provide runnable, copy-safe snippets that work in the docs build environment.
Prerequisites#
Python environment with
pyforestryinstalled from this repository.Execute cells in order; random components should use fixed seeds where shown.
Sources#
Marklund (1988) biomass equations in
pyforestry.sweden.biomass.marklund_1988.
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': 138.17212824703805,
'stem_wood': 125.74493189426362,
'stem_bark': 9.668554551395248,
'living_branches': 44.23163558559602,
'needles': 10.631787243731852,
'dead_branches': 4.462538650002918,
'stump_root_system': 61.30504637588977,
'stump': 18.903791303173385,
'coarse_roots': 30.904626028327577,
'fine_roots': 12.24355896580103}
[4]:
# Retrieve only the stem biomass
Marklund_1988(pine, component="stem")
[4]:
138.17212824703805