# Estimate the height to crown base of a Scots pine with a stem diameter
# at breast height of 45.2 cm and a total height of 29.2 m:
height_crown_base_silva(
species_id = "3", # will be internally converted to tum_wwk_short
dbh_cm = 45.2,
height_m = 29.2
) # 20.9 m (rounded)
# Height to crown base estimate for a European beech with
# the same height and diameter:
height_crown_base_silva(
species_id = "5", # will be internally converted to tum_wwk_short
dbh_cm = 45.2,
height_m = 29.2
) # 15.0 m (rounded)
# Run on vectors
spec <- mm_forest_1_fe_stand_spatial$trees$species_id
h <- mm_forest_1_fe_stand_spatial$trees$height_m
d <- mm_forest_1_fe_stand_spatial$trees$dbh_cm
height_crown_base_silva(spec, d, h)
Run the code above in your browser using DataLab