clear | R Documentation |
Clear a set of voxels. Clearing means that the state variables of the selected voxels are altered as if they were clear of any vegetation. Namely:
number of echo set to zero
intercepted beam surface set to zero (if variable is outputted)
plant area density set to zero (if variable is outputted)
transmittance set to one (if variable is outputted)
any attenuation variable set to zero
Other state variables such as sampling intensity, mean angle, entering beam surface, etc. are unaltered. A cleared voxel is not the same as an unsampled voxel (not "crossed" by any beam).
clear(vxsp, vx)
## S4 method for signature 'VoxelSpace,data.table'
clear(vxsp, vx)
## S4 method for signature 'VoxelSpace,vector'
clear(vxsp, vx)
## S4 method for signature 'VoxelSpace,matrix'
clear(vxsp, vx)
vxsp |
a |
vx |
(i, j, k) voxel coordinates as a |
# load a voxel file
vxsp <- readVoxelSpace(system.file("extdata", "tls_sample.vox", package = "AMAPVox"))
# clear 1st voxel
clear(vxsp, c(0, 0, 0)) # clear 1st voxel
# clear butterflies
clear(vxsp, butterfly(vxsp))
# clear voxels with less than two hits
clear(vxsp, vxsp@data[nbEchos < 2])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.