Skip to content

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

Publish bounded all-aircraft MP3 ranking

Cinna Davis4758e338ee83
diff --git a/benchmarks/results/livermore-all-traffic-ranked-20261103.csv b/benchmarks/results/livermore-all-traffic-ranked-20261103.csv
new file mode 100644
index 0000000..c5dbdf2
--- /dev/null
+++ b/benchmarks/results/livermore-all-traffic-ranked-20261103.csv
@@ -0,0 +1,106 @@
+rank,latitude,longitude,score,score_kind,recording_start_utc,flight_ids,event_ids,distance_to_reference_m
+1,37.648049141541755,-121.79374118135263,0.9360818344326323,matched_group_support_minus_normalized_residual,2026-05-14T17:41:27.238314Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1982.3
+2,37.64804179169621,-121.79373746474403,0.9360801980472204,matched_group_support_minus_normalized_residual,2026-05-14T17:41:27.242255Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1982.8
+3,37.64801833656169,-121.79374948924182,0.9360682904452873,matched_group_support_minus_normalized_residual,2026-05-14T17:41:27.245374Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1985.6
+4,37.66408028934627,-121.78717115366587,0.935408038341196,matched_group_support_minus_normalized_residual,2026-05-14T17:41:27.239762Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,476.9
+5,37.648027917033126,-121.79250293384037,0.9317590131524484,matched_group_support_minus_normalized_residual,2026-05-14T17:41:28.190759Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1928.9
+6,37.648661971507664,-121.7928524078413,0.931676012105705,matched_group_support_minus_normalized_residual,2026-05-14T17:41:27.825185Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1883.4
+7,37.647788709350415,-121.79360525827744,0.9308176322653494,matched_group_support_minus_normalized_residual,2026-05-14T17:41:27.238313Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2000.7
+8,37.664173384677945,-121.78638626535616,0.9305052649425342,matched_group_support_minus_normalized_residual,2026-05-14T17:41:27.714536Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,411.9
+9,37.64888751826586,-121.79280968390391,0.9302435728335213,matched_group_support_minus_normalized_residual,2026-05-14T17:41:27.714536Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1860.0
+10,37.64678708620489,-121.78968483202411,0.9294787623646965,matched_group_support_minus_normalized_residual,2026-05-14T17:41:31.524322Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1949.2
+11,37.648267114730295,-121.79140060228713,0.929458299275067,matched_group_support_minus_normalized_residual,2026-05-14T17:41:29.143206Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1859.8
+12,37.64740750981425,-121.791093871136,0.9287252000959244,matched_group_support_minus_normalized_residual,2026-05-14T17:41:30.095652Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1933.8
+13,37.64640580578104,-121.78717349899465,0.9286002859379721,matched_group_support_minus_normalized_residual,2026-05-14T17:41:33.905438Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1923.3
+14,37.647168314838886,-121.79219619089298,0.9283856762746179,matched_group_support_minus_normalized_residual,2026-05-14T17:41:29.143206Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2000.3
+15,37.64702625848756,-121.78858250983248,0.9280697606278348,matched_group_support_minus_normalized_residual,2026-05-14T17:41:32.476768Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1891.7
+16,37.64616664620534,-121.78827581650475,0.9280192844781928,matched_group_support_minus_normalized_residual,2026-05-14T17:41:32.952991Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1974.7
+17,37.66293241749334,-121.78356765189207,0.9274657571918046,matched_group_support_minus_normalized_residual,2026-05-14T17:41:31.048099Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,152.5
+18,37.645785336684845,-121.78576451174982,0.9269673767701376,matched_group_support_minus_normalized_residual,2026-05-14T17:41:35.334107Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1964.7
+19,37.64654790393665,-121.79078714710052,0.9264376041063547,matched_group_support_minus_normalized_residual,2026-05-14T17:41:30.571875Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2010.1
+20,37.6476466948041,-121.78999154426333,0.9262517399156156,matched_group_support_minus_normalized_residual,2026-05-14T17:41:30.571875Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1870.4
+21,37.646929109878066,-121.79329850353406,0.9250426689283476,matched_group_support_minus_normalized_residual,2026-05-14T17:41:28.190759Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2069.6
+22,37.6460244735681,-121.78466219180767,0.9247903251821608,matched_group_support_minus_normalized_residual,2026-05-14T17:41:36.286554Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1923.8
+23,37.64554618981592,-121.78686682457791,0.9245549266913482,matched_group_support_minus_normalized_residual,2026-05-14T17:41:34.381661Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2009.9
+24,37.64850630244185,-121.790298263618,0.9245248260235531,matched_group_support_minus_normalized_residual,2026-05-14T17:41:30.095652Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1793.7
+25,37.64664495537111,-121.78607117437004,0.9241000233060993,matched_group_support_minus_normalized_residual,2026-05-14T17:41:34.857884Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1876.0
+26,37.64912671868494,-121.79170734055421,0.9237066791739282,matched_group_support_minus_normalized_residual,2026-05-14T17:41:28.666983Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1788.2
+27,37.64516485119932,-121.78435554809806,0.9232009617398269,matched_group_support_minus_normalized_residual,2026-05-14T17:41:36.762777Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2015.3
+28,37.645927476644054,-121.7893781269001,0.9229948313742877,matched_group_support_minus_normalized_residual,2026-05-14T17:41:32.000545Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2029.7
+29,37.64726542078459,-121.78748018052589,0.9228137332258851,matched_group_support_minus_normalized_residual,2026-05-14T17:41:33.429214Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1838.0
+30,37.647885869808306,-121.78888921027522,0.9212559287920968,matched_group_support_minus_normalized_residual,2026-05-14T17:41:31.524322Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1810.4
+31,37.66245415559577,-121.78577279482352,0.9212202215558074,matched_group_support_minus_normalized_residual,2026-05-14T17:41:29.143206Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,354.0
+32,37.66216955585237,-121.77854398019377,0.9211747197053941,matched_group_support_minus_normalized_residual,2026-05-14T17:41:35.810330Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,316.1
+33,37.648648307861144,-121.79391202013718,0.9204581802824948,matched_group_support_minus_normalized_residual,2026-05-14T17:41:27.238313Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1934.4
+34,37.646308711682956,-121.7918894550615,0.9195175478267527,matched_group_support_minus_normalized_residual,2026-05-14T17:41:29.619429Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2074.1
+35,37.64974711853723,-121.79311644108384,0.9195073158576136,matched_group_support_minus_normalized_residual,2026-05-14T17:41:27.238313Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1793.9
+36,37.644925717037,-121.78545785624367,0.9188234909967289,matched_group_support_minus_normalized_residual,2026-05-14T17:41:35.810330Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2054.4
+37,37.661691384746184,-121.78074913284652,0.918791704130838,matched_group_support_minus_normalized_residual,2026-05-14T17:41:33.905438Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,196.2
+38,37.663410639439896,-121.78136248049344,0.9185087646282124,matched_group_support_minus_normalized_residual,2026-05-14T17:41:32.952991Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,50.3
+39,37.646689894931896,-121.794400809059,0.9178666852950035,matched_group_support_minus_normalized_residual,2026-05-14T17:41:27.238313Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2141.4
+40,37.645307032961426,-121.78796913029174,0.9175863105518325,matched_group_support_minus_normalized_residual,2026-05-14T17:41:33.429214Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2059.0
+41,37.64626360046564,-121.78355986475171,0.9172873424294421,matched_group_support_minus_normalized_residual,2026-05-14T17:41:37.239000Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1887.3
+42,37.664651657466344,-121.78418107521549,0.9168611844447739,matched_group_support_minus_normalized_residual,2026-05-14T17:41:29.619429Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,258.4
+43,37.64688409497541,-121.78496884263113,0.9163067255926274,matched_group_support_minus_normalized_residual,2026-05-14T17:41:35.810330Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1833.0
+44,37.64936590911832,-121.79060499008835,0.9154332481210616,matched_group_support_minus_normalized_residual,2026-05-14T17:41:29.619429Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1719.3
+45,37.648745480167705,-121.78919591783318,0.9153686373169331,matched_group_support_minus_normalized_residual,2026-05-14T17:41:31.048099Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1731.0
+46,37.64568829709734,-121.7904804301805,0.9139858943951131,matched_group_support_minus_normalized_residual,2026-05-14T17:41:31.048099Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2088.2
+47,37.648125034826776,-121.78778686917187,0.9134294803026642,matched_group_support_minus_normalized_residual,2026-05-14T17:41:32.476768Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1754.2
+48,37.647504573095894,-121.7863778441045,0.9131782599646943,matched_group_support_minus_normalized_residual,2026-05-14T17:41:34.381661Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1788.4
+49,37.644305227868884,-121.78404891150203,0.9121081173698227,matched_group_support_minus_normalized_residual,2026-05-14T17:41:37.239000Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2107.5
+50,37.64606950944392,-121.79299175590681,0.9111785513071513,matched_group_support_minus_normalized_residual,2026-05-14T17:41:28.666983Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2140.9
+51,37.64998632167834,-121.79201408593745,0.9107379928325221,matched_group_support_minus_normalized_residual,2026-05-14T17:41:28.190759Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1719.3
+52,37.64468657288909,-121.78656015727547,0.9103396627266241,matched_group_support_minus_normalized_residual,2026-05-14T17:41:34.857884Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2097.6
+53,37.64506786612147,-121.78907142889108,0.9069824526305454,matched_group_support_minus_normalized_residual,2026-05-14T17:41:32.476768Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2111.9
+54,37.64712322459391,-121.78386650377816,0.9052514950101083,matched_group_support_minus_normalized_residual,2026-05-14T17:41:36.762777Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1794.6
+55,37.66121317368891,-121.78295425703583,0.9052349436178743,matched_group_support_minus_normalized_residual,2026-05-14T17:41:32.000545Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,241.7
+56,37.64898464790771,-121.78809356493284,0.9050909387962484,matched_group_support_minus_normalized_residual,2026-05-14T17:41:32.000545Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1672.0
+57,37.64406609642739,-121.78515120785133,0.9046028902625909,matched_group_support_minus_normalized_residual,2026-05-14T17:41:36.762777Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2144.9
+58,37.66197585374789,-121.78797790928597,0.9044523961583726,matched_group_support_minus_normalized_residual,2026-05-14T17:41:27.238313Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,555.6
+59,37.64544910756522,-121.7915827263457,0.9027400155058869,matched_group_support_minus_normalized_residual,2026-05-14T17:41:30.095652Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2149.8
+60,37.64774371542138,-121.78527550056862,0.9013635714719128,matched_group_support_minus_normalized_residual,2026-05-14T17:41:35.334107Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1743.2
+61,37.66045028643908,-121.77793070821967,0.9008777847815214,matched_group_support_minus_normalized_residual,2026-05-14T17:41:37.239000Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,464.1
+62,37.6638888214347,-121.77915728062946,0.900684236016533,matched_group_support_minus_normalized_residual,2026-05-14T17:41:34.381661Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,251.3
+63,37.66264768700673,-121.77633879907944,0.9005240477944476,matched_group_support_minus_normalized_residual,2026-05-14T17:41:37.239000Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,492.7
+64,37.649605089565924,-121.78950263250658,0.9003119810114046,matched_group_support_minus_normalized_residual,2026-05-14T17:41:30.571875Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1653.7
+65,37.645830297219575,-121.7940940496362,0.899709499762777,matched_group_support_minus_normalized_residual,2026-05-14T17:41:27.714536Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2210.3
+66,37.64540397537598,-121.78325323283886,0.8986831710459902,matched_group_support_minus_normalized_residual,2026-05-14T17:41:37.239000Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1980.6
+67,37.644447418755696,-121.78766245119326,0.8985624096713415,matched_group_support_minus_normalized_residual,2026-05-14T17:41:33.905438Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2144.7
+68,37.65022551483367,-121.79091172367468,0.897685436439331,matched_group_support_minus_normalized_residual,2026-05-14T17:41:29.143206Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1647.5
+69,37.644828689296105,-121.79017372037566,0.8943972422037705,matched_group_support_minus_normalized_residual,2026-05-14T17:41:31.524322Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2168.1
+70,37.64754949168228,-121.79470757559812,0.8934611939580294,matched_group_support_minus_normalized_residual,2026-05-14T17:41:27.238313Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2074.9
+71,37.6438269550004,-121.78625349708706,0.8918009298021555,matched_group_support_minus_normalized_residual,2026-05-14T17:41:35.810330Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2186.3
+72,37.665129890303085,-121.78197585660573,0.8915858963023823,matched_group_support_minus_normalized_residual,2026-05-14T17:41:31.524322Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,212.7
+73,37.66589260992906,-121.78699976435973,0.8902611430863588,matched_group_support_minus_normalized_residual,2026-05-14T17:41:27.238313Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,541.0
+74,37.64798284776096,-121.78417314991842,0.8899878093359419,matched_group_support_minus_normalized_residual,2026-05-14T17:41:35.810330Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1702.7
+75,37.66073492268123,-121.7851593527599,0.8889476777623228,matched_group_support_minus_normalized_residual,2026-05-14T17:41:30.571875Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,399.6
+76,37.6599721262206,-121.780135813663,0.8877518070192392,matched_group_support_minus_normalized_residual,2026-05-14T17:41:35.334107Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,391.3
+77,37.64736234422648,-121.78276415781136,0.8876258831667851,matched_group_support_minus_normalized_residual,2026-05-14T17:41:37.239000Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1761.2
+78,37.64984426002763,-121.78840026780908,0.8874125193851691,matched_group_support_minus_normalized_residual,2026-05-14T17:41:31.524322Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1591.8
+79,37.644208254636915,-121.78876473799676,0.8850086096795365,matched_group_support_minus_normalized_residual,2026-05-14T17:41:32.952991Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2195.4
+80,37.65046469800314,-121.78980935429571,0.8822028244136602,matched_group_support_minus_normalized_residual,2026-05-14T17:41:30.095652Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1578.8
+81,37.64458950248545,-121.7912760047453,0.8804255157885296,matched_group_support_minus_normalized_residual,2026-05-14T17:41:30.571875Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2227.4
+82,37.648221970114534,-121.78307079215415,0.8793578396056521,matched_group_support_minus_normalized_residual,2026-05-14T17:41:36.762777Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1667.4
+83,37.64946295343002,-121.78588883778676,0.879250537501243,matched_group_support_minus_normalized_residual,2026-05-14T17:41:33.905438Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1566.9
+84,37.643587803588,-121.78735577920901,0.8780508035268189,matched_group_support_minus_normalized_residual,2026-05-14T17:41:34.857884Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2231.4
+85,37.664366963477036,-121.77695205230192,0.8778335694055412,matched_group_support_minus_normalized_residual,2026-05-14T17:41:36.286554Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,452.9
+86,37.66637089360918,-121.78479452700802,0.8774270748607019,matched_group_support_minus_normalized_residual,2026-05-14T17:41:28.666983Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,434.7
+87,37.66025663172392,-121.78736442001689,0.8753650822369339,matched_group_support_minus_normalized_residual,2026-05-14T17:41:28.666983Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,585.1
+88,37.65949392605166,-121.78234089064482,0.8748244818512774,matched_group_support_minus_normalized_residual,2026-05-14T17:41:33.429214Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,415.0
+89,37.650703871186614,-121.7887069778008,0.8718499932635945,matched_group_support_minus_normalized_residual,2026-05-14T17:41:31.048099Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1513.8
+90,37.64950790541043,-121.79421878911357,0.8651983374667598,matched_group_support_minus_normalized_residual,2026-05-14T17:41:27.238313Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1871.0
+91,37.65194472338165,-121.79152521219605,0.8643908916776611,matched_group_support_minus_normalized_residual,2026-05-14T17:41:27.714536Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1513.1
+92,37.65901568593301,-121.78454593916334,0.8636103914028443,matched_group_support_minus_normalized_residual,2026-05-14T17:41:31.524322Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,522.2
+93,37.64334864219028,-121.78845805421695,0.8631252644102566,matched_group_support_minus_normalized_residual,2026-05-14T17:41:33.905438Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2280.2
+94,37.665608083187415,-121.77977060952867,0.8612982567634272,matched_group_support_minus_normalized_residual,2026-05-14T17:41:33.429214Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,324.1
+95,37.646502717377295,-121.78245753058215,0.8602534550720824,matched_group_support_minus_normalized_residual,2026-05-14T17:41:37.239000Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1855.6
+96,37.64994121900803,-121.78368408218154,0.8569772251459953,matched_group_support_minus_normalized_residual,2026-05-14T17:41:35.810330Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1481.9
+97,37.65118218759535,-121.78650220346404,0.8539169269126509,matched_group_support_minus_normalized_residual,2026-05-14T17:41:32.952991Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1396.5
+98,37.658252863861854,-121.77952252294098,0.8525462695355382,matched_group_support_minus_normalized_residual,2026-05-14T17:41:36.286554Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,588.6
+99,37.64411109890861,-121.79348055213877,0.8509792738366798,matched_group_support_minus_normalized_residual,2026-05-14T17:41:28.666983Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2354.7
+100,37.66369507193859,-121.7885914270259,0.8506857071647678,matched_group_support_minus_normalized_residual,2026-05-14T17:41:27.238313Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,594.9
+101,37.652423090622584,-121.78932041913163,0.8501801941282214,matched_group_support_minus_normalized_residual,2026-05-14T17:41:29.619429Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,1366.1
+102,37.64210771633673,-121.78564019805138,0.8498576438070724,matched_group_support_minus_normalized_residual,2026-05-14T17:41:36.762777Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2366.1
+103,37.65853740586535,-121.7867509592167,0.8493111553217371,matched_group_support_minus_normalized_residual,2026-05-14T17:41:29.619429Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,674.2
+104,37.64454434932482,-121.78294660803937,0.84918209468639,matched_group_support_minus_normalized_residual,2026-05-14T17:41:37.239000Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,2074.4
+105,37.65977830081768,-121.78956945880499,0.8477169857087157,matched_group_support_minus_normalized_residual,2026-05-14T17:41:27.238313Z,aaa077:0|aaa077:0|aaa077:0|aaa077:0|aaa077:0,event-0001|event-0001-harmonic-2|event-0001-harmonic-3|event-0001-harmonic-4|event-0001-harmonic-5,778.6
diff --git a/docs/LIVERMORE_DEMO.md b/docs/LIVERMORE_DEMO.md
index 80aeb42..d941b89 100644
--- a/docs/LIVERMORE_DEMO.md
+++ b/docs/LIVERMORE_DEMO.md
@@ -43,6 +43,9 @@ incomplete model support. Both are development examples, not automatic or
independent real-world acceptance. The original Livermore run reported 38.8 seconds; the separate fresh replay used
for the figure reported 20.7 seconds. Runtime depends on hardware and load.
+For the subsequent full-archive MP3 upload and its ranked candidates, see the
+[all-aircraft ranked run](LIVERMORE_RANKED_RUN.md).
+
## Separate automatic MP3 upload
The same real recording was also encoded to MP3 and submitted to the local API
diff --git a/docs/LIVERMORE_RANKED_RUN.md b/docs/LIVERMORE_RANKED_RUN.md
new file mode 100644
index 0000000..1323207
--- /dev/null
+++ b/docs/LIVERMORE_RANKED_RUN.md
@@ -0,0 +1,96 @@
+# Livermore MP3: all-aircraft ranked run
+
+This run uploads the same real MP3 used in the [Livermore example](LIVERMORE_DEMO.md)
+to DOPPLERGEIST's local API. It detects events from the entire recording and ranks
+locations against a regional index built from the **all-aircraft** ADSB.lol archive,
+including jets and unknown types. The aircraft ID was not supplied to the search.
+
+[Download all 105 ranked candidates](../benchmarks/results/livermore-all-traffic-ranked-20261103.csv).
+The last CSV column is a post-run comparison to an inferred reference, not an input
+to scoring. Scores rank fits; they are not probabilities. The first five raw rows
+include several almost identical positions. To make alternatives easier to see,
+the table below selects each successive row at least 300 m from every earlier
+selected row, preserving its original rank and score.
+
+| Original rank | Latitude | Longitude | Score | Distance to inferred reference |
+| ---: | ---: | ---: | ---: | ---: |
+| 1 | 37.648049 | -121.793741 | 0.936082 | 1,982 m |
+| 4 | 37.664080 | -121.787171 | 0.935408 | 477 m |
+| 10 | 37.646787 | -121.789685 | 0.929479 | 1,949 m |
+| 17 | 37.662932 | -121.783568 | 0.927466 | 153 m |
+| 18 | 37.645785 | -121.785765 | 0.926967 | 1,965 m |
+
+All five representatives are associated with the same archived aircraft, `aaa077`.
+A post-run comparison of that aircraft's raw positions with the published N784MB
+KML yielded 4.12 m median and 25.29 m maximum horizontal difference at nine
+common timestamps from 17:41–17:44 UTC. This supports the association, but the
+reference point was inferred from other tracks in the dataset and is **not a
+surveyed microphone position**. Thus the table does not establish true location
+error or independent benchmark success.
+
+## What was searched and why it remains inconclusive
+
+- Input: the published 85.23-second recording encoded as MP3; source recording
+ [Praveen Pathak, Zenodo 23424278](https://doi.org/10.5281/zenodo.23424278), CC BY 4.0.
+ The automatic pipeline discovered two acoustic groups and matched one; their
+ independence is not established. No event window or band was supplied.
+- Strong priors: the same approximately 10-second sample-zero window derived
+ from the published ridge and recording duration; a reference-derived rectangle
+ `[-121.8068757, 37.6382161, -121.7568757, 37.6882161]` in WGS84. This is a
+ constrained demonstration, not a blind test.
+- Flight input: ADSB.lol `v2026.05.14-planes-readsb-staging-0`, © ADSB.lol contributors, [ODbL 1.0](https://opendatacommons.org/licenses/odbl/1-0/). The
+ complete daily archive was scanned for untrimmed tracks intersecting the
+ buffered bounds `[-122.5, 37.0, -121.0, 38.4]` and 17:30–18:00 UTC. The
+ resulting index contained 466 aircraft, 1,086,100 rows and 5,341 gap-split
+ segments. The index reports complete *declared source scope* for the requested
+ search; it cannot prove receiver capture of every real aircraft.
+- Search: source revision `7565d81`; 200 m coarse grid, 100 m search refinement,
+ 100 retained modes, five final refinement seeds, and four tile workers. All
+ **4/4 tiles** were processed, covering 612 grid points and 71 refinement points;
+ 54 additional refinement points were skipped. The search report recorded 227.4 s
+ and 499 MiB process peak RSS; these do not measure whole-job elapsed time or
+ total memory across worker processes. Times are not portable performance estimates.
+- Outcome: **inconclusive / search_incomplete**, with 105 ranked rows. The
+ all-aircraft data scope was available, but the physical model left 98 unsupported
+ CPA work evaluations across 13 track segments. Their reported failures were
+ non-subsonic interpolated motion; three segments had a reported problematic
+ interval overlapping the requested emission window. The remaining segments'
+ reported problematic intervals were outside it, but the current implementation
+ conservatively excludes their entire affected segments.
+- The report also records 15,404 unclassified candidate envelopes and 266,663
+ unknown clock trials. All 15,404 envelopes have score bounds, and 10,526 are
+ bounded rejections; other bounds can remain competitive. Unsupported
+ trajectories and unassessed alternatives therefore prevent treating the
+ returned list as an exhaustive or accepted answer, even though the tile grid
+ itself finished. One flyover can leave strong competing locations.
+
+The [earlier one-aircraft upload](LIVERMORE_DEMO.md#separate-automatic-mp3-upload)
+returned 105 candidates as well. Its 1,391 unknown trials were all bounded
+rejections; they were not, by themselves, the missing-coverage problem. Its index
+contained only the known aircraft. The full-archive run above fixes that input
+scope but exposes separate trajectory-model limits.
+
+## Reproduce the run
+
+Install DOPPLERGEIST and FFmpeg as in the [README](../README.md). Download the
+2026-05-14 archive with `scripts/fetch_adsblol_day.py`; scan it with
+`scripts/ingest_adsblol_day.py` using the bounds and UTC interval above, `--keep-jets`,
+and a new output filename; build an index with `scripts/index_flights.py` using
+the same bounds/time and `--all-aircraft`. Configure `flight_indexes` to point
+to that index and provide the validated Copernicus terrain and EGM2008 geoid.
+Use the [local upload API](PRODUCT.md) with the time window and search rectangle
+above. Supply neither the reference coordinate nor aircraft identity as scoring
+inputs. The reference-derived rectangle itself is an explicit prior. The result
+JSON contains the ordered candidates and coverage diagnostics; compare with the
+inferred reference only after the search.
+
+To export the resulting `result.json` without requiring a reference:
+
+```bash
+.venv/bin/python scripts/export_ranked_job.py path/to/job/result.json results/ranking
+```
+
+Add `--reference LAT LON` to compute an **evaluation-only** distance after the
+run. The command writes the full score-ordered CSV and a second CSV of spatially
+distinct representatives. `--separation-m` changes the representative spacing;
+it never changes the search or its full ranking.
diff --git a/scripts/export_ranked_job.py b/scripts/export_ranked_job.py
new file mode 100644
index 0000000..885e566
--- /dev/null
+++ b/scripts/export_ranked_job.py
@@ -0,0 +1,60 @@
+#!/usr/bin/env python3
+"""Export a completed job's rankings and spatially distinct alternatives."""
+import argparse
+import csv
+import json
+from pathlib import Path
+
+from pyproj import Geod
+
+
+def main():
+ parser = argparse.ArgumentParser(description=__doc__)
+ parser.add_argument('result', type=Path, help='Completed job result.json')
+ parser.add_argument('output', type=Path, help='New output directory')
+ parser.add_argument('--reference', nargs=2, type=float, metavar=('LAT', 'LON'),
+ help='Optional evaluation-only reference, used after the search')
+ parser.add_argument('--separation-m', type=float, default=300,
+ help='Minimum spacing between displayed alternatives (default: 300 m)')
+ args = parser.parse_args()
+ if args.separation_m < 0:
+ parser.error('--separation-m must be nonnegative')
+ result = json.loads(args.result.read_text())
+ candidates = result.get('candidates', [])
+ if any(a['score'] < b['score'] for a, b in zip(candidates, candidates[1:])):
+ raise ValueError('Candidate list is not sorted by descending score')
+
+ args.output.mkdir(parents=True, exist_ok=False)
+ geod = Geod(ellps='WGS84')
+ fields = ['rank', 'latitude', 'longitude', 'score', 'score_kind', 'recording_start_utc',
+ 'flight_ids', 'event_ids', 'distance_to_reference_m']
+ rows, distinct = [], []
+ for rank, candidate in enumerate(candidates, 1):
+ lat, lon = float(candidate['lat']), float(candidate['lon'])
+ distance = (geod.inv(lon, lat, args.reference[1], args.reference[0])[2]
+ if args.reference else None)
+ row = {'rank': rank, 'latitude': lat, 'longitude': lon, 'score': candidate['score'],
+ 'score_kind': candidate.get('score_kind', ''),
+ 'recording_start_utc': candidate.get('recording_start_utc', ''),
+ 'flight_ids': '|'.join(candidate.get('flight_ids', [])),
+ 'event_ids': '|'.join(candidate.get('event_ids', [])),
+ 'distance_to_reference_m': round(distance, 1) if distance is not None else ''}
+ rows.append(row)
+ if all(geod.inv(lon, lat, prior['longitude'], prior['latitude'])[2] >= args.separation_m
+ for prior in distinct):
+ distinct.append(row)
+ for filename, output_rows in [('all-candidates.csv', rows), ('spatially-distinct.csv', distinct)]:
+ with (args.output / filename).open('w', newline='') as stream:
+ writer = csv.DictWriter(stream, fieldnames=fields, lineterminator='\n')
+ writer.writeheader()
+ writer.writerows(output_rows)
+ print(f"{result.get('status')} / {result.get('reason_code')}; {len(rows)} ranked candidates; "
+ f"{len(distinct)} spatial representatives at {args.separation_m:g} m minimum separation")
+ for row in distinct[:10]:
+ reference = f" reference distance {row['distance_to_reference_m']} m" if args.reference else ''
+ print(f"rank {row['rank']:3d} {row['latitude']:.6f}, {row['longitude']:.6f} "
+ f"score {row['score']:.6f}{reference}")
+
+
+if __name__ == '__main__':
+ main()