Usage

Generally either

import * as distaz from 'seisplotjs-distaz'
distaz.xxxx

or

import * as seisplotjs from 'seisplotjs'
seisplotjs.distaz.xxxx

Core Functionality

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.

distaz(lat1: number, lon1: number, lat2: number, lon2: number): DistAzOutput
Parameters
lat1 (number)
lon1 (number)
lat2 (number)
lon2 (number)
Returns
DistAzOutput
degtokm(deg: number): number
Parameters
deg (number)
Returns
number
kmtodeg(km: number): number
Parameters
km (number)
Returns
number

Core Classes and Constants

Core classes returned from the above functions.

kmPerDeg

Type: number

Other

Stuff I forgot to put in the TOC.