const for kilometers per degree on the earth, 111.19

kmPerDeg

Type: number

Convert degrees into kilometers along the earth surface

degtokm(deg: any): any
Parameters
deg (any) degrees to convert
Returns
any: kilometers

Convert kilometers into degrees along the earth surface

kmtodeg(km: any): any
Parameters
km (any) kilometers to convert
Returns
any: degrees

DistAzOutput

dist/distaz.mjs
new DistAzOutput(delta: any, az: any, baz: any)
Parameters
delta (any)
az (any)
baz (any)
Instance Members
distance
distanceKm
distanceDeg
azimuth
backazimuth

Returns a simple object (DistAzOutput) 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: any, lon1: any, lat2: any, lon2: any): any
Parameters
lat1 (any) Latitude of first point (station) (+N, -S) in degrees
lon1 (any) Longitude of first point(station) (+E, -W) in degrees
lat2 (any) Latitude of second point (event)
lon2 (any) Longitude of second point (event)
Returns
any: delta, az, baz in a DistAzOutput