# A European beech has a height of 25.2 m at age 75. Estimate
# its age at height 26.8 m
age_h_gnfi3(100, 26.8, 25.2, 75) # 100 is ger_nfi_2012 code for E. beech
# Do the same backward in time, age at height 21.7 m
age_h_gnfi3(100, 21.7, 25.2, 75)
# Apply for more than one tree, different species, same age
h_known <- c(23.1, 16.2, 35.2, 19.3, 21.8)
h_age <- c(25.5, 18.2, 38.0, 21.6, 24.2)
species <- as_fe_species_tum_wwk_short(c(3, 3, 3, 6, 6))
age_h_gnfi3(
species, h_m = h_age, h_m_known = h_known, age_yr_known = 60
)
Run the code above in your browser using DataLab