Program: MKLSBAZV
mkbaz.................calculate Back azimuth from coordinates (vectorized)
call: [baz,dist]=mklsbazv(elon,elat,slon,slat);
elon: list or matrix ofepicenter longitude
elat: list or matrix of epicenter latitudes
slon: single station longitude
slat: single station latitude
all coordinates in degrees, positive to the north and east, respectively.
result: baz: (numeric array) [deg]
back azimuth
NaN in cases in which the BAZ is undefined
dist: (numeric array) [deg]
epicentral distance
after formula 4.4.3 in Lay/Wallace's book "Modern Global Seismology"
but completed and improved by MK
Martin Knapmeyer, 10.09.1996, 15.08.2002, 21.08.2002, 02.06.2003, 03.06.2003
Read M-File Source Code
eof.