# ROP second camera: the Nahant cam fused into Lynn Shore Drive at Nahant Circle (lane nahant:ansel)

Written 2026-10-25 by Claude Code (lane `nahant:ansel`) for BOS-Takeoff-Veillance `8ac6d87f`, on Stephen's ask "add nahant cam as second camera". It extends the first ROP product (note `rop-traffic-lynn-shore-nahant-circle_sje7k6du.md`; ROP bead `01a173e5`, orientation note sections 7, 16 and 19). It is for the 2026-10-31 internal demo to Yossi Matias.

All files are new except `collection.json`, which was updated additively: all 456 earlier Items and links are kept, and a backup was written first as `collection.json.bak-20261025`. No other lane's files were edited.

## Products (live)

- Fused viewer: https://stephenguerin.live/agents/8ac6d87f-3192-4fdb-a260-583dbee74291/artifacts/rop/lynn-shore-nahant-circle/index-fused.html
  - It has a camera toggle (fused / 8K / Nahant) and one time slider over the whole window, 15:53:25 to 15:59:34 UTC, with the 8K window marked.
  - Outside the 8K window, "fused" shows the Nahant cam alone, and the 8K toggle says it has no observation at that time.
- Verify page: https://stephenguerin.live/agents/8ac6d87f-3192-4fdb-a260-583dbee74291/artifacts/rop/lynn-shore-nahant-circle/verify/nahant-fusion_kz7w.html
- STAC Collection (now 1705 Items): https://stephenguerin.live/agents/8ac6d87f-3192-4fdb-a260-583dbee74291/artifacts/rop/lynn-shore-nahant-circle/collection.json. The new Items carry the property `camera`:

| Items | camera | count | covers |
|---|---|---|---|
| `items/yt-KziwCV7db9s/PT1S/` | `yt-KziwCV7db9s` | 369 | the whole DVR window |
| `items/yt-KziwCV7db9s/PT0.033S/` | `yt-KziwCV7db9s` | 440 | at the 8K frame times (`rop:matched_8k`, dt ≤ 17 ms) |
| `items/fused/PT0.033S/` | `fused` (`rop:cameras` lists both) | 440 | the 8K window; asset `source_map`, links `derived_from` to both source Items |

- The original 8K Items have no `camera` property. They are all `8k-ual414`, as stated in the Collection's `rop:cameras`.
- Assets are COGs on the same grid: 0.25 m, EPSG:32619, the cog.mjs writer.
  - `tiles-nahant/`, `thumbs-nahant/`, `visual-nahant/`: 399 MB of COGs.
  - `tiles-fused/`, `thumbs-fused/`, `sourcemap-fused/`: 299 MB of COGs.
- `stack-nahant_PT0.033S_kz7w.mp4`: the Nahant cam on the grid for the whole window, at its native 30 fps. 11,100 frames, 1660x336, 13 MB.
- `stack-fused_PT0.033S_kz7w.mp4`: 440 frames, 3320x672, 29 MB.
- `index-fused.json` is the viewer's index.
- Camera files are in `artifacts/rop/cam-yt-KziwCV7db9s/`:
  - `pose_kz7w.json` and `clock_kz7w.json`
  - `clock-road_kz7w.json` (the failed car check)
  - `aircraft_a0b846_kz7w.json` and `adsb-in-frame_kz7w.json`
  - `geometry-summary_kz7w.json` and the `render-stats-*` files
  - `osm/` (Overpass, ODbL)
- Code is in `artifacts/rop/tools/nahant-*_kz7w.mjs`:
  - `lib` is the camera with k1 and k2, using exact ECEF and Google 3D Tiles.
  - The others are `pose`, `adsb`, `aircraft`, `clock` (road), `clockfuse`, `road`, `fuse` (geom / nahant / fused), `stac`, `verify`, `verifypage` and `probe`.
  - All of it is Node, sharp and ffmpeg, with no Python.

## 1. Where the camera is

- Address: Ocean House Surf & Skate, 2A Wilson Rd, Little Nahant. Sources are OSM way 196420186 and Item Live, 2022-01-04. The Tides restaurant is at 2B Wilson Rd, in the same block.
- Solved position: **42.43700, -70.93660**, about 30 m north of the shop's centroid. That is the north end of the Tides / Ocean House building.
- Solved height: **9.6 m MSL** (EGM96, geoid −28.2 m at Nahant). That is hEll −18.6 m, or 9.87 m NAVD88, at about roof level; the 3D Tiles roof over the shop is 10.6 m.
- Uncertainty: about ±15 m horizontally and ±3 m vertically. These come from parabola fits of the render-and-compare score over 8 trial eyes (±30 m north, south, east and west; 4 heights). The score drops from 0.67 at the centre to 0.61–0.64 at ±30 m and to 0.52 at +12 m height.
- The camera looks across the bay, north to north-north-east: azimuth 347° to 28°. Nahant Circle is 2.26 km away, and the far end of the AOI 2.7 km.
- Datum: I first used −28.6 m (Boston). On the coordinator's note from the measurement lane I switched to **−28.2 m** (EGM96 at Nahant is −28.18) and recorded NAVD88 = hEll + 28.47 (`consts.mjs`). The geometry itself is ellipsoidal, so only the MSL label changed.

## 2. Pose (one pose for the whole window)

**Static.** I block-matched 62 frames, one every 6 s, on the shore band against their median. The median shift is −0.01 to +0.01 px in x and −0.04 to 0.00 px in y, so there was no pan, tilt or zoom.

| Parameter | Value |
|---|---|
| heading | **7.444°** |
| pitch | **2.722°** |
| roll | **−0.057°** |
| hfov | **40.66°** (0.0318°/px) |
| k1 | **−0.053** (mild barrel) |
| k2 | **+0.040** |

- Model: pinhole plus Brown radial, the pano-calib `model.mjs` convention, with the principal point at the centre. The camera frame is camera.mjs.
- Method: render-and-compare against Google Photorealistic 3D Tiles.
  - An equirectangular render from the eye, 0.025°/px. The leaf walk is split into 12° sub-views, because the tile walker's node budget otherwise drops the far shore.
  - Band-passed ZNCC against the 62-frame median, on the shore band (rows 380–470).
  - The render's near field (< 1.2 km) is masked: the tiles show low tide, the stream high tide.
- The automatic coarse search locked onto a wrong solution twice (heading 27–31°, hfov 28°; the skyline is self-similar). The final solve was seeded from 4 landmark correspondences I picked by hand on 4x crops: the radio mast, the yellow tower block, 300 Lynn Shore Dr and the Swampscott water tank.
- **Residuals:**
  - ZNCC 0.68.
  - 40 of 52 shore blocks (40x24 px) are within 3 px. Their RMS is **1.36 px (0.043°, 1.9 m at 2.5 km)** and the median is 1.28 px. The outliers are untextured sky and water blocks.
  - Named landmark, the Swampscott water tank (OSM way 1501150249, 5 km): −2.7 px.
  - Tracked object: UAL414's ADS-B track lands **−0.5 px** cross-track from its image at 18 km, in the top-right corner.

## 3. Clock: capture = ingest walltime − **0.60 ± 0.22 s**

Ingest walltime is the DVR segment `Ingestion-Walltime`, with video t = 0 at 15:53:25.789Z.

**Primary witness: UAL414 itself.**
- During the 8K window it is **not** in the Nahant frame. It passes 0.6–3 km from the camera at 14–50° elevation, above the frame top (+14.5°) or left of the frame.
- After its turn it **enters the frame at 15:59:28Z**, top right, 18 km away, about 3 px across. That is the last 7 s of the DVR.
- Shift-and-stack along its ADS-B track (adsb.lol trace_full, about 1 s fixes, GNSS height), projected through the pose, peaks at L = 0.60 s, 24x the robust scatter. The track appears as a white speck in every crop (`verify/nahant_ual414_kz7w.png`).
- 180 per-frame detections, fitted along the track, give **L = 0.601 s**. Per-frame sd is 0.076 s; the statistical error is 0.02 s.
- The σ also includes pose along-track error (0.09 s), ADS-B time and position (0.2 s), and half a frame.

**Overlay clock (check).** The burned-in seconds digit turns over at ingest fraction .489 of each second. If the camera clock is UTC, that implies 0.49 s, which agrees with the aircraft to 0.11 s. So the overlay clock is UTC to about 0.1 s, and it is a usable time-keeper (section 16) for any moment of this stream.

**Cars (asked for; inconclusive, not used).**
- Lynn Shore Drive in this 720p stream at 2.3–2.7 km has these limits:
  - A car is about 1 px across and about 0.3 px tall.
  - Cars are mostly hidden by the seawall line from a 9.6 m eye.
  - The H.264 encoder copies the static shore blocks: temporal energy on the drive rows is 0.05 grey.
- A 2D space-time cross-correlation of motion energy along the road (both directions; 8K locked stack against Nahant) peaks weakly at 3.9 s (ZNCC 0.16), with a second peak nearly as high. The jackknife σ is 7.6 s. That is noise, and it is recorded as such in `clock-road_kz7w.json`.
- The matched-time panels (`verify/nahant_pair_*`) show the 8K's moving objects projected into the Nahant frame, where they are not resolved.
- No other aircraft was detectable. DAL2004, N2468Y and CGYQY are predicted in the sky at 25–32 km, and all scored < 2.5x scatter. FFT1977 is never in the frame.

## 4. Fusion onto the same grid

**Per-cell geometry** (static camera, computed once):

| Quantity | Value |
|---|---|
| AOI cells in view | 100% |
| occluded from the Nahant eye | **36%** (DSM ray march, 1 m tolerance) |
| effective GSD | p10 **2.7 m**, p50 **13.2 m**, p90 **43.7 m** |
| cross-range GSD | 1.4 m |
| along-range GSD | p50 124 m, p90 1.3 km |
| incidence | 89.8° (grazing) |
| range | 2.26–2.69 km |

- The only fine cells are faces turned to the camera: the seawall and the building fronts (`verify/nahant_gsd-eff_map_kz7w.png`).
- The Nahant tiles therefore streak along the line of sight. That is the geometry, not motion.
- **Fused rule:** per cell, take the observation with the larger w = (0.25/gsd_eff)² · √cos(incidence) / (1 + (σ_pose/gsd_eff)²) · e^(−|Δt|/1 s).
  - The 8K term uses its gsd_eff, and σ = 0.26 m from the lock.
  - The Nahant term uses gsd_eff per cell, and σ = 0.043° × range.
- Result over the 8K window: **85.4% of cells from the 8K, 5.9% from Nahant, 8.7% none** on average. The Nahant share reaches 32% in the end frames, where the 8K covers only part of the AOI.
- The Nahant cam never wins where the 8K sees. It fills the 8K's out-of-view, occluded and cabin-window holes.
- The registration agrees: the seawall curve and the shoreline of the Nahant tiles lie on the 8K's (`verify/nahant_pair_*`).
- The Nahant cam is fixed, so its occlusion shadows are static. Any sweeping shadow in the fused tiles comes from the 8K tiles (coordinator's note; not separately masked here).

## What the second camera adds

1. **Time.** The 8K sees the AOI for 14.7 s (15:56:39.9–15:56:54.5). The Nahant cam covers **369 s** (15:53:25.2–15:59:34.5) at 30 fps, 25x longer, before and after the takeoff. It also has a clock good to 0.2 s.
2. **A second view.** It looks from the sea side, low and from the south-south-west, against the 8K's high view from the north-north-west. The two cameras fill each other's holes in the fused tiles.
3. **A calibration commons.** The overlay clock and UAL414 are time-keepers for this stream from now on. The Nahant pose makes it a fixed control camera for any other camera that sees the Lynn shore.

## Limits

- **Resolution.** The Nahant cam does not resolve traffic on the drive: effective GSD p50 13 m, about 1 px per car. Its tiles are context and coverage over time, not vehicle data. No car could be followed across both cameras.
- **Pose.**
  - The height is weakly constrained (±3 m). It affects the along-range placement of cells: about 1 m of height moves the drive's projection about 0.3 px vertically.
  - The pose rests on Google 3D Tiles geometry (2–4 m geometric error at the far shore) and a seeded solve. The automatic search alone fails on this skyline.
- **Clock.** The latency is measured 2.5 min after the 8K window, from an aircraft. It assumes the stream's latency is constant over 6 min. The overlay clock's agreement and the 5.000 s segment spacing support that, but do not prove it.
- **8K poses.** The fusion and the clock check read the 8K tiles and frame times from the current `b8k3t5` poses.
  - When the recalibrated `q4v9m2` poses (`bos-calib8k-poses/2`) are rendered into new 8K tiles, rerun `nahant-fuse_kz7w.mjs fused` and `nahant-stac_kz7w.mjs`.
  - `nahant-clock_kz7w.mjs` takes the poses file as an argument (it reads row f to utc).
  - The Nahant tiles do not change.
- **Hosting and licence.** The STAC was not schema-validated; one COG was opened with sharp, but GDAL was not rerun. The tile volume grew by about 700 MB. The YouTube frames are a public stream, used for an internal demo, and must not be republished without the owner's permission. The Google content is for internal demo use, as in the first product.

## Agent bus

- `#47` pose solved
- `#48` latency measured
- `#50` fusion done
