Coastal Traffic Authority

Strait movement observatory - 24 months (Jan 2025 to Dec 2026) - 60,000 deterministic synthetic movements, seed 0xC0A57

60,000 of 60,000 movements

Self-test

running…

12 aggregate checks: the incremental query engine is compared against a hidden reference block computed by a straightforward brute-force pass (full loops and full sorts). Tolerance: counts exact; means, percentiles and shares within 1e-9 relative. Four scale-math assertions: domain-to-range round trip, tick containment, bin coverage, sum identity. Bonus checks are informational and not part of the 16.

Self-test results: reference values, engine values, deltas and pass or fail
CheckReferenceEngineDeltaResult
Class
Months
Route

Movements by class, monthly

drag to brush months - arrows move - Enter pins - Esc clears

Destinations, ranked

click or Enter on a bar pins it - Esc clears

Speed over ground vs draught

drag to brush - arrows step records - Enter pins brush - Esc clears

Calendar, hour band by day part

click or Enter on a cell pins it - Esc clears

Speed over ground, distribution

arrows move bins - Enter pins speed range - Esc clears

Frame time, last 240 frames

measurement

About this dataset (static - readable without JavaScript)

This observatory covers a full 24 months (1 January 2025 to 31 December 2026) of vessel movements through a fictional strait. Every record is produced at page load by a seeded deterministic generator (mulberry32, seed 0xC0A57); the page contains no Math.random, no fetched data and no external resources, so opening the file from disk always yields the identical 60,000 records.

Records
60,000 movement events
Period
24 months, Jan 2025 to Dec 2026 (731 days)
Fields per record
timestamp (day and hour), vessel class, route, length overall, draught, speed over ground, destination port, queue minutes, anomaly flag
Physical model
larger vessels have greater draught and slower speeds; the deepwater bypass is used mainly by large vessels; ferries and workboats are small and fast; anomalies (about 1.5%) slow a vessel and multiply its queue time

Vessel classes (5)

  • Container - large, draught about 9-17 m, 11-16 kn
  • Bulk cargo - large, draught about 8-17 m, 8-14 kn
  • Tanker - large, draught about 8-21 m, 8-15 kn
  • Ferry - medium, draught about 3-9 m, 11-17 kn
  • Workboat - small, draught about 2-6 m, 4-9 kn

Routes (6)

  • North Channel - serves North Haven, Eastmoot, Ironmoor
  • South Channel - serves South Quay, Greylead, Westport
  • East Approach - serves Eastmoot, Sundew
  • West Approach - serves Calder Bay, Westport, Sundew
  • Deepwater Bypass - serves North Haven, South Quay, Calder Bay
  • Fairway Link - serves Eastmoot, Greylead, Ironmoor

Ports (8)

  • North Haven, South Quay, Eastmoot, Greylead
  • Calder Bay, Ironmoor, Westport, Sundew

Method

How the numbers and the visuals are computed. The self-test numbers themselves are reported live in the panel at the top of the page; this text is static and readable with JavaScript disabled.

Scale maths
Every axis is a linear scale: pixel = padding + (value - domain0) / (domain1 - domain0) x inner span. Ticks use the classic nice-number rule: a raw step = domain span / (target ticks - 1), snapped to a mantissa of 1, 2 or 5 times a power of ten (mantissa < 1.5 goes to 1, < 3 to 2, < 7 to 5, otherwise to 10), then the domain is extended outward to whole steps so every tick lies inside the plot and the domain-to-range map round-trips exactly. Colour is a two-endpoint Oklab interpolation: sRGB to linear to LMS to cube root to Oklab, and back through the inverse matrices, so the heatmap and the class ramp are computed in perceptual space rather than sampled, and only the single petrol family is used.
Binning rule
The histogram follows Freedman-Diaconis: bin width h = 2 x IQR x n to the -1/3, with k = ceil(range / h) clamped to 1-64 bins, and the IQR taken from order statistics of the currently visible records. When n < 8 or the IQR is zero it falls back to Sturges, k = ceil(log2 n) + 1. Edges are equally spaced from the minimum and the last edge is pinned to the maximum, so the bin counts always sum exactly to the visible record count. The active rule name, h, IQR and n are stated in the panel footer and updated with every filter change.
Index structure
Scatter tooltips use a 48 x 48 uniform grid over the fixed SOG x draught extent; each cell holds the indices of the records inside it. A hover starts in the pointer's cell and expands one Chebyshev ring at a time, stopping as soon as the ring's minimum possible distance exceeds the best candidate found so far (or the ring is empty). That is a handful of candidates in practice, never a linear scan of 60,000 rows.
Re-aggregation strategy
Each record stores its seven filter dimensions in advance. A state change builds one active mask and makes exactly one pass over all 60,000 records (the only full-dataset work per change), accumulating every panel: class x month totals, destination counts, day-part x hour-band cells, the scatter density grid and the histogram value buffer. Percentiles come from a quickselect order statistic, not a full sort. A panel is never filtered by its own dimension, so it shows the cross-filtered context instead of collapsing to a single value; active filters that touch a panel are tagged on its header.
Self-test results
Twelve aggregate checks compare the incremental engine against a hidden brute-force reference block: counts match exactly, and means, percentiles and shares match within 1e-9 relative. Four scale-math assertions check domain-to-range round-trip, tick containment on {1,2,5} x 10^k steps, histogram bin coverage and the sum identity (panel totals equal the full dataset). All 16 required checks pass on first load; the panel above shows the reference and engine values side by side with the deltas. Three further checks (empty-mask sanity, quickselect against a sorted 5,000-point sample, and deterministic regeneration) run as informational bonus rows.