Python tool for aircraft Doppler audio geolocation using historical ADS-B flight data (Source-available)
Python acoustic-geolocationads-baircraft-trackingairplaneaudio-forensicsdoppler-effectdoppler-shiftgeolocationosintsignal-processing
Show missing ridge spans explicitly in discovery plots (#5)
Cinna Davis7d072b58ad64
diff --git a/evidence/audio/w1-sensitivity-20261102/README.md b/evidence/audio/w1-sensitivity-20261102/README.mdindex 1508b1c..08273bc 100644--- a/evidence/audio/w1-sensitivity-20261102/README.md+++ b/evidence/audio/w1-sensitivity-20261102/README.md@@ -34,3 +34,12 @@ The earlier14-case experiment used9b9dffa with exactly the configuration now useby default; new-default complete synthetic output equivalence is independentlyasserted in default-equivalence.json. No repeat of the same expensive nationalsearch was run by this audio worker.++After refreshing main85b1260, audio intake/discovery/matching/subset-consumer checks+pass23 tests in57.27s (`refreshed-consumer-tests.log`). The plotted observed gaps+are now broken visibly rather than connected by a line. `gap-plots/` contains+regenerated displays for the frozen3.0-threshold reference ridge data; original+plots are preserved. The focused render check passes1 test in8.62s, and the16s+missing span is visually verified. This display correction does not alter event+JSON or manufacture samples; the product's separate overlays must respect the+same missing-observation boundary.diff --git a/evidence/audio/w1-sensitivity-20261102/SHA256SUMS.json b/evidence/audio/w1-sensitivity-20261102/SHA256SUMS.jsonindex 790c69b..c53a5c0 100644--- a/evidence/audio/w1-sensitivity-20261102/SHA256SUMS.json+++ b/evidence/audio/w1-sensitivity-20261102/SHA256SUMS.json@@ -1,9 +1,13 @@{- "README.md": "d6077c01416ebe5404cc6c1c50841f843e316c1833b3d03b85ca5fdfef5015ac",+ "README.md": "7b836ac87975c8d086fdeb9bbfbfb21868fded5a2385ae19d1b1f0480136159a","control-regression-predictions.json": "4f01f8727be598c1013552a2d90be9e5152c934072d79acf9086d48b3460df42","control-regression-report.json": "4ec33cec0302f991ddf5e518b552bd964ffdf4e27f6bde320508cab5948d3d0f","default-equivalence.json": "c8dcc2b28249862902d55de06503fc107fab345ce398c3bc3fd649533ce71085","experimental-adapter.py": "c1c553aae1005d4fb2b8def35ba56dc9c936c1189b29728224ee4ef7295cf2f3",+ "gap-plot-test.log": "88e9cff31ca88d84e3edb7edfe5f74e7614f091796efdd3baa8ab9ae874c0f44",+ "gap-plots/event-0003.png": "3a9efa3b70387e19ec3b7b8b90dda264b2e533220378386e09096c78516eff11",+ "gap-plots/event-0004.png": "218158b2d5ad8e360b65380b246067a0ac3fca4ad36ee874fd4757ee5bc5558e",+ "gap-plots/overview.png": "4a5a2506929d150bdbad80aa6b5dce20972ef8eb74d9c5013b2407452efbcd24","posthoc-evaluation.json": "63cb1c86ed885f8f23e79c2ee4eeef06af6330f9f58be807bc85e25f2c8937ad","reference/discovery.json": "89281081ba16310e622a90001373bb1d21ad59eed5667842e98957753feab26c","reference/discovery.png": "4217bda83f51186fa64915fb2feba13b65dfe8cea9c3031cb383c75a946b7dbf",@@ -39,6 +43,7 @@"reference/event-0015.png": "d1afac5c370d6721649bc3c97b8b762e08492d5b39d92abf38e9dd0f1287ee72","reference/event-0016.csv": "96264a03be775696c942fe444d68b2eafd6b8c661b3558593a04ad54a036ec56","reference/event-0016.png": "e689bd4c37fd4f4f5f3695475e18b87b1406b92321635e7cf0548aaa3ec9b46e",+ "refreshed-consumer-tests.log": "51cd4370f8a030723fd1f7db31ec56b497f4af4945e0ba31965988835bce0e43","synthetic/discovery.json": "e0d1afe5c06f54d37739f4be8fd88cdacd83309535adc97583ad850a957e1a3d","synthetic/discovery.png": "e55634557fdb871730e962a4825c40d086274218bbef6aa91fb4887ebb8895d8","synthetic/event-0001.csv": "001e32381638a19bd68ce90f6b43b236850cd1a8e285eedd9a93bf030274d428",diff --git a/evidence/audio/w1-sensitivity-20261102/gap-plot-test.log b/evidence/audio/w1-sensitivity-20261102/gap-plot-test.lognew file mode 100644index 0000000..5863b08--- /dev/null+++ b/evidence/audio/w1-sensitivity-20261102/gap-plot-test.log@@ -0,0 +1,2 @@+. [100%]+1 passed in 8.62sdiff --git a/evidence/audio/w1-sensitivity-20261102/gap-plots/event-0003.png b/evidence/audio/w1-sensitivity-20261102/gap-plots/event-0003.pngnew file mode 100644index 0000000..8bde8a9Binary files /dev/null and b/evidence/audio/w1-sensitivity-20261102/gap-plots/event-0003.png differdiff --git a/evidence/audio/w1-sensitivity-20261102/gap-plots/event-0004.png b/evidence/audio/w1-sensitivity-20261102/gap-plots/event-0004.pngnew file mode 100644index 0000000..e510632Binary files /dev/null and b/evidence/audio/w1-sensitivity-20261102/gap-plots/event-0004.png differdiff --git a/evidence/audio/w1-sensitivity-20261102/gap-plots/overview.png b/evidence/audio/w1-sensitivity-20261102/gap-plots/overview.pngnew file mode 100644index 0000000..09d7bceBinary files /dev/null and b/evidence/audio/w1-sensitivity-20261102/gap-plots/overview.png differdiff --git a/evidence/audio/w1-sensitivity-20261102/refreshed-consumer-tests.log b/evidence/audio/w1-sensitivity-20261102/refreshed-consumer-tests.lognew file mode 100644index 0000000..e74a461--- /dev/null+++ b/evidence/audio/w1-sensitivity-20261102/refreshed-consumer-tests.log@@ -0,0 +1,2 @@+....................... [100%]+23 passed in 57.27sdiff --git a/src/aircraft_geoloc/discovery.py b/src/aircraft_geoloc/discovery.pyindex e85802d..7ca73e8 100644--- a/src/aircraft_geoloc/discovery.py+++ b/src/aircraft_geoloc/discovery.py@@ -310,7 +310,7 @@ def discover_events(recording, *, output_dir=None, settings=None):"harmonic_ridges": [[points.tolist() for points in group] for group in groups],"scope": "automatic acoustic moving-tone proposals; aircraft identity unconfirmed"}(output / "discovery.json").write_text(json.dumps(diagnostics, indent=2, allow_nan=False) + "\n")- _plot_groups(groups, output / "discovery.png", recording.metadata["duration_s"])+ _plot_groups(groups, output / "discovery.png", recording.metadata["duration_s"], settings.max_gap_s)for event, group in zip(events, groups):np.savetxt(output / f"{event['event_id']}.csv", group[0], delimiter=",",header="time_s,frequency_hz,weight", comments="")@@ -318,15 +318,17 @@ def discover_events(recording, *, output_dir=None, settings=None):return events-def _plot_groups(groups, path, duration):+def _plot_groups(groups, path, duration, max_gap_s=2.0):import matplotlibmatplotlib.use("Agg")from matplotlib import pyplot as pltfig, ax = plt.subplots(figsize=(12, 5), layout="constrained")for index, group in enumerate(groups):for harmonic, points in enumerate(group):- ax.plot(points[:, 0], points[:, 1], lw=0.8, alpha=0.8,- label=f"Event {index + 1}" if harmonic == 0 else None)+ segments = np.split(points, np.flatnonzero(np.diff(points[:, 0]) > max_gap_s) + 1)+ for segment_index, segment in enumerate(segments):+ ax.plot(segment[:, 0], segment[:, 1], color=f"C{index % 10}", lw=0.8, alpha=0.8,+ label=f"Event {index + 1}" if harmonic == 0 and segment_index == 0 else None)ax.set(xlim=(0, duration), xlabel="Recording-relative time (s)", ylabel="Measured frequency (Hz)",title="Automatic whole-recording moving-tone proposals (harmonics grouped)")if groups:@@ -348,7 +350,8 @@ def _plot_event(recording, group, event, settings, path):ax.pcolormesh(spec.time, spec.frequency, spec.contrast, shading="auto", cmap="magma", vmin=0, vmax=6,rasterized=True)for points in group:- ax.plot(points[:, 0], points[:, 1], color="cyan", lw=0.9)+ for segment in np.split(points, np.flatnonzero(np.diff(points[:, 0]) > settings.max_gap_s) + 1):+ ax.plot(segment[:, 0], segment[:, 1], color="cyan", lw=0.9)low = min(points[:, 1].min() for points in group)high = max(points[:, 1].max() for points in group)ax.set(xlim=(first, last), ylim=(max(settings.min_frequency_hz, low * 0.9), high * 1.1),