View source: R/periodic_boundaries_for_circular_plot_function.R
periodic_boundaries_for_circular_plot | R Documentation |
Function that creates periodic boundaries for voxelforests along circular plot borders (e.g. large lidar footprints or circular inventory plots). Tree crown voxels that exceed the boundaries of the circle re-appear on the opposite side of the circle. The placement of trees is based on the polar coordinates of the stem positions (distance and angle to the circle center). All trees with stems inside the circle are copied to exist a second time outside of the circle at the position opposite of the circle center and with the same distance to the boundary, but outwards.
periodic_boundaries_for_circular_plot(vxf.dt, Xctr, Yctr, radius, clip = T)
vxf.dt |
Data.table containing voxelforest object created with make.voxelforest; columns of the stem positions Xstem and Ystem are crucial |
Xctr |
X-coordinate of the plot center |
Yctr |
Y-coordinate of the plot center |
radius |
of the circular plot |
clip |
Boolean to specify whether output should be clipped to the circle (default) or all |
data.table containing the voxelforest with periodic boundaries
Nikolai Knapp
in progress
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.