const for degrees to radians, pi/180

DtoR

RotatedSeismograms

src/vector.js

Result of rotation for 2 seismograms.

new RotatedSeismograms(radial: Seismogram, azimuthRadial: number, transverse: Seismogram, azimuthTransverse: number, rotation: number)
Parameters
radial (Seismogram)
azimuthRadial (number)
transverse (Seismogram)
azimuthTransverse (number)
rotation (number)
Instance Members
radial
transverse
azimuthRadial
azimuthTransverse
rotation

Rotates the given seismograms from their given azimuths so the output radial is along the new azimuth and the output transverse is perpendicular to it.

rotate(seisA: Seismogram, azimuthA: number, seisB: Seismogram, azimuthB: number, azimuth: number): RotatedSeismograms
Parameters
seisA (Seismogram) first seismogram
azimuthA (number) azimuth of first seismogram
seisB (Seismogram) second seismogram
azimuthB (number) azimuth of second seismogram
azimuth (number) output radial azimuth to rotate to
Returns
RotatedSeismograms: radial and transverse seismograms

vectorMagnitude

src/vector.js

creates a new Seismogram where the value at each sample is the vector magnitude of the 3 corresponding data points from each seismogram. Each of the 3 seismograms are assumed to be mutually perpendicular so that each set of samples gives a vector in 3-dimensional space. In particular all three seismograms must have the same number of samples and sample rate. It is assumed, but not checked, that they will be the three components of motion at a station (ie matching network, station and location codes) and have the same start time.

vectorMagnitude(seisA: Seismogram, seisB: Seismogram, seisC: Seismogram): any
Parameters
seisA (Seismogram) first seismogram
seisB (Seismogram) second seismogram
seisC (Seismogram) third seismogram
Returns
any: Seismogram of vector magnitudes