transfer(seis: Seismogram, response: Response, lowCut: number, lowPass: number, highPass: number, highCut: number)
Parameters
seis (Seismogram)
response (Response)
lowCut (number)
lowPass (number)
highPass (number)
highCut (number)

transferSacPZ

src/transfer.js
transferSacPZ(seis: Seismogram, sacPoleZero: SacPoleZero, lowCut: number, lowPass: number, highPass: number, highCut: number)
Parameters
seis (Seismogram)
sacPoleZero (SacPoleZero)
lowCut (number)
lowPass (number)
highPass (number)
highCut (number)

transferSacPZSegment

src/transfer.js
transferSacPZSegment(seis: SeismogramSegment, sacPoleZero: SacPoleZero, lowCut: number, lowPass: number, highPass: number, highCut: number)
Parameters
seis (SeismogramSegment)
sacPoleZero (SacPoleZero)
lowCut (number)
lowPass (number)
highPass (number)
highCut (number)

calcResponse

src/transfer.js
calcResponse(response: Response, numPoints: number, sampleRate: number, unit: (string | Qty)): FFTResult
Parameters
response (Response)
numPoints (number)
sampleRate (number)
unit ((string | Qty) = "m")
Returns
FFTResult

calcResponseFromSacPoleZero

src/transfer.js
calcResponseFromSacPoleZero(sacPoleZero: SacPoleZero, numPoints: number, sampleRate: number): FFTResult
Parameters
sacPoleZero (SacPoleZero)
numPoints (number)
sampleRate (number)
Returns
FFTResult
combine(freqValues: Float32Array, sampFreq: number, sacPoleZero: SacPoleZero, lowCut: number, lowPass: number, highPass: number, highCut: number)
Parameters
freqValues (Float32Array)
sampFreq (number)
sacPoleZero (SacPoleZero)
lowCut (number)
lowPass (number)
highPass (number)
highCut (number)

evalPoleZeroInverse

src/transfer.js

Evaluates the poles and zeros at the given value. The return value is 1/(pz(s) to avoid divide by zero issues. If there is a divide by zero situation, then the response is set to be 0+0i.

evalPoleZeroInverse(sacPoleZero: SacPoleZero, freq: number): any
Parameters
sacPoleZero (SacPoleZero) SAC PoleZero response
freq (number) frequency to evaluate
Returns
any: complex frequency domain value for this frequency

calcFreqTaper

src/transfer.js
calcFreqTaper(freq: number, lowCut: number, lowPass: number, highPass: number, highCut: number): number
Parameters
freq (number)
lowCut (number)
lowPass (number)
highPass (number)
highCut (number)
Returns
number

applyFreqTaper

src/transfer.js
applyFreqTaper(fftResult: FFTResult, sampleRate: number, lowCut: number, lowPass: number, highPass: number, highCut: number): FFTResult
Parameters
fftResult (FFTResult)
sampleRate (number)
lowCut (number)
lowPass (number)
highPass (number)
highCut (number)
Returns
FFTResult

commonly used units as Qty

UNITS
Static Members
METER_PER_SECOND
METER_PER_SECOND_PER_SECOND

convertToSacPoleZero

src/transfer.js

Converts a StationXML response to SAC PoleZero style. This converts the analog to digital stage (usually 0) along with the overall gain, but does not include later FIR stages. To maintain compatibility with SAC, this includes extra zeros if needed to convert to displacement. The number of extra zeros added is kept as gamma in the result.

convertToSacPoleZero(response: Response): any
Parameters
response (Response) stationxml Response to convert
Returns
any: SAC PoleZero style version of the response
calc_A0(poles: Array<Complex>, zeros: Array<Complex>, ref_freq: number)
Parameters
poles (Array<Complex>)
zeros (Array<Complex>)
ref_freq (number)