# BDATRINDE2HX: Calculate double bark thickness In rBDAT: Implementation of BDAT Tree Taper Fortran Functions

 BDATRINDE2HX R Documentation

## Calculate double bark thickness

### Description

BDAT-Function to get double bark thickness at given height Hx

### Usage

``````BDATRINDE2HX(BDATArtNr, D1, H1 = 1.3, D2 = 0, H2 = 0, H, Hx)
``````

### Arguments

 `BDATArtNr` numeric vector of species code; see `getSpeciesCode`. `D1` first measured diameter of tree [cm] e.g. diameter in breast height `H1` measurement height of `D1` [m] `D2` second measured diameter of tree, see `buildTree` for details on how to specify different taper forms `H2` measurement height of D2, see `buildTree` for details on how to specify different taper forms `H` total tree height [m] `Hx` height for which double bark thickness is required [m]

### Details

This function returns double bark thickness in given height `Hx` in stem taper (hence, it depends on the diameter in given height). This can be added onto a diameter under bark to receive diameter over bark.

### Value

vector of double bark thickness given height `Hx` inside stem taper.

`getBark` for a function with a convenient english name

### Examples

``````## simple call of function, with all parameters given
BDATRINDE2HX(1, 30, 1.3, 0, 0, 25, Hx = 1.3)

## same with variables
BDATArtNr <- 1
D1 <- 30
H1 <- 1.3
D2 <- 0
H2 <- 0
H <- 25
Hx <- 1.3
BDATRINDE2HX(BDATArtNr = BDATArtNr, D1 = D1, H1 = H1, D2 = D2, H2 = H2, H = H, Hx = Hx)
## calling with a subset of tree characteristics
## german species names, abbreviated
BDATRINDE2HX(getSpeciesCode(c("Fi", "Bu")), 30, 0, 0, 0, H = 25, Hx = 1.3)
## english abbreviated
BDATRINDE2HX(getSpeciesCode(c("NS", "BE")), 30, 0, 0, 0, H = 25, Hx = 1.3)
``````

rBDAT documentation built on May 29, 2024, 3:08 a.m.