Python tool for aircraft Doppler audio geolocation using historical ADS-B flight data (Source-available)
Python acoustic-geolocationads-baircraft-trackingairplaneaudio-forensicsdoppler-effectdoppler-shiftgeolocationosintsignal-processing
Report event-count limits as incomplete search coverage (#10)
Cinna Davisf5c59a4f85b7
diff --git a/docs/PRODUCT.md b/docs/PRODUCT.mdindex a8b0723..c8c609f 100644--- a/docs/PRODUCT.md+++ b/docs/PRODUCT.md@@ -90,7 +90,7 @@ This acquires public ADSB.lol all-type daily archives and Copernicus terrain/geoinputs, then reuses their indexed cache. It can require substantial disk space andtime. `offline` defaults to true; online retrieval is an explicit operator choice.No hidden account credentials or paid fallback are used. The default acquisition-window budget is three days (`max_acquisition_days`); wider recording windows need+budget is three UTC archive dates, including propagation guards and the full recording (`max_acquisition_days`); wider recording windows needa narrower defensible input or an explicit operator budget change. Do not putcredentials in this configuration.@@ -109,7 +109,10 @@ aircraft. Grid finalists undergo jointly constrained position/clock refinement;retained approaches prevent an affirmative confidence decision.The automatic path always uses one shared clock inside the supplied start window-and robust ridge loss. Every discovered event remains in the diagnostics. A+and robust ridge loss. Its default association path considers every proposed+independent group; harmonics count once and unsupported acoustic proposals remain+explicitly unmatched. A smaller operator event cap is incomplete work and is shown+in coverage limitations, rather than silently keeping an initial subset. Every discovered event remains in the diagnostics. Alocation requires the confidence producer's evidence checks, including independentevents, alternative hypotheses, complete coverage, residuals and measurement/modelsensitivity. A small altitude-only profile is insufficient. The final decisiondiff --git a/src/aircraft_geoloc/automatic.py b/src/aircraft_geoloc/automatic.pyindex 39db2af..d8094d1 100644--- a/src/aircraft_geoloc/automatic.py+++ b/src/aircraft_geoloc/automatic.py@@ -145,9 +145,12 @@ def _search(request, recording, events, output, config, search_progress):def _coverage(request, search, config):limitations = ["Historical receiver archives may omit aircraft or trajectory samples."]search_complete = (search.get("tiles_total", 0) > 0 and search.get("tiles_completed") == search.get("tiles_total")- and not search.get("tile_failures") and not search.get("refinement_failure"))+ and not search.get("tile_failures") and not search.get("refinement_failure")+ and search.get("all_event_groups_considered") is not False)if not search_complete:- limitations.append("Search did not complete the full requested tile work or refinement.")+ limitations.append("The search did not assess the complete requested scope within its work limits.")+ if search.get("all_event_groups_considered") is False:+ limitations.append(search.get("event_limit_reason") or "Not every proposed flyover group was considered within the configured budget.")if "constant_m" in config.get("terrain", {}):limitations.append("A constant terrain model was supplied; real terrain and altitude-datum accuracy are not established.")if search.get("alternative_modes_exhaustively_assessed") is not True:diff --git a/tests/test_automatic.py b/tests/test_automatic.pyindex 46abd1d..5894927 100644--- a/tests/test_automatic.py+++ b/tests/test_automatic.py@@ -190,3 +190,14 @@ def test_refinement_preserves_same_association_spatial_and_clock_modes(tmp_path,diagnostics = json.loads((tmp_path/"refined-candidates.json").read_text())["matching_diagnostics"]assert diagnostics["retained_hypotheses"] == 2assert diagnostics["refined_hypotheses"] == 2+++def test_an_explicit_event_cap_is_incomplete_work_not_missing_flight_data():+ from aircraft_geoloc.automatic import _coverage+ coverage = _coverage({"search": {"coverage": "conus"}},+ {"status": "partial", "tiles_total": 2, "tiles_completed": 2, "tile_failures": [],+ "refinement_failure": None, "data_scope_complete": True, "all_event_groups_considered": False,+ "event_limit_reason": "Configured limit 3 omits proposed groups from this four-group recording."}, {})+ assert coverage["search_complete"] is False+ assert coverage["data_status"] == "available"+ assert any("limit 3" in message for message in coverage["limitations"])