ground.location: ground.location

Description Usage Arguments Value Examples

View source: R/ground.location.R

Description

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.

Usage

1
2
3
4
5
6
7
8
ground.location(
  y,
  smooth = TRUE,
  rescale = TRUE,
  thres = 0.2,
  width = 3,
  top = TRUE
)

Arguments

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.

Value

return the index of possible ground position of waveform.

Examples

1
2
3
4
data(return)
x<-return[125,]
#default
ground.location(x)

tankwin08/waveformlidar documentation built on Sept. 26, 2020, 10:05 p.m.