hlevel {dyntaper}R Documentation

Height level for given diameter or area.

Description

Find the height level at which the tree reaches a given diameter (if area == FALSE, default) or a given cross-sectional area (if area == TRUE). That is, the inverse of taper(), except that a vector argument is not allowed.

Usage

hlevel(ds, H, D, b, bh, area = FALSE)

Arguments

ds

The given diameter or area.

H

Tree total height.

D

Tree diameter at breast height.

b

Vector with the 5 parameters.

bh

Breast height. Typically 1.2, 1.3 or 1.4 m, or 4.5 ft.

area

If TRUE, 'ds' is a cross-sectional area, otherwise a diameter. Default is FALSE.

Value

Height level corresponding to 'ds' if any, otherwise NA.

Examples

   b <- c(2.569, 0, 1.042, 0.3012, -1)  # parameters
   Dib <- 0.956 * 24  # convert dbh outside bark to inside bark 
   hlevel(15, 32, Dib, b, 1.3)  # height where the diameter is 15
   hlevel(24, 32, Dib, b, 1.3)  # breast height
   hlevel(35, 32, Dib, b, 1.3)  # height where the diameter is 35


[Package dyntaper version 1.1 Index]