Python tool for aircraft Doppler audio geolocation using historical ADS-B flight data (Source-available)
Python acoustic-geolocationads-baircraft-trackingairplaneaudio-forensicsdoppler-effectdoppler-shiftgeolocationosintsignal-processing
Simplify installed CLI setup [skip ci]
Cinna Davisdffb28c5a04b
diff --git a/README.md b/README.mdindex 9baa931..7ffc1f2 100644--- a/README.md+++ b/README.md@@ -29,9 +29,12 @@ Requires **Python 3.11+**, **FFmpeg** (`ffmpeg` and `ffprobe` on `PATH`) and Gitgit clone https://github.com/1337isnot1337/DOPPLERGEIST.gitcd DOPPLERGEISTpython -m venv .venv-.venv/bin/python -m pip install -e '.[test]'+.venv/bin/python -m pip install .+.venv/bin/dopplergeist --version```+To install the CLI without keeping a checkout, create a virtual environment and run `.venv/bin/python -m pip install "git+https://github.com/1337isnot1337/DOPPLERGEIST.git"`. The installed `dopplergeist` command works outside the repository.+Use a new output directory for each experiment. Automatic CI checks installation, source compilation, CLI help and packaged assets without generated data. The [real-world data policy](AGENTS.md#real-world-data-only) supersedes older blanket pytest instructions. For pinned environments and historical clean-install evidence, see [Setup](docs/SETUP.md). Native Windows execution remains unverified.### Discover events in a recording@@ -54,12 +57,12 @@ Start the browser application:.venv/bin/dopplergeist serve --jobs jobs --online --max-runtime 14400 --port 8765```-Open `http://127.0.0.1:8765` and upload a recording. Supply a defensible UTC window for the **first audio sample** to permit historical flight search. Without that time evidence, the application returns `needs_input / recording_time_required`. It does not estimate a location. The `--online` option can download large aircraft and terrain datasets. See [Local upload workflow](docs/PRODUCT.md) for request fields, runtime limits and CLI alternatives.+Open `http://127.0.0.1:8765` and upload a recording. Supply a defensible UTC window for the **first audio sample** to permit historical flight search. Without that time evidence, the application returns `needs_input / recording_time_required`. It does not estimate a location. The `--online` option can download aircraft and terrain data; archives and indexes can require tens of gigabytes or more and hours, and there is no automatic disk-space limit. See [Local upload workflow](docs/PRODUCT.md) for request fields, runtime limits and CLI alternatives.## How it works1. **Measure the audio.** Decode the recording, identify frequency tracks, and group harmonics that belong to the same flyover.-2. **Collect trajectories.** Retrieve aircraft positions for a justified recording-time window and track available data coverage. The default source is [ADSB.lol's 2026 historical flight archive](https://github.com/adsblol/globe_history_2026); see [acquisition and cache details](docs/DATA_AND_SCALE.md#acquisition).+2. **Collect trajectories.** Retrieve aircraft positions for a justified recording-time window and track available data coverage. The default source is the appropriate yearly ADSB.lol historical flight archive, such as [2026](https://github.com/adsblol/globe_history_2026); see [acquisition and cache details](docs/DATA_AND_SCALE.md#acquisition).3. **Model the sound.** Predict Doppler frequency and arrival time from aircraft trajectories, receiver geometry, and sound propagation.4. **Compare locations.** Search candidate receiver positions, reconcile independent flyovers, and retain competing explanations rather than forcing an answer.diff --git a/docs/SETUP.md b/docs/SETUP.mdindex 3f66498..f231272 100644--- a/docs/SETUP.md+++ b/docs/SETUP.md@@ -6,22 +6,22 @@and 3.14.8 for this checkpoint; CI also exercises the declared Python 3.11 minimum.- `ffmpeg` and `ffprobe` on PATH. The MP3 smoke tests use ffmpeg's `libmp3lame`encoder. Install the normal ffmpeg package for your operating system.-- GitHub CLI (`gh`) authenticated with access to this private repository when+- GitHub CLI (`gh`) with access to this repository whendownloading the checkpoint assets. Local/offline runs do not require GitHub access.Create an isolated environment from the repository root:```bashpython -m venv .venv-.venv/bin/python -m pip install -e '.[test]'-.venv/bin/python -m pytest -q+.venv/bin/python -m pip install .+.venv/bin/dopplergeist --version.venv/bin/dopplergeist --help```-Do not use `--system-site-packages` for a clean-install check. The test extra-declares pytest. Production dependencies are declared in `pyproject.toml`; the-upload service uses the standard library and its static assets are included as-package data when the product component is present.+Do not use `--system-site-packages` for a clean-install check. Production+dependencies are declared in `pyproject.toml`; browser assets are included in the+package. The historical pytest suite generates synthetic inputs and should not be+run under the current real-world-only policy in [AGENTS.md](../AGENTS.md#real-world-data-only).## Pinned Python 3.14 reproduction@@ -33,7 +33,7 @@ snapshot, not a claim that those same package versions support Python 3.11.python3.14 -m venv .venv.venv/bin/python -m pip install -r requirements/py314-linux.lock.venv/bin/python -m pip install --no-deps -e .-.venv/bin/python -m pytest -q+.venv/bin/dopplergeist --help```The original experiment environment is separately recorded in@@ -69,9 +69,9 @@ manual restoration details.## Checks and evidence-CI installs into a clean runner on Python 3.11 and 3.14, runs unit/contract tests-and an actual small MP3 encode/decode check, then verifies CLI startup. It does not-download the large research assets or represent its tests as a national benchmark.+CI installs into clean Python 3.11 and 3.14 runners, compiles the source, checks+CLI startup and verifies packaged browser assets. It does not run the historical+synthetic-generating pytest suite or establish a national benchmark.The clean-install replay receipt and complete short synthetic replay artifactsare in [evidence/packaging-20261102](../evidence/packaging-20261102). The restoreddiff --git a/src/dopplergeist/cli.py b/src/dopplergeist/cli.pyindex 9d7f85e..e8b956a 100644--- a/src/dopplergeist/cli.py+++ b/src/dopplergeist/cli.py@@ -1,5 +1,6 @@import argparseimport json+from importlib.metadata import PackageNotFoundError, versionfrom pathlib import Path@@ -15,6 +16,11 @@ def operator_config(path, online):def main():parser=argparse.ArgumentParser(description="Aircraft acoustic geolocation research pipeline")+ try:+ installed_version=version("dopplergeist")+ except PackageNotFoundError:+ installed_version="development"+ parser.add_argument("--version",action="version",version=f"%(prog)s {installed_version}")sub=parser.add_subparsers(dest="command",required=True)run=sub.add_parser("run",help="Measure events, filter geometry, rank and refine locations")run.add_argument("config")