Applies a time domain taper of the given type.

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

getCoefficients

dist/taper.mjs

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

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

Type: string

HAMMING

Type: string

COSINE

Type: string