Description Usage Arguments Value Examples
View source: R/ground.location.R
The function allows you to identify the possible ground location (time index) in the waveform. Generally, we assume the last echo or peak corresponding to the ground.
1 2 3 4 5 6 7 8 |
y |
is the waveform intensities. If you have other information, you should delete these intensites before you run this function . |
smooth |
is tell whether you want to smooth the waveform to reduce the effect of some obvious noise. Default is TRUE. |
rescale |
is to determine whether you want to rescale the waveform intensity or not. Here we used the minimum intensity of each waveform to conduct rescaling. Default is using rescaling. |
thres |
is to determine if the detected peak is the real peak. The real peak's intensity should be higher than threshold*maximum intensity. Default is 0.22. |
width |
the width of moving window for smoothing.Default is 3, must be integer between 1 and n.This parameter ONLY work when the smooth is TRUE. |
top |
is to tell whether we calculate the ground time location from the top (where waveform starts or canopy) or from the bottom (where the waveform ends). Default is from the top. |
return the index of possible ground position of waveform.
1 2 3 4 | data(return)
x<-return[125,]
#default
ground.location(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.