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 acquisition and search coverage as unassessed
Cinna Davise5ebb7d0f1e5
diff --git a/docs/INTERFACES.md b/docs/INTERFACES.mdindex 17671d9..815ffac 100644--- a/docs/INTERFACES.md+++ b/docs/INTERFACES.md@@ -140,6 +140,11 @@ Document that limitation even when all archive files were downloaded. A missingcoverage report must never be interpreted as complete coverage by the decisionstage. Detailed tile counts and coverage maps belong in a linked artifact.+Automatic jobs omit `coverage` during acquisition and search until a coverage+assessment is available. Local indexes and initialized terrain providers do not+establish complete coverage. Interrupted jobs can also omit `coverage` when no+assessment is available.+`artifacts` maps names to paths relative to that job's output directory, withoutabsolute paths or `..` traversal. Suggested names are `report`, `provenance`, andevent-specific plots/arrays. The provenance artifact should record input/data/codediff --git a/src/dopplergeist/automatic.py b/src/dopplergeist/automatic.pyindex 50beb22..cec251c 100644--- a/src/dopplergeist/automatic.py+++ b/src/dopplergeist/automatic.py@@ -142,11 +142,15 @@ def analyze(request, output_dir, config=None, progress=lambda *args, **kwargs: Nreturn finish("needs_input", "recording_time_required", "Supply a defensible UTC window for the start of this recording. File creation and upload times are not recording clocks.", required_fields=["time_window"])if not events:return finish("inconclusive", "no_supported_events", "No supported moving-tone Doppler events were discovered in the recording.")- progress("acquisition", 0.35, **state)+ # Coverage remains unassessed until the search report is available.+ # Keep the initial state for explicit acquisition failure results.+ running_state = {key: value for key, value in state.items() if key != "coverage"}+ progress("acquisition", 0.35, **running_state)def report_search_progress(fraction=0.0):fraction = min(1.0, max(0.0, float(fraction)))- progress("search", 0.55 + 0.29 * fraction, **state)+ progress("search", 0.55 + 0.29 * fraction,+ message="Data coverage is not yet assessed.", **running_state)try:from .data_access import DataUnavailablediff --git a/src/dopplergeist/guidance.py b/src/dopplergeist/guidance.pyindex cc57f4d..44adcb4 100644--- a/src/dopplergeist/guidance.py+++ b/src/dopplergeist/guidance.py@@ -79,10 +79,13 @@ def guidance(result, decision=None):"Ask the operator to inspect the recorded data-access or configuration limit before repeating the analysis.",["result.json#/reason_code", "result.json#/coverage/data_status", "result.json#/coverage/limitations"])- if reason == "work_limit" and coverage.get("search_complete") is False:- add("work_limit", "The configured wall-time limit ended the analysis before the search completed.",- "Ask the operator to allow more time. A compatible saved checkpoint can be resumed; otherwise rerun. Completion is not guaranteed.",- ["result.json#/reason_code", "result.json#/coverage/search_complete"])+ if reason == "work_limit" and coverage.get("search_complete") is not True:+ evidence = ["result.json#/reason_code"]+ if coverage.get("search_complete") is False:+ evidence.append("result.json#/coverage/search_complete")+ add("work_limit", "The configured wall-time limit ended the analysis before completion.",+ "Ask the operator to allow more time. If a compatible saved checkpoint exists, resume it. Otherwise, run the analysis again. Completion is not guaranteed.",+ evidence)elif reason == "search_incomplete" and coverage.get("search_complete") is False:add("incomplete_assessment", "Search coverage or assessment of competing hypotheses is incomplete.","Ask the operator to inspect unfinished work and unsupported model assessments. More runtime alone may not address these limits.",diff --git a/src/dopplergeist/web/app.js b/src/dopplergeist/web/app.jsindex 26b29bb..ad75460 100644--- a/src/dopplergeist/web/app.js+++ b/src/dopplergeist/web/app.js@@ -43,20 +43,26 @@ function setCountryProfiles(values, defaultCountry = 'US') {function renderCoverage(coverage, status) {$('coverage').replaceChildren();- if (!coverage) return;const card = node('div', undefined, 'candidate');card.append(node('strong', 'Search & data coverage'));- const area = coverage.requested_area || {coverage: 'conus'};- const profile = countryProfiles.find(item => (!area.country || item.country === area.country)- && (!area.coverage || item.coverage === area.coverage));- const name = profile?.name || ({US: CONUS_PROFILE.name, DE: 'Germany'})[area.country]- || ({conus: CONUS_PROFILE.name, germany: 'Germany'})[area.coverage] || area.country || area.coverage || 'unspecified';- const bounds = area.bounds_wsen;- const full = bounds && profile && bounds.every((value, index) => value === profile.bounds_wsen[index]);- const label = bounds && !full- ? `Requested ${name} bounds (west, south, east, north): ${bounds.map(value => typeof value === 'number' ? value.toFixed(6) : value).join(', ')}`- : `Requested area: ${name}`;- card.append(node('p', label));+ if (!coverage) {+ card.append(node('p', 'Search and data coverage are not established.'));+ $('coverage').append(card);+ return;+ }+ const area = coverage.requested_area;+ if (area) {+ const profile = countryProfiles.find(item => (!area.country || item.country === area.country)+ && (!area.coverage || item.coverage === area.coverage));+ const name = profile?.name || ({US: CONUS_PROFILE.name, DE: 'Germany'})[area.country]+ || ({conus: CONUS_PROFILE.name, germany: 'Germany'})[area.coverage] || area.country || area.coverage || 'unspecified';+ const bounds = area.bounds_wsen;+ const full = bounds && profile && bounds.every((value, index) => value === profile.bounds_wsen[index]);+ const label = bounds && !full+ ? `Requested ${name} bounds (west, south, east, north): ${bounds.map(value => typeof value === 'number' ? value.toFixed(6) : value).join(', ')}`+ : `Requested area: ${name}`;+ card.append(node('p', label));+ }if (status === 'queued' || status === 'running') {card.append(node('p', status === 'queued'? 'Search queued · data coverage will be assessed after processing starts.'