# `doppler-geo v2` — Chirp-Slope Gate & Joint 2D Westminster Acoustic OSINT

Companion code, benchmark results, independent recomputation, and LaTeX preprint for [`/doppler-geo-v2-bells-and-aircraft/`](https://zidingz.com/doppler-geo-v2-bells-and-aircraft/).

## Layout

- `code/dg.py` — Snapshot of `dg.py` containing `chirp_contrast_features()` and `detect_v2()` (adaptive short-clip hum guard when `nT <= 600`, two-sided tail balance, tight local NMS suppression `6 s / 0.08 log-Hz` on rejected peaks so bell strikes do not blind adjacent aircraft tracks, and full chirp-slope acceptance gates).
- `code/eval_dg_v2.py` — Runs the 8-recording Big Ben negative false-positive suite, the 24-trial mixed Heathrow 27L/27R flyover + real bell benchmark (`-6, 0, +6, +12 dB`), and the 40-site 2D Westminster localization simulation (`25 m` grid, including the `+18 s` shifted-flight control).
- `code/make_svgs.py` — Generates `fig1-v1-vs-v2-bell-rejection.svg` and `fig2-joint-westminster-fusion.svg` from `out/dg_v2_results.json`.
- `out/dg_v2_results.json` — Measured output across all 8 negatives, 24 mixed trials, and 40 localization sites.
- `independent/recompute.py` & `independent/RECOMPUTED.json` — Independent script verifying confusion-matrix precision/recall/F1 from raw trial outcomes and independently re-simulating the 2D Westminster Fisher fusion on a finer `10 m` grid (`60` sites).
- `preprint.tex` & `preprint.pdf` — Technical research note compiled with Tectonic.

## Reproduction

Pass the path to the 8 real Big Ben recordings (`07002139.wav`, `07002142.wav`, `07002154.wav`, `aporee_2016_bridge_st.wav`, `midnight-hq.mp3`, `midnight-lq.mp3`, `square-lq.mp3`, `fs_720696_nye2024.mp3`) as `BIG_BEN_CORPUS_DIR`:

```bash
BIG_BEN_CORPUS_DIR=<path-to-corpus> python3 code/eval_dg_v2.py
python3 independent/recompute.py
python3 code/make_svgs.py
```
