EQLocate v3
Locate local earthquakes from SAC waveforms: pick the phases, fit the Wadati line, and solve the hypocentre with geometric, least-squares and Bayesian methods. Everything runs in your browser.
- Records
- none loaded
- Stations
- —
- Picks
- —
- Best solution
- —
- Data — drop the SAC files (or a folder); add a station table if STLA/STLO are missing.
- Picking — check or set P and S on each station; untick stations you do not trust.
- Wadati → Joint LS — fit Vp/Vs, then solve the hypocentre; compare with three circles.
- Case study — run everything at once and download figures, tables and the session.
Files are read locally and never uploaded. Leaflet, fonts and an offline world map are bundled; online satellite imagery (Google, Esri) is optional.
Session and picks (JSON, CSV), pick reports, SAC copies with event headers, 16 figures as SVG and 300-dpi PNG, solution tables (CSV, Markdown) and a ZIP.
Sample data: samples/synthetic_event — a synthetic 7-station event (true hypocentre 36.105°N 129.312°E, 8 km). Homogeneous half-space model.
Event file format
Time zone: 0 = UTC; 9 = KST.
Columns (header row required for named columns; case-insensitive): time or origin_time (UTC, ISO), or year/month/day/hour/minute/second; lat, lon, depth (km; depth_m for metres), mag. Hypocentre, depth, magnitude and origin time are checked against the SAC headers; the value actually used and its source are shown and logged. SAC files are never changed.
How picking works
All components of the selected station are shown with a common, synchronized time axis; a click on any trace sets the station's P or S pick (P is usually clearest on Z, S on N/E). Wheel zoom, drag pan, double-click reset.
Zero-phase Butterworth filters (applied forward and backward) affect display and picking only.
Keyboard: P / S phase, [ / ] previous / next station, 0 reset the view.
| Use | Station | P (UTC) | S (UTC) | S−P (s) | Src |
|---|
Outlier screen
Stations are flagged when their leave-one-out Δt residual exceeds 3 robust standard deviations (this catches high-leverage stations that pull the line towards themselves). Untick “Use” to exclude them.
How Vp is estimated
Estimated automatically from the stations selected in section 7: joint inversion with Vp free and no velocity prior, Vp/Vs from the Wadati fit (refitted without stations with a clock term), station clock test and depth scan; σVp from 200 Monte Carlo trials with the Wadati line refitted. Checked against the slope of the P travel-time curve (clock-corrected TP against hypocentral distance).
If the estimate is unreliable (unresolved depth, |r(h,Vp)| > 0.9, implausible value), the regional Vp is used. The estimate replaces Vp and σVp below and is used by the three-circle, sphere and Vp-fixed solutions; the regional Vp is the centre of the weak and Bayesian priors.
About σ
σP and σS are the 1-σ pick uncertainties; they weight the joint inversion and drive the Monte Carlo trials. σVp is applied when Vp is an input (three-circle method with a prescribed Vp); with the automatic estimate it is the Monte Carlo uncertainty of the estimate.
| Station | S−P (s) | Dhyp (km) | Depi (km) | hi (km) |
|---|
The construction
Circles of radius Dhyp = Δt·Vp/(Vp/Vs − 1); the epicentre is the radical centre (least-squares intersection of all pairwise radical axes), which is independent of the assumed depth. Vp must be supplied (input value or joint-LS estimate): S−P times from three stations cannot resolve it.
For three stations the three chord lines always meet at one point, so the inconsistency is zero and all hi are equal; with more stations the RMS distance to the radical axes measures the misfit. Dashed axes belong to circle pairs that do not intersect. The sphere solution fits |p − ci| = Dhyp,i with the depth as an explicit unknown (and station elevations if ticked).
Station selection
Only the ticked stations enter the joint inversion, its Monte Carlo, the Bayesian sampling, the velocity sensitivity and the joint inversions of the case study (section 9). Stations not ticked “Use” in section 3, or without picks, are greyed out. P/S shows which picks a station has.
Method details
Uses the stations selected above, including stations with only a P or only an S pick (≥ 4 stations with Vp estimated). The depth is found by scanning the misfit from the surface to 40 km and then refining freely; the scan is plotted next to the map.
Station clocks: each station with P and S is tested for a common offset of both arrivals (a clock or timing error, F test at the 1% family-wise level); a significant offset is estimated as a station term, so that the station contributes only its S−P time, and Vp/Vs is refitted by the Wadati regression without it.
Weak priors: Vp ~ N(input Vp, 0.5²) and Vp/Vs ~ N(Wadati, 0.1²) when estimated (the priors of the Bayesian option), which stabilize the depth–Vp trade-off of sparse networks. Depth resolution compares the nearest station distance with the depth, reports the depth-scan interval and checks the depth against an S−P-only (clock-free) sphere fit.
| Station | P res (s) | S res (s) | Depi (km) | Flags |
|---|
About the uncertainties
Asymptotic σ = √diag(σ̂²(JᵀWJ)⁻¹), σ̂² = χ²/(n − p) for n arrivals and p unknowns. With Vp/Vs fixed this ignores the uncertainty of Vp/Vs; the Monte Carlo interval (Wadati refitted in each trial) is the more reliable estimate.
Bayesian sampling (optional): adaptive Metropolis, two chains started at the least-squares solution; Vp and Vp/Vs are sampled with weakly informative priors (Vp ~ N(regional Vp, 0.5²), Vp/Vs ~ N(Wadati, 0.1²), depth uniform from the surface to 50 km). Converged when R̂ < 1.05. The posterior depth histogram is overlaid on the depth scan, and the case study adds the posterior median, the posterior figure and the posterior panel of the GMT maps. Unticked, the joint inversion and the case study run without it.
| Vp | Vp/Vs | Epicentre | Shift (km) | h (km) | RMS (ms) |
|---|
Running the maps
Unzip and run bash make_maps.sh (GMT ≥ 6.1). Other backgrounds without editing: BG=relief, BG=image IMG=scene.tif, BG=plain; resolution with DPI=1200.
GMT's global satellite imagery is about 1 km per pixel; for metre-scale imagery export a WGS84 GeoTIFF (e.g. Sentinel-2 true colour from the Copernicus Browser) and use the GeoTIFF option. The package is also inside “Download all”.