Python tool for aircraft Doppler audio geolocation using historical ADS-B flight data (Source-available)
Python acoustic-geolocationads-baircraft-trackingairplaneaudio-forensicsdoppler-effectdoppler-shiftgeolocationosintsignal-processing
Adapt support tools and imports to dopplergeist namespace
Cinna Davis6c0e58b0fdb0
diff --git a/scripts/check_motion_support.py b/scripts/check_motion_support.pyindex 97dd5b9..e2bddf9 100644--- a/scripts/check_motion_support.py+++ b/scripts/check_motion_support.py@@ -12,8 +12,8 @@ import subprocessimport pandas as pd-from aircraft_geoloc.data_access import _frame_track-from aircraft_geoloc.geometry import AcousticSupportError+from dopplergeist.data_access import _frame_track+from dopplergeist.geometry import AcousticSupportErrordef main():@@ -50,7 +50,7 @@ def main():rows.append({"source": tag, "track_id": track.id, "native_intervals": len(intervals),"excluded_intervals_s": excluded, "audit_agrees": True})root = Path(__file__).resolve().parents[1]- code = [Path(__file__), root/"src/aircraft_geoloc/geometry.py", root/"src/aircraft_geoloc/data_access.py"]+ code = [Path(__file__), root/"src/dopplergeist/geometry.py", root/"src/dopplergeist/data_access.py"]receipt = {"scope": "source_only_production_guard_comparison", "segments": rows,"code_commit": subprocess.check_output(["git", "rev-parse", "HEAD"], text=True, cwd=root).strip(),"code_sha256": {str(p.relative_to(root)): hashlib.sha256(p.read_bytes()).hexdigest() for p in code},diff --git a/scripts/check_unsupported_tiles.py b/scripts/check_unsupported_tiles.pyindex 04bd5de..fa355d4 100644--- a/scripts/check_unsupported_tiles.py+++ b/scripts/check_unsupported_tiles.py@@ -11,12 +11,12 @@ import timeimport numpy as np-from aircraft_geoloc.audio import Spectrum-from aircraft_geoloc.data_access import FlightIndex, sha256, write_json-from aircraft_geoloc.geometry import AcousticSupportError-from aircraft_geoloc.search import cpa_table, pair_candidates, score_candidate-from aircraft_geoloc.terrain import Terrain-from aircraft_geoloc.tiled_search import SearchBudget, _expanded_bounds, _record_support, _score, _tracks, grid_tiles, merge_candidates, tile_points+from dopplergeist.audio import Spectrum+from dopplergeist.data_access import FlightIndex, sha256, write_json+from dopplergeist.geometry import AcousticSupportError+from dopplergeist.search import cpa_table, pair_candidates, score_candidate+from dopplergeist.terrain import Terrain+from dopplergeist.tiled_search import SearchBudget, _expanded_bounds, _record_support, _score, _tracks, grid_tiles, merge_candidates, tile_pointsdef signature(rows):@@ -96,7 +96,7 @@ def main():write_json(output / "report.json", {"scope": "Historical three failed analytic-ridge scale tiles; no localization truth","source_commit": subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=root, text=True).strip(),"index_sha256": sha256(index.path), "index_input_hash": index.report["input_hash"],- "old_manifest_sha256": sha256(args.manifest), "code_sha256": {p.name: sha256(p) for p in (root / "src/aircraft_geoloc").glob("*.py")},+ "old_manifest_sha256": sha256(args.manifest), "code_sha256": {p.name: sha256(p) for p in (root / "src/dopplergeist").glob("*.py")},"runner_sha256": sha256(__file__), "elapsed_s": time.monotonic()-began, "tiles": reports,"limitations": ["Diagnostic tiles were selected from preserved historical model failures, not recorder truth.","Same legacy derivatives/altitudes and constant ground; no raw normalization repair.",diff --git a/tests/test_motion_support.py b/tests/test_motion_support.pyindex aa8bbd6..dd9a53e 100644--- a/tests/test_motion_support.py+++ b/tests/test_motion_support.py@@ -6,10 +6,10 @@ import pandas as pdimport pytestfrom pyproj import Transformer-from aircraft_geoloc.geometry import AcousticSupportError, Track, ecef-from aircraft_geoloc.matching import RidgeTimes-from aircraft_geoloc.search import score_candidate-from aircraft_geoloc.search import cpa_table, cpa_table_dense+from dopplergeist.geometry import AcousticSupportError, Track, ecef+from dopplergeist.matching import RidgeTimes+from dopplergeist.search import score_candidate+from dopplergeist.search import cpa_table, cpa_table_densedef side_view(displacement=1000):diff --git a/tests/test_tiled_support.py b/tests/test_tiled_support.pyindex 52d0cf9..558d120 100644--- a/tests/test_tiled_support.py+++ b/tests/test_tiled_support.py@@ -5,11 +5,11 @@ import pandas as pdimport pytestfrom pyproj import Transformer-from aircraft_geoloc import tiled_search-from aircraft_geoloc.data_access import FlightIndex-from aircraft_geoloc.geometry import AcousticSupportError, Track-from aircraft_geoloc.terrain import Terrain-from aircraft_geoloc.tiled_search import SearchBudget, _score, search_national, tile_points+from dopplergeist import tiled_search+from dopplergeist.data_access import FlightIndex+from dopplergeist.geometry import AcousticSupportError, Track+from dopplergeist.terrain import Terrain+from dopplergeist.tiled_search import SearchBudget, _score, search_national, tile_pointsfrom test_tiled_search import compact, scenario