Applies a time domain taper of the given type.

taper(seis: Seismogram, width: number, taperType: string): Seismogram
Parameters
seis (Seismogram) Seismogram to taper
width (number = 0.05) width as a fraction of seismogram length, default is 0.05
taperType (string = HANNING) taper type, default is HANNING, others are HAMMING and COSINE
Returns
Seismogram: copy of seismogram with taper applied.

getCoefficients

src/taper.js

Calculates the coefficients for tapering, [omega, f0, f1]

getCoefficients(type: string, length: number): Array<number>
Parameters
type (string) HANNING, HAMMING or COSINE
length (number) number of data points
Returns
Array<number>: tapering coefficients as an array of length 3
HANNING

Type: string

HAMMING

Type: string

COSINE

Type: string