powered by
Distance weighting for non-linear earthquake location.
DistWeight(dist, err, distwt) DistWeightLL(lat, lon, elat, elon, err, distwt) DistWeightXY(x, y, ex, ey, err, distwt)
distance in km
sigma error in seconds
distance weighting parameter
Latitude
Longitude
Event Latitude
Event Longitude
station X(km)
station Y(km)
event X (km)
event Y (km)
vector of weights
Based on Lquake scheme from University of Washington. If you need to reduce the effect of distance weighting, increase distwt.
Since the hypocenter moves between each iteration, the distance weighting is updated.
# NOT RUN { DistWeight(1:10, .4, 20) # }
Run the code above in your browser using DataLab