terrain_under_voxelforest: Add terrain under a voxelforest

View source: R/terrain_under_voxelforest_function.R

terrain_under_voxelforestR Documentation

Add terrain under a voxelforest

Description

Function that shifts a voxelforest vertically to add underlying terrain elevation.

Usage

terrain_under_voxelforest(vxf.dt, terrain.dt)

Arguments

vxf.dt

Input data.table which contains a voxel forest created with make.voxelforest function and the specific settings "keep=c("TreeID", "X", "Y")", i.e. each voxel has to contain the unique tree ID and the stem position

terrain.dt

Input data.table which contains X-, Y- and Z-column representing a digital terrain model at 1-m resolution (e.g., can be obtained from a 1-m DTM raster with data.table(ras2xyzdf(dtm.ras)))

Value

Data.table containing a voxel forest with terrain

Author(s)

Nikolai Knapp


niknap/slidaRtools documentation built on Oct. 16, 2024, 3:53 p.m.