dlocation: Estimate height of diameters along the stem

View source: R/dlocation.R

dlocationR Documentation

Estimate height of diameters along the stem

Description

Estimates heights of given diameters along the stem using optimization of the taper function.

Usage

dlocation(dbh, h_top, d, sp = "spruce", with_bark = TRUE)

Arguments

dbh

diameter at breast height (1.3 m above ground) over bark (cm).

h_top

height above ground of diameter measurements (m).

d

diameters (cm).

sp

species.

with_bark

diameter with (TRUE, default) or without bark (FALSE).

Value

Height of given diameter (m).

Examples


dlocation(dbh=35,h_top=35,d=c(25,40,12,2,70),sp="birch")
dlocation(dbh=35,h_top=35,d=c(25,40,12,2,70),sp="birch",with_bark=FALSE)

D<-35
H<-34
T<-"G"

#Case 1:
dia<-21
h_vol<-dlocation(d=dia,dbh=D,h_top=H,sp=T)
volume(D,H,sp=T,h_vol_lower = h_vol)

#Case2:
dia<- c(21,16)
A<-1.2
h_vol<- dlocation(d=dia,dbh=D,h_top=H,sp=T)
if (diff(h_vol)>A) volume(D,H,sp=T,h_vol_lower = h_vol[1],h_vol_upper=h_vol[2])


JohannesRahlf/taperNO documentation built on Feb. 17, 2025, 8:02 p.m.