This function calculates additional variables based on measurements, such as

  • calc_height_m: calculated height based on `dbh_mm` and a species specific diameter-height model

  • basal_area_m2

  • vol_bole_m3: calculated based on `dbh_mm`, `calc_height_m` and species specific tariffs

  • vol_crown_m3: calculated based on `dbh_mm` and species specific tariffs

  • vol_tot_m3: sum of `vol_bole_m3` and `vol_crowwn_m3`

  • basal_area_alive_m2_ha

  • basal_area_dead_m2_ha

  • vol_alive_m3_ha

  • vol_dead_standing_m3_ha

  • vol_bole_alive_m3_ha

  • vol_bole_dead_m3_ha

calc_variables_stem_level(data_stems, height_model)

Arguments

data_stems

dataframe on stems (shoots and trees) as given from the function compose_stem_data()

height_model

dataframe with `model` containing 'exp' or 'ln', coeficients `P1` and `P2` to calculate height model for each combination of `species`, `forest_reserve`, `period` and `plottype`. Height models in .xlsx generated by Fieldmap can be grouped in a dataframe using function `load_height_models()`

Value

Dataframe with ...

Examples

if (FALSE) {
#change path before running
library(forrescalc)
data_dendro <-
  load_data_dendrometry("C:/MDB_BOSRES_selectieEls/FieldMapData_MDB_BOSRES_selectieEls.accdb")
data_shoots <-
  load_data_shoots("C:/MDB_BOSRES_selectieEls/FieldMapData_MDB_BOSRES_selectieEls.accdb")
data_stems <- compose_stem_data(data_dendro, data_shoots)
height_model <- load_height_models("C:/bosreservaten/Hoogtemodellen/")
calc_variables_stem_level(data_stems, height_model)
}