Skip to content

Python tool for aircraft Doppler audio geolocation using historical ADS-B flight data (Source-available)

[skip ci] Preserve CLI version and current documentation on integration

Cinna Davis9143c623c4ae
diff --cc README.md
index ba2a9c7,7ffc1f2..851beb9
--- a/README.md
+++ b/README.md
@@@ -30,18 -30,13 +30,21 @@@ git clone https://github.com/1337isnot1
cd DOPPLERGEIST
python -m venv .venv
.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.
+### Analyze from the command line
+
+```bash
+.venv/bin/dopplergeist analyze path/to/recording.mp3 --jobs jobs
+```
+
+This scans the complete recording and saves an inspectable job. To permit historical search, add `--start-utc` and `--end-utc` for a defensible recording-start window, `--time-source` describing its evidence, and `--online` for public data acquisition. Missing clock evidence returns `needs_input`. Initial acquisition can take hours and tens of gigabytes; [the workflow guide](docs/PRODUCT.md) covers caching, runtime limits and resuming stopped jobs.
+
### Discover events in a recording
Automatic discovery scans an entire recording for moving acoustic frequency patterns **without hand-selecting event windows or frequency bands**. Replace `path/to/recording.mp3` with your real recording; this step needs no flight-data download or data-service credentials:
diff --cc src/dopplergeist/cli.py
index 956e9b9,e8b956a..5ab9b42
--- a/src/dopplergeist/cli.py
+++ b/src/dopplergeist/cli.py
@@@ -1,6 -1,6 +1,7 @@@
import argparse
import json
+import math
+ from importlib.metadata import PackageNotFoundError, version
from pathlib import Path
@@@ -14,15 -14,13 +15,20 @@@ def operator_config(path, online)
return config
+def positive_runtime(value):
+ number = float(value)
+ if not math.isfinite(number) or number <= 0:
+ raise argparse.ArgumentTypeError("Runtime must be positive and finite")
+ return number
+
+
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")