getSegVol: get volume of tree segment

Description Usage Arguments Details Value Examples

View source: R/getSegVol.R

Description

This function calculates the volume of a tree segment given species, diameter, height, beginning and end height of the segment. One can choose if bark should be included or excluded via the boolean parameter bark, which will include bark if it is set to TRUE.

Usage

1
2
getSegVol(sp, d, h, A, B, H1 = 1.3, D2 = 0, H2 = 0, SekLng = 0.1,
  VolABmR = 0, VolABoR = 0, bark = TRUE)

Arguments

sp

species code from BDAT

d

diameter in breast height (dbh) from tree

h

height of tree

A

lower height A of segment AB for which volume is required

B

upper height B of segment AB for which volume is required

H1

height where d was measured; default is 1.3[m] for dbh

D2

diameter at second height H2; if D2 = 0 (default) taper form from the first german NFI ('Bundeswaldinventur I') are used

H2

measuring height of D2, default is 0

bark

boolean, if TRUE volume including bark is calculated (default)

SegLen

segment length for calculating the volume

Details

Strictly speaking getSegVol is a wrapper function. It loads the fortran subroutine BDATVOLABMR or BDATDVOLABOR (depending on whether or not bark is set to TRUE or FALSE) within a call of loadBDAT.

Value

volume with or without bark of given segment AB in cubic meter

Examples

1
getSegVol(sp=1, d=30, h=40, bark = T)

frumentum/rBDATPRO documentation built on May 28, 2019, 2:53 p.m.