I built a map to challenge the Mexican government's account of the Gulf oil spill. Putting vessel positions beside pipelines and satellite detections made the investigation easier to follow. It also exposed a problem with my own presentation: a vessel could move smoothly across the screen through an interval for which the saved file contained no positions.
The Árbol Grande sample has 108 position records spanning January 31 to March 29, 2026. Its largest gap is about 164.9 hours, nearly a week. The animation fills that interval by calculating positions between the saved points. When the question is where a vessel was during an oil spill, that distinction changes what the map can tell us.
My MexicoDev post explains the investigation. Here I want to make the evidence behind the map inspectable: what officials said, what the vessel file contains, and what satellite detections can support.
Start with the account that changed
The official account changed. The March 26 statement attributed the contamination to a vessel and natural seeps. On April 16, Pemex acknowledged a pipeline leak that its operational teams had repeatedly denied, along with repairs not reported to senior management.
Those statements establish the change in the official explanation. The map helps examine the surrounding locations and times. Keeping those jobs separate matters: a nearby vessel on a map cannot, by itself, explain a discharge or establish responsibility.
The Agents recording joins the repository's two original recordings with English narration. It first compares vessel positions, pipelines, and detections, then shows the radar view. The original labels and interpolated movement remain visible, so the footage should be read alongside the source records and dated statements. The narration transcript is also available.
What happened between the dots?
The 108 records and the 164.9-hour gap describe the saved arbol-grande.json extraction. They do not establish complete coverage of the vessel's Automatic Identification System (AIS), continuous anchoring, or a position throughout the missing interval. A gap in this file is a gap in this file; interpreting why it exists requires more evidence.
The frontend sorts each vessel's points by time. Between two points, it calculates how far the display time has progressed through the interval, then moves the dot by that fraction of the difference in longitude and latitude:
fraction = (display_time - time_0) / (time_1 - time_0)
longitude = longitude_0 + fraction * (longitude_1 - longitude_0)
latitude = latitude_0 + fraction * (latitude_1 - latitude_0)Halfway through the interval, the dot is halfway between the coordinates. That position comes from arithmetic. The formula constructs a straight path in coordinate space with constant progression; it supplies neither the actual route nor speed changes. Even a gap lasting more than six days can look like an uninterrupted journey.
The inspected helper hides a vessel before its first point. After the last point, it retains the final location for at most twelve hours. That is a display rule too. To interpret a screenshot, I need both the displayed time and the timestamps behind the position.
A stronger evidence view would distinguish saved points from interpolated segments and expose the gap duration when a reader inspects them. The downloadable sample already preserves the positions and timestamps separately from the animation. It lets someone check how much of the apparent journey the file actually records.
Global Fishing Watch describes activity events as algorithmic interpretations of received AIS data, with limitations in reception and classification. A missing interval alone does not establish deliberate transmitter disabling. Its data caveats are essential context before turning a suspicious-looking gap into an allegation.
Put the satellite image on its own clock
A radar detection is a candidate feature to investigate. SkyTruth documents lookalikes and false positives in its Cerulean guide, so I do not treat every polygon as a confirmed oil spill.
There is a second, less visible problem: the layers have different clocks. Moving a timeline slider does not necessarily acquire a new satellite image. I need the acquisition time of the image, the detection time of the polygon, and the observation or event time of the vessel record before calling them contemporaneous. Otherwise the map can place things next to one another that were observed at different times.
Spatial coincidence is useful for deciding what to examine next. Connecting a vessel, a pipeline, and a detection requires independently checked locations and times, uncertainty estimates, and corroborating evidence. Observing a surface feature and explaining its source are separate claims.
The repository's narrative files also use different dates for some events. I have not resolved that disagreement by choosing whichever date fits the argument. The quantitative findings here remain limited to the timestamped extraction. Claims about spill extent, coastal impact, and cause need their own verified evidence before they belong in a results table.
Make the transformation inspectable
The repository contains the processing scripts and saved vessel data. React and MapLibre draw the map, while an Express proxy keeps external API credentials on the server. Saved Global Fishing Watch extracts feed the vessel timelines; Cerulean detections and satellite imagery come through separate integrations.
That separation lets someone inspect a saved extraction without spending API calls or depending on a provider being available. It also tells us which parts of the view are reproducible from a fixed input and which depend on an external service:
Loitering events, port visits, and other records arrive in different shapes. The processing scripts normalize their timestamps and coordinates before grouping them into per-vessel timelines. Making the shapes consistent is necessary, but it doesn't make every point the same kind of observation.
The combined-track builder, dev/scripts/build-pemex-tracks.cjs, groups events by vessel SSVID, an identifier, and can emit the same event position at both its start and end. These are useful time anchors. They are not two independently observed locations. It also keeps one record per hourly key, with the selected record depending on processing order. That choice matters before treating the output as a measurement series.
Árbol Grande is excluded from that combined output because it has its own saved track file. The 108-record calculation applies to that separate file, not every vessel on the map.
Even coordinate validation deserves inspection. A truthiness check rejects zero latitude or longitude along with missing values. Zero is a valid coordinate, although this Gulf study area sits on neither the equator nor the zero-longitude meridian. A general-purpose version should validate finite numbers and geographic ranges explicitly. A narrow study area can leave that small programming assumption unnoticed until the code is used somewhere else.
Recompute the gap
The companion report records the source revision, file hashes, timestamp range, record count, largest gap, and calculation. Revision and hash serve different purposes here: the revision identifies repository HEAD at collection, while the hashes identify the inspected working-tree bytes. A later API request may return a different extraction.
Download data/showcase.json and run this with the Python standard library from the directory containing showcase.json:
import json
from datetime import datetime
from pathlib import Path
sample = json.loads(Path("showcase.json").read_text())
points = sorted(sample["points"], key=lambda p: p["t"])
times = [datetime.fromisoformat(p["t"].replace("Z", "+00:00"))
for p in points]
gaps = [(b - a).total_seconds() / 3600
for a, b in zip(times, times[1:])]
print(len(points), times[0].isoformat(), times[-1].isoformat())
print(max(gaps))The result is 108 records, from 2026-01-31T14:34:46+00:00 to 2026-03-29T23:15:25+00:00, with a maximum adjacent gap of 164.88333333333333 hours. The timestamps include timezone information, so subtraction compares instants rather than local clock labels. The calculated summary and source manifest preserve the input identifiers.
For an engineering review, I would follow each displayed position back through that chain. Which transformation changed this coordinate? Does this timestamp identify an observation or an event boundary? Which layer depends on a live service? Can the interface distinguish missing data from an absence of activity? Those questions determine whether someone else can assess the argument.
What the investigation can establish
Bringing these sources into one map made it possible to compare vessel records, infrastructure, and satellite detections along a timeline. The saved extraction and calculation give readers a way to challenge the presentation as well as inspect the investigation. In this sample, the most revealing number is the 164.9-hour gap: the interface can draw a journey through an interval that the file does not document.
The changed official account is supported by the dated Pemex statements. The saved vessel records support the reported positions, count, timestamp range, and gaps. Appropriately interpreted imagery supports observations about the surface at its acquisition time. Combining those sources helps identify questions worth investigating, but proximity and smooth movement cannot establish the cause of a spill.
I built the application because the government's account deserved scrutiny. That purpose also requires scrutiny of the application's own assumptions. A reader should be able to follow a claim back to the statement, record, or image that supports it, and see exactly where the evidence stops.
