View source: R/terrain_under_voxelforest_function.R
terrain_under_voxelforest | R Documentation |
Function that shifts a voxelforest vertically to add underlying terrain elevation.
terrain_under_voxelforest(vxf.dt, terrain.dt)
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))) |
Data.table containing a voxel forest with terrain
Nikolai Knapp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.