[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107965":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":13,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},107965,"dopplertrack","mjshiggins\u002Fdopplertrack","mjshiggins","Acoustic geolocation from the Doppler curves of propeller aircraft.",null,"Python",291,34,1,3,0,18,172,9,65.63,"MIT License",false,"main",true,[],"2026-11-05 02:47:28","2026-11-23 18:41:48","# dopplertrack\n\n![An hour of outdoor recording: three propeller aircraft, none audible, each matched by the Doppler curve its real ADS-B track predicts at the true location](docs\u002Fresults\u002Fheader.png)\n\nAcoustic geolocation from the Doppler curves of propeller aircraft.\n\nAny outdoor (and many indoor) recordings contain faint, usually inaudible\ntones from aircraft flying over: the propeller blade-pass fundamental and its\nharmonics, between roughly 60 and 400 Hz. As the aircraft passes, the tone\nsweeps down in frequency. The exact shape of that sweep depends on where the\nlistener was relative to the aircraft's real trajectory. With historical\nADS-B data for every flight that day, each candidate location on the ground\npredicts a different curve, and the recording picks out the one that matches.\n\nThis is a reimplementation of the technique shown in colsto's video\n[\"I discovered a sound that leaks your exact location\"](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=UytYrhYLOKI).\nNo code was released with that video; this project is an open, automatic\nversion of the method, with the search extended from a hand-drawn box to a\nwhole continent.\n\n## Status\n\nValidated on two recordings with known answers: the video author's one-hour\nreference clip (Oyster Bay, NY, 2026-09-08) and a 12-hour public eagle-cam\nstream (North Fort Myers, FL, 2024-12-28). Both are searched against every\npropeller flight over the continental US that day, with no region given.\n\n| | Oyster Bay | eagle cam |\n|---|---|---|\n| flights that day, CONUS | 35,427 | 13,046 |\n| flight pairs scored | 9,669 | 13,298 |\n| rank of the true pair, two events | **1** | 15 |\n| rank with further detected flyovers (`--extra`) | 1 | **1** |\n| best point from the truth | 32 m | 627 m |\n| margin over the runner-up | 24 % | 13 % |\n| verdict (p) | located (0.001) | located (0.06) |\n| verdict from the two events alone | ambiguous (0.23) | ambiguous (0.48) |\n| wall time, 16 threads, after the index | 18 min | 6 min |\n\nA third recording, 12 hours from a railway camera in Atlanta searched the\nsame way, is a negative: every pair of real flyovers puts the camera within\n440 m and in the top 6–32 of tens of thousands of pairs, and none wins,\nbecause the modelled curve of the true track has a kink the audio lacks and\na smoother track elsewhere fits better. Its archived stream had also lost\n107 s in the middle, which put the extra flyovers on a different clock. The\ndetails and what they add to the roadmap are in the experiments page.\n\nTwo flyovers locate a recording when at least one passed low and to the side;\ntwo high, nearly overhead passes leave a plateau a few kilometres wide and a\ncontinent full of pairs that fit, which is what the extra flyovers are for.\nA margin is not a confidence: a box that does not contain the answer still\nreturns a winner. So every search ends with a verdict: the winner is judged\nagainst the thousands of wrong pairs the same search scored on the same\naudio, and p is the chance a wrong winner would lead the next wrong pair by\nthat much. The audio searched in a box 150 km from the answer gets\n\"no match\" (p = 0.88); of twenty searches of the railcam audio with no right\nanswer among the pairs, two were called located, so p \u003C 0.1 is a weak claim. The experiments behind these numbers, the regional\nsearches that came first, and the failures along the way are in\n[docs\u002Fexperiments.md](docs\u002Fexperiments.md).\n\n## Usage\n\n```bash\nuv sync\nuv run dopplertrack spectrogram recording.mp4 rec.npz\nuv run dopplertrack detect rec.npz --band 60 300 --top 10 --out detected.json\nuv run dopplertrack fit rec.npz --window 2090 2200 --band 95 200 --harmonics 2 --out ev1.json\nuv run dopplertrack fit rec.npz --window 3020 3130 --band 95 195 --out ev2.json\nuv run dopplertrack fetch 2026-09-08 day.npz --bbox 24 50 -125 -66          # one index per day, reused by every search\nuv run dopplertrack search rec.npz --events ev1.json ev2.json --day day.npz --harmonics 2 1 \\\n    --cands cands.npz --extra ev3.json ev4.json --out results.csv\nuv run dopplertrack refine rec.npz results.csv --events ev1.json ev2.json --day day.npz \\\n    --harmonics 2 1 --extra ev3.json ev4.json --out fine.csv\n```\n\n- `spectrogram` decodes any audio or video with ffmpeg and whitens a\n  high-resolution STFT of the 40–450 Hz band per frequency bin, so only\n  changing tones stand out.\n- `detect` finds the flyovers: an ideal straight-pass Doppler curve (f0,\n  speed, CPA distance, CPA time) is grid-searched in a sliding window and the\n  local maxima are refined and ranked. `fit` does the same in one window you\n  choose. Either writes event JSON that `search` takes as it is.\n- `fetch` streams one day of [adsb.lol](https:\u002F\u002Fgithub.com\u002Fadsblol\u002Fglobe_history_2026)\n  history from GitHub (4 GB, nothing stored), drops known jets, and writes the\n  day index a search runs on: every flight resampled to 1 Hz in one\n  Earth-centred frame, plus a sample per flight per 10 s. `--bbox` limits it\n  to a region, `--archive DIR` reads an archive already on disk.\n- `search` ranks (location, flight pair) candidates over the index, see\n  below. `--bbox` restricts it to a region, `--point LAT LON` scores one\n  known location (the quickest check on a recording whose answer you know),\n  and one event with `--utc TIME` searches a single flyover whose time is\n  known. `--cands` caches the candidate table, so a change to the scorer\n  reruns only the scoring. `--extra` rescores the best pairs with further\n  flyovers.\n- `refine` lays a 50 m grid around one result, optionally with more events.\n\n## How the search works\n\n1. **Join.** Two events heard Δt apart at fitted slant distances d1 and d2\n   mean the two aircraft were within d1 + d2 of each other, Δt apart in\n   emission time (give or take the propagation delays). That is a join over\n   the day's 10 s samples with KD-trees, speed-gated, and it leaves a few\n   tens of thousands of flight pairs out of hundreds of millions.\n2. **Lens.** For each pair, ground points are laid only where both flights\n   could have been heard: a 1 km lattice first, then 200 m where it passes.\n   Every point gets the exact closest point of approach to each real\n   trajectory: slant distance (with a DEM for the observer's elevation),\n   speed, and the *heard* CPA time. Points must hear an event-1-like pass,\n   then exactly Δt later an event-2-like pass, with no other propeller\n   flight within 6 km in between.\n3. **Score.** The Doppler curve each survivor would hear is modelled from the\n   real trajectory (emission-time radial velocity) and scored against the\n   spectrogram. Event 1's placement is swept over small time shifts and f0\n   scales, which absorb measurement error; event 2 is placed with the same\n   shift, locked to the flight geometry. Score = brightness under both curves.\n4. **More events.** For the best pairs, each further flyover is matched to a\n   flight at the pair's best point and scored at all of its points with that\n   point's shift, so every event is on one clock. `refine` does the same on\n   a fine grid.\n5. **Verdict.** At most one scored pair is right; the rest are the null\n   distribution for this recording. The upper tail of their scores is fitted\n   as exponential, and the gap between the winner and the best other pair is\n   tested against it: located (p \u003C 0.1), ambiguous (p \u003C 0.5), or no match.\n\nThe ideal-curve fits only seed the gates (`--v-tol`, `--d-tol`; open them\nfor a faint or turning pass); ranking uses real trajectories throughout.\n`--score ridge` scores how closely a curve follows the ridge traced in the\nwindow instead of the brightness under it.\n\n## Differences from the method in the video\n\nThe physics and the search strategy are the author's. What differs:\n\n- **Automatic curve measurement.** The video slides f0, speed, distance and\n  CPA time by hand until the overlay looks right. `fit` and `detect` do it\n  with a grid search plus Nelder-Mead on the whitened window.\n- **Pairs of flights, not points along one flight.** The video lays points\n  along every flight matching event 1 at the fitted distance and tests them\n  for event 2, which needs tight hand-fitted ranges. Joining flight pairs on\n  the geometry of both events first stays cheap under the wide gates an\n  automatic fit needs; with tight gates it reduces to the video's method.\n- **Harmonic-aware fitting and scoring**, where a flyover shows a second\n  harmonic.\n- **Open data path.** adsb.lol daily archives, ICAO Doc 8643 engine classes\n  and AWS terrain tiles, each with a loader; nothing scraped or paid.\n- **One command for every search.** A box, a known point, or one flyover\n  with a known time are options on the same search, not separate methods.\n\nKept on purpose: emission-time radial velocity, propagation-delayed CPA\ntimes, slant distance with a DEM, the inter-event offset filter, the silence\nfilter, and locked two-event scoring.\n\n## Data sources (all free)\n\n| Need | Source |\n|---|---|\n| Historical ADS-B | adsb.lol `globe_history_YYYY` GitHub releases (~4 GB\u002Fday) |\n| Aircraft engine class | OpenSky mirror of ICAO Doc 8643 |\n| Elevation | AWS Terrain Tiles (Terrarium) |\n\n## Development\n\n```bash\nuv run pytest\n```\n\nThe suite runs on synthetic flights in about three minutes. The Oyster Bay\ncheck against the real recording is opt-in: set `DOPPLERTRACK_OYSTER_BAY`\nto a directory holding `rec.npz` and `traces_ny.npz` (see\n`tests\u002Ftest_oyster_bay.py`). The original design notes are in\n`docs\u002Fsuperpowers\u002Fspecs\u002F`; [CHANGELOG.md](CHANGELOG.md) lists the changes\nper release.\n\n## Releasing\n\nPushing a tag `vX.Y.Z` that matches the version in `pyproject.toml` runs\n`.github\u002Fworkflows\u002Frelease.yml`: tests, sdist and wheel, a GitHub Release\nwith generated notes, and PyPI through trusted publishing.\n\n```bash\nuv version 0.3.0            # bump pyproject.toml\ngit commit -am \"Release 0.3.0\"\ngit tag v0.3.0 && git push && git push --tags\n```\n","dopplertrack 是一个基于多普勒频移曲线实现螺旋桨飞机声学地理定位的开源工具。它通过分析录音中60–400 Hz范围内不可听的螺旋桨基频及其谐波的频率扫掠特征，结合历史ADS-B飞行轨迹数据，在大范围地理空间（如整个美国本土）内自动匹配最符合音频观测的飞机-接收点相对位置关系；核心采用信号建模、时频匹配与大规模轨迹穷举评分机制，支持多飞越事件联合定位与统计显著性判据。适用于无GPS环境下的被动声学定位、隐私泄露风险评估、航空监测验证及声学取证等场景。",2,"2026-11-24 04:33:06","CREATED_QUERY"]