Methods · FEMME 2026 · E/V Nautilus

Reproducing Bridging the Archive

Five scripts, MB-System to ggplot2, and the reasoning behind every choice that could have gone another way — including the two that went wrong first.

.all / .kmall raw sonar 01_extract.sh mblist -MA beam tables 02_reduce.py per-ping + terrain 03_match.py depth-matched pairs 04_figures.R five figures 05_verify.py published vs recomputed python is standard library only — R is needed for the figures, not the analysis

The problem

The shared ground is all one depth

Almost. The NA177 sea acceptance trials deliberately sited a 4,800 m accuracy reference surface over the one NA159 occupied in 2024 — “this provides an ideal comparison of performance of the ‘old’ EM302 VS the new EM304” — and four more reference surfaces sit at 2,600, 1,000, 650 and 290 m. That is a real repeat comparison and it is the right place to validate against.

The problem is not that shared ground is rare — it is that it is unevenly distributed and stops short. Across the whole archive 2,183 matched ping pairs sit within 3 km of each other, in both survey theatres, spanning 1,158 to 6,057 m. But that subset is bimodal, not continuous: 43% falls between 4,000 and 5,000 m and another 45% between 1,000 and 3,000 m, with only 2.9% in the 3,000–4,000 m gap between them, 8.9% above 5,000 m, and almost nothing deeper than 6,000 m. Co-location can corroborate the comparison where it is dense; it cannot produce a continuous curve, and it does not reach the trench at all. To measure the operating range as a whole, the comparison has to be built another way.

Depth is the dominant control on how wide a multibeam swath can be: two-way transmission loss at nadir rises about 29 dB between 4,800 and 9,000 m, and holding ±52° at 9,000 m costs a further 53 dB on top of that. So the comparison is built by pairing pings at the same water depth, and every other decision follows from that one.

Eleven decisions

Each one could have gone another way

01

Extract valid beams, and separately extract the flagged ones

# one row per valid beam: time, lon, lat, depth, acrosstrack, beam, amplitude
mblist -F261 -I datalist -MA -U0 -OTXYzD#B -G,  > NA180_valid.csv
mblist -F261 -I datalist -MA -U1 -OTXYzD#B -G,  > NA180_all.csv

-MA is what makes the output per-beam rather than per-ping. Without it you get the nadir depth only and cannot measure swath geometry at all. -F58 for EM302 .all, -F261 for EM304 .kmall.

Why two passes

-U0 drops flagged and null beams and is what the analysis uses. -U1 keeps flagged beams and exists for exactly one purpose: the EM302 archive has been edited and the EM304 files have not. Differencing the two beam counts measures that asymmetry — 1.004 in shallow water, 1.224 in the trench. Every trench density claim is discounted by it.

One character worth getting right

z is depth positive downwards; Z is topography positive upwards. Mixing them silently flips the sign of every slope fit downstream.

02

One record per ping, keyed on timestamp, streamed

Beams from one ping share a timestamp and arrive contiguously, so the reduction buffers a ping, flushes it, and never holds the file in memory. A 9 GB archive reduces on a laptop.

Why the nadir beam sets the depth

Ping depth is the depth of the beam with the smallest absolute across-track distance. That beam has the shortest slant range and is the least sensitive to sound-speed error, so it is the most defensible single depth for a ping. Taking the minimum depth in the swath instead would bias every ping towards whatever the shallowest thing in range happened to be.

03

Report coverage ratio, not swath width

Width in meters confounds capability with depth — a 5,000 m swath is excellent at 1,000 m and poor at 6,000 m. Dividing by water depth removes that, and it is the number hydrographers already think in.

This one was wrong first

It also ties the figures together arithmetically: coverage ratio = 2 · tan(half-angle), so the coverage increase and the ratio of tangents of the two median half-angles must agree. An earlier draft headlined swath width (1.79×) sitting beside half-angles whose tangent ratio is 1.90×. Both were correct; together on a poster they read as an arithmetic error. Switching the headline fixed it, and 05_verify.py now checks the identity every run.

04

Medians, not means

The distributions are skewed, and a mean chases the tail where a median does not. Where mean and median agree, that is informative too — in the trench they do, which is how the odd non-monotonic band at 7,300–7,800 m is known to be real structure rather than an outlier artifact.

05

Normalise soundings to one swath

This is the correction that changed the most. The EM304 in dual-swath mode transmits two fans per ping cycle, and depending on how the datagram timestamps fall both can land under one timestamp key — so a single record carries ~1,450 soundings. The EM302's records never exceed 432, which is exactly its single-swath beam count, so every EM302 record is one swath.

Comparing a two-swath record against a one-swath record inflates the density advantage by up to 2×. The rule: an EM304 record with more than 1,000 soundings is two swaths. Not arbitrary — the counts are cleanly bimodal, a mode at ~750 and a mode at ~1,450 with an empty gap between 1,000 and 1,100.

How you know the fix is right

After normalizing, the density increase is 1.93× and it is stable across depth shallower than 7,000 m (1.81–2.28×). Roughly 800 beams against 432 is exactly what the two specifications predict.

It also killed a finding

An earlier draft reported a “resolution crossover at 3,500 m” where the EM304's density advantage collapsed. That was the dual-swath merge, not physics. Per swath there is no crossover of the kind the merge invented: the spacing advantage runs 0.95–1.94×, dipping just below parity only through 4,500–5,500 m. The corrected version is a better argument — the extra beams buy width, not resolution, and that is now true everywhere rather than only in deep water.

06

Pair 1:1, without replacement, greedy on depth

Each EM302 ping takes the nearest unused EM304 ping within 100 m of its depth and 50 km of its position. Achieved median separation within a pair: 1.9 m of depth and 9.2 km of ground, over 11,108 pairs.

Why a distance caliper, and why 50 km

Depth alone will pair a Hawaii EM302 ping against a Mariana EM304 ping. Without the caliper a quarter of pairs sit more than 1,000 km apart. The increase does not fall when distance is forced down — on the final pool, 1.546 at 50 km against 1.51 at 3 km (2,183 pairs, median 1.5 km apart) — so the wide caliper is the conservative choice, and a 6,000 km pair is not defensible on a poster anyway. 25 km was tried and rejected: it deletes the trench, where the two lines are 23–34 km (median 26) apart.

Without replacement matters more than it looks

Sampling with replacement lets one unusually wide EM304 ping be reused hundreds of times. The increase inflates and there is no visible symptom.

Greedy is fine, but prove it

With thousands of candidates per stratum the assignment is effectively saturated. Don't take that on faith — 03_match.py re-runs the match under eight shuffles and prints the spread. It is 0.006–0.014, so the shuffle does not matter.

07

Report both weightings, and lead with the curve

26% of the matched pairs fall in one 500 m stratum — 4,500–5,000 m, which happens to be where the increase peaks.

AggregationCoverage increase
Ping-weighted median1.74×
Each 500 m stratum weighted equally1.55×
By depth — what the poster leads with0.95× → 2.10×

Both aggregates are honest. Publishing only the first is the single easiest thing for a reviewer to attack, and they would be right.

08

Ask whether the swath was limited by signal, or held at a fixed sector

This is the diagnostic nobody had run, and it changed how four of the increase figures should be read. A swath limited by signal frays — outer beams win and lose the bottom ping to ping, so the achieved half-angle spreads over several degrees. A swath held at a fixed sector piles flat against an edge.

Per band: standard deviation of the achieved half-angle, and the share of pings within 1° of the band's 99th percentile. Sector-limited = pile ≥ 25% and sd < 2°.

No manufacturer sector is quoted here; this is what the archive achieved. Below 500 m of water the EM302's widest ping is 66.1° and not one of its 37,758 pings reaches 70°. The EM304 reaches 74.9°, with 339 pings at or above 70°. The 56 EM302 pings whose achieved half-angle exceeds 75° anywhere in the archive — past the system's own 70° maximum, which is itself the tell — all sit in 157–193 m of water on NA136, where outer-beam geometry is unreliable.
Bandsdpileverdict
EM304, 5,500–6,000 m0.93°86%sector-limited ~±34.5°
EM304, trench1.62°83%sector-limited ~±18°
EM302, everywhere2.2–6.5°<37%signal-limited

Where the EM304 holds a fixed sector the increase is a lower bound, not a measurement of the sonar. The archive clears the manufacturer's own comparison: Kongsberg publish a 75% swath improvement over the EM302 at 6,000 m and this archive shows 100% (8,113 against 4,062 m). But the absolute width is set by the sector, not by reach — at the observed ±34° the geometric maximum at 6,000 m is 8,083 m, and the archive sits within 0.4% of it. The swath stops where the sector stops, so a wider setting would have returned more.

What this does not establish — and an earlier draft said it did

The first version of this decision called the EM304 “setting-limited” and concluded configuration, not sonar. That was an inference from a pinned angle, not a measurement, and it is withdrawn. What is measured is that the ceilings step cleanly at the 5,000 and 7,000 m depth-mode boundaries — consistent with a mode's own angular limit or with a coverage angle set inside it. Separating the two requires the commanded coverage angle. That is now read on both sides — decision 11 — and the answer is that neither deep plateau is a commanded limit: the EM304's Max angle sat at 75° throughout, and the EM302's coverage sector was wider than its achieved swath wherever the deep plateaus appear. Where a commanded limit was restricting the swath, those pings are excluded. The deep finding therefore stands as sector-limited by the instrument rather than by the operator — but it still says what the swath did, not which mode parameter set it.

09

Bin the seafloor before you measure it

A slope facing the transducer returns a usable echo well past where flat seafloor stops, so terrain is the obvious alternative explanation. Slope and roughness are computed inside ±0.25 × water depth — the inner swath, so the measurement is not itself a function of how wide the swath got — on 16 fixed across-track bins.

Why binning is not optional

The EM304 puts about twice as many beams on the same ground. An unbinned residual would report the denser system as sitting on rougher seafloor, purely as a sampling artifact. MB-System's own C and c slope codes are per-beam and carry the same asymmetry, which is why the binned fit is done by hand.

Result: the unmatched imbalance is large and runs against the EM304 — its lines sit on steeper, rougher ground (slope 2.66° vs 0.69°, roughness 18.1 m vs 4.3 m). Matching it away changes the increase by under 8% in every band outside 1,000–2,000 m, and moves the two shallow bands up, by 27% and 45%.

The trap, and it caught me

The aggregate depth-only trench increase is 1.435 and the terrain-matched aggregate is 1.103, which reads as terrain halving the increase. It does not. The terrain filter also thins the deep bands where the increase is highest — 8,500–9,000 m drops from 20 pairs to 1 — so the aggregate comparison reads that re-weighting as a terrain effect. Compare band by band across any filter that changes the composition of the sample. Band by band the change is −2.8%.

10

Validate against something you did not compute

SourceTheir figureThis work
MAC NA177 SAT45° vs 32° in Very Deep44.3° vs 24.3° (4,700–4,900 m, n = 2,317 pairs)
Kongsberg EM304 MKIItypically 5.5× WD shallow–medium4.97× at 1,000–1,500 m, unrestricted
CCOM/UNH EM302 review4–5× WD near 1,500 m3.95× at 1,000–1,500 m, unrestricted
And one internal check that cost nothing

An earlier draft derived ship speed as area coverage rate ÷ median swath width and reported 8.6 against 8.5 kt — which is circular, since the area rate is built from the swath width. Measured properly from consecutive ping positions and times, the two eras ran at 7.58 and 8.40 kt. The EM304 era was about 11% faster.

That does not rescue “the two eras ran at different speeds” as an explanation of the coverage increase, because coverage ratio is per-ping geometry and speed cannot touch it. What it does change is the area-rate claim, which now factors honestly: 2.16× overall = 1.95× swath width × 1.11× speed.

11

Read the runtime records before believing any of it

A .kmall writes an #IOP datagram at file open and again whenever a runtime parameter changes; a .all writes Runtime Parameter datagram 0x52 on the same rule. Most viewers show only the first. One file in NA177 holds 24. Both archives were read, not just the new one.

# every IOP in every EM304 file, each diffed against the one before
python3 06_dump_iop.py NA177/*.kmall > NA177_all_iop.txt

# the EM302 equivalent: 0x52, validated on length + ETX before it is trusted
python3 07_dump_runtime_all.py NA136/*.all > NA136_all_runtime.txt
The scanner needs a sanity check or it lies

Scanning for the two-byte signature \x02\x52 finds about 1% false positives — the pair occurs inside other payloads. Validating the record length and the ETX at end−3 is not enough; the surviving impostors carry garbage timestamps. The reader also requires a plausible date and a time-of-day under 86,400,000 ms, which removes them.

This one rewrote a whole depth range

On 2026 May 29 the operator reduced Max coverage — an across-track limit expressed in meters — from 8,000 m to 900–1,900 m per side, twice, and put it back both times. Max angle stayed at 75° and angular coverage stayed in Auto all day. At the 1,480 m working depth a 900 m cap is 31°; predicted against measured half-angle agrees to a median 1.4° inside it across 3,249 pings, 94% of them within 2.0°.

The cap takes 35% of EM304 pings in 1,000–1,500 m and 34% in 1,500–2,000 m. Included, those bands read 0.77 and 0.72 — the legacy system apparently beating its replacement. Excluded, they read 0.95 and 1.55. The difference between those two posters is one parameter nobody thought to read.

And the legacy side was doing it too

The 0x52 records say the EM302's angular coverage sector was reduced routinely: 11 distinct settings across NA136 and 17 across NA171, narrowing to 19° on NA171 and 10° on NA172. 16.2% of all EM302 pings sat at whatever setting was reduced — 69% of pings in the 1,000–1,500 m band, 31% in 1,500–2,000 m and 30% in 5,500–6,000 m.

Excluding those too does not move the headline at all — 1.546 either way — but it moves 1,000–1,500 m from 0.84 to 0.95, and that band is the one a reader would quote. Even with both sides cleaned that band stays below 1.0. What is left there is not an operator limit the records can name; it is the EM304 being run at a narrow sector in four pings out of ten. The rule is symmetric: pings within 1.5° of the runtime parameter limit then set are dropped from both sides — 6,135 EM302 pings and 2,133 EM304 pings, leaving 31,623 and 17,047. A setting at the top of its SIS entry range — 75° of Max angle, or the full Max coverage — is the operator declining to restrict the swath and is not a limit; where a setting had been reduced, the angular and linear limits are both converted to a half-angle and the tighter one at that depth is taken as the runtime parameter limit. Only pings that actually reached a limit are dropped; a setting the swath stayed well inside is an upper bound, not a restriction, and those pings are kept.

Both extractors validate every field against physical limits before accepting a record. That matters: the superseded dump script, which scanned for a byte signature rather than walking the datagram chain, emitted 214 records carrying an impossible date and at least one carrying MAX_PORT_COV 63 → 162°. The chain walk never produces them. A second, independently written extractor was then replayed against the one used here: across the six EM302 cruises and NA177 the two agree at all 1,553 timestamps compared, with no disagreement (14_iop_crosscheck.py).

Why it hides

The cap is linear, so its angular effect scales with depth: 900 m is 31° at 1,485 m and would be 10.6° at 4,800 m. An analyst checking Max angle — the obvious field — sees 75° and concludes nothing was limiting. The deep-water plateaus are genuinely angular and pass a direct test: across the 34° plateau the achieved half-width grows 16% with depth while the half-angle holds within 1%. A linear cap would hold the meters fixed instead.

Running it

From raw files, or from the delivered CSVs

# full run from raw sonar files
bash 01_extract.sh
python3 02_reduce.py EM302 NA172 beams/NA172_valid.csv > pings/NA172.csv
python3 02_reduce.py EM304 NA180 beams/NA180_valid.csv > pings/NA180.csv
python3 03_match.py pings/NA172.csv pings/NA180.csv out/
python3 03_match.py pings/NA172.csv pings/NA180.csv out_terrain/ --terrain

# or check the published numbers with no raw data at all
python3 05_verify.py fig2_matched_pairs.csv
Rscript 04_figures.R <dir with the fig*.csv> figures/

Python uses the standard library only — no pandas, no numpy — because the machines this has to run on do not reliably have them. R is needed for the figures; the analysis is complete without it. 05_verify.py recomputes every published number and prints it beside the poster value, so agreement or disagreement is visible in one screen rather than taken on trust.

Limits

What this method cannot tell you

No BIST records and no matched SVP casts. Self-noise and sound-speed contributions cannot be separated from system performance. The 4.25 m datum separation at 4,840 m is reported as a measurement with a likely cause — about 0.7 m/s of harmonic-mean sound-speed difference — not as an attribution. A flat bias across the swath rules out a near-surface-gradient artifact, the classic smile or frown, but is entirely consistent with a mean sound-speed offset.

No sea-state covariate. Roll and pitch RMS from the attitude records would serve as a proxy and the raw files carry it, but it is a separate extraction.

n = 38 in the 3,500–4,000 m stratum, so nothing is pinned to it. The dual-swath transition is described as near the Very Deep boundary, 3,300–3,500 m, rather than at a single depth.

Physics is used as explanation, not as model. A constant-echo-level contour was fitted to predict achieved angle from depth and discarded: residuals ran −12° to +21°, because it ignores mode-dependent source level, pulse-length processing gain and the angular dependence of backscatter. The transmission-loss budget belongs in the caption, not on the axis.

Reductions in MB-System (mblist, mbinfo). Absorption from Francois & Garrison (1982). Specification and precedent from Kongsberg EM 304 MKII product documentation, the Okeanos Explorer EM304 and EM304 MKII sea acceptance reports, the CCOM/UNH E/V Nautilus EM302 system review, and IHO S‑44 Edition 6.2.0 (2024).

Companion to the poster. The two decisions marked as having gone wrong first are left in deliberately — a method is easier to trust when you can see what it caught.