# Species codes handed to h_q_from_d_q will be attempted to convert
# into tum_wwk_short
h_q_from_d_q(5, 25.4) # Apply to a common beech stand width d_q = 25.4 cm
h_q_from_d_q(fe_species_ger_nfi_2012(100), 25.4)
# Works also vectorized, i.e. when vectors of d_q values and species codes
# are given
species <- fe_species_tum_wwk_short(c(1, 3, 5))
d_qmean <- c(23.2, 47.2, 12.7)
h_q_from_d_q(species, d_qmean)
# Typical application: From diameter values to single tree height estimates
# when no height information is available
# - single tree diameters in a stand/cohort
dbh <- c(10.2, 43.3, 37.5, 28.8, 12.4, 19.2, 25.4, 27.3, 32.0)
# - quadratic mean diameter
d_qmean <- d_q(dbh)
species <- fe_species_tum_wwk_short(3) # we assume it's a Scots pine stand
# - quadrativ mean height fallback value
h_qest <- h_q_from_d_q(species, d_qmean)
# - single tree height estimates with the German National Inventory height
# curve system
h_standard_gnfi3(species, dbh, d_qmean, h_qest)
Run the code above in your browser using DataLab