1.0.2
Generally either
import * as distaz from 'seisplotjs-distaz'
distaz.xxxx
or
import * as seisplotjs from 'seisplotjs'
seisplotjs.distaz.xxxx
Core functions distance and azimuth calculation.
lat1 => Latitude of first point (+N, -S) in degrees lon1 => Longitude of first point (+E, -W) in degrees lat2 => Latitude of second point lon2 => Longitude of second point
Returns a simple object with:
delta => Great Circle Arc distance in degrees
az => Azimuth of pt. 1 wrt pt. 2 in degrees
baz => Azimuth of pt. 2 wrt pt. 1 in degrees
azimuth is if you stand at point 2 and measure angle between north and point 1. I.E. point 1 is the station and point 2 is the event.
DistAzOutput
(number)
number
(number)
number
Core classes returned from the above functions.
Type: number
Stuff I forgot to put in the TOC.