Back to the overview
Deep dive

SailRouter in detail

Everything behind the simple surface: every feature, the science and mathematics of the routing, how the software is built, where the project is going, and the literature it stands on.

Your passage, planned in seconds

Your passage, planned in seconds

The route through the Sporades with the forecast wind drawn as flow, the Wind & Ocean layers on the right, nearby ships from AIS, and the summary right below.

Features

Every feature

Grouped by what they do for you on board. Cards marked New arrived in the latest releases.

Intelligence

The AI assistant that talks about your route in plain words, plus the tools that test how robust an ETA really is.

IntelligenceNew

LLM Intelligence Layer

Opt-in conversational pane about the loaded track and every computed route on it: "compare route #2 to route #4", "is this ETA fragile?", "why did that fail?". Anthropic Claude or OpenAI, keys and preferred provider set in Settings. It reads the route, the sensitivity sweep and a failed route's verdict with its ranked causes, can search a local library of sailing literature, and proposes changes as a diff card with Apply & recompute; nothing is applied silently. Everything it writes comes back in the language set in Settings. The same assistant explains your routing settings, an adaptive polar proposal, a passage in the Analyzer and the logbook narrative, each on request. Hidden when no key is set; the only part of SailRouter that sends data off the boat.

Analysis

Sensitivity Sweep

A deterministic ETA hides its fragility. Run sweep recomputes the passage nine times on a 3×3 grid (polar ±5 %, wind ±10 %) and gives a verdict, Robust, Moderate or Fragile by the spread of arrival times, an arrival window instead of one false-precision time, and how many cases never arrived. The full view draws all nine routes colour-graded by arrival, so you see whether they take the same road slower or split around an island or a front, with a comparison table, an arrival heatmap and a per-case TWS / TWA / boat-speed timeline. Sweeps are saved on the box. Off by default (about 9× compute).

Analysis

Reverse Isochrones

After the forward route reaches its destination, the same expander runs backwards from (dest, Tarrival). Each reverse isochrone shows where you would have to be at time t to still arrive on time; its intersection with the forward isochrones is the strategic envelope, how much room you have to deviate. Lets the navigator see which half of an ambiguous forward envelope is already a time-trap. Opt-in; roughly doubles compute.

Analyzer

Recording and the Analyzer: every passage replayed against your polar and the forecast, every manoeuvre timed, passages compared.

Telemetry

Live Recording

A Start in the Recording panel samples position, instruments and every loaded forecast model every 5 minutes on the box itself, so it keeps going when the browser closes or the tablet sleeps, and starting or stopping shows on every device within about a second. Record with a loaded track and the computed route is filed with the passage for plan against actual; record without one and you just name it. Each log keeps the boat setup, polar, sails and crew it was sailed with, so a charter box that has moved on still scores last month against the right polar. Log event adds a timestamped note, and any stretch of the 30-day raw instrument log can be imported as a 1 s trip log even if nobody pressed record.

Analysis

Analyzer Dashboard

Every trip log opens in the Analyzer on a dashboard: boat speed with the polar target, VMG, % of polar, true wind against each forecast model, apparent wind, wind angles, heading and COG, depth, heel and time under engine, all on one time axis. Beside them, the track coloured by BSP, SOG, TWS, % of polar, depth or heel, and a polar scatter over your polar's curves. One cursor drives all three. Drag across a chart to zoom and the stretch is fetched again at full detail, so a tack shows as a tack. Computed routes of the track are drawn in dashed. Drag card heights, reorder, hide or put track and scatter beside or below; the phone and the laptop each keep their own layout.

Analysis

Passage Debrief

The debrief reads a passage top to bottom from the log's own samples: data quality (sample rate, GPS jumps, heading taken from COG), boat speed as a % of the polar upwind, reaching and downwind and as a TWA × TWS grid, measured wind against the forecast (speed and direction bias and error), how far off the computed route you sailed and how many minutes ahead or behind its schedule, and the current you actually met, worked out from ground track and water track. Motoring, drifting and very light air are left out. Each section says plainly when it cannot be worked out, and why.

Weather

Which Forecast Was Right

The debrief ranks every weather model that covered the passage against the wind your instruments measured, best first: speed bias and RMS error, direction bias and error, how much of the passage it covered and when its run was downloaded. Bars compare the misses at a glance and two charts show when each model missed. A run downloaded after the passage started already knew the answer, so it gets a hindcast badge and is ranked after the real forecasts. The quickest way to learn which model to trust in these waters next time.

Analysis

Compare Passages

Compare logs lays two to six passages of this boat side by side against a baseline, by point of sail and wind band: % of polar, how far high or low of the best VMG angle you steered, how much the wind angle wandered on steady stretches, and tack and gybe time and loss. A log is only called better or worse where the gap is larger than the noise in its own data, so a neutral cell really is a draw. With three or more logs a season chart shows each measure over time.

Intelligence

Intelligence Summary

With an Anthropic or OpenAI key set, one button above every Analyzer view writes a short summary of the passage: an overview, what went well, where time was lost and what to try next. On a comparison it explains what changed between the logs and why. The model gets the debrief's findings, never the raw samples, names nobody, and writes in the language set in Settings. The summary is saved with the log and shown again until the findings or the language change; Summarise again writes a fresh one.

Routing engine

Two solvers (Hagiwara isochrone and grid A*) with shared physics, five comfort levels, a land-aware search that rounds your marks on the right side, a pre-flight check before every compute and a plain verdict after it.

ModesNew

One-Touch Routing Presets

Behind the five comfort levels sits a three-axis preset matrix so you never hand-tune a knob unless you want to. Comfort (1 to 5) owns performance factor, wave sensitivity, sail-change penalty, the night rule for the kites and the tack-stability strategy; water difficulty (1 to 5) owns land, reef and depth avoidance and tightens the time step for reef-strewn channels; distance is derived from the loaded track and sets granularity. Reset to presets clears every hand tweak. With an LLM key set, Explain these settings writes a plain-language paragraph on why they suit this boat, sail plan and passage, refreshed on request, hand changes included, and flags one that works against the preset.

Modes

5 Routing Modes

Comfort, Relaxed, Normal, Performance, Racing. Each level moves performance factor, wave sensitivity, current correction, the sail-change penalty (15 minutes on Comfort down to 3 on Racing), whether the kites stay up at night (levels 4 and 5 only) and the tack-stability strategy together, from a conservative cruise to a full-effort race. A racing level with a low-skill crew loaded gets an amber readiness warning.

Routing

Isochrone Weather Routing

Classical Hagiwara-style isochrone expansion with numpy-vectorised inner loops. Multi-leg routing, bearing-bucket pruning, configurable time steps and heading resolution. Roughly 5 to 15 seconds for a typical 150 nm coastal route with land avoidance on a Raspberry Pi. Bucket-geometry switch (sectors-around-seed when far, sectors-around-goal in the final 200 nm) handles both monotonic passages and obstacle-detour routes (Greenland, Cape Horn).

Routing

Land-Aware Search & Route Repair

The router measures the remaining distance over water, around the land rather than through it, so the search stops flooding bays and island dead-ends it can never sail out of and heads for the channel or bay mouth on its own. No string of hand-placed waypoints needed. Every finished route is then re-checked at full detail and any spot that clips an islet or a corner of the coast is re-routed with a short local detour, reported as Route repaired. Search guidance switches between automatic, classical distance and land-aware.

Navigation

Mark Rounding: Port, Starboard, Round

Any intermediate waypoint can carry a rounding rule: leave it to port, to starboard, or round it, with the side resolved to the wrap side of the turn. The rule is enforced on every algorithm and validated after the route is stitched together. Marks show a red P, green S or blue R badge with a dashed clearance circle; Rounding clearance sets the pass from 0.05 to 1 nm. If land blocks the side you asked for, pre-flight says so by name. Rounding rules survive GPX export.

Diagnostics

Pre-flight Checks & Live Compute

Before every compute a pre-flight window checks weather coverage, forecast horizon, currents and waves, the departure time, water route, waypoint roundings and the known settings traps (a coast margin that seals a channel, too few search steps for the leg, land avoidance off), each green, amber, red or grey. Stale weather can be computed anyway or refreshed. After Start the window shows the leg, step counter, miles to go and isochrones drawn, with Stop and View on map to watch the isochrones spread; the same progress stays in the Plan pane.

Routing

Route Results: Overview & Waypoints

A finished route saves itself onto the track and opens the result pane with two tabs. Overview spreads the summary (status, distance, duration, average speed, departure and ETA), the routing settings the route was computed with and the boat and ocean settings across the full width in larger type. Waypoints lists the route row by row (time, position, wind, heading, speed, sail), leaving out columns with nothing in them, and keeps the active row centred while you simulate. Beside it, a resizable routes list shows every run of the track with its model, mode, departure and duration.

Routing

Compare Routes on the Chart

Compute the same passage against different models or settings, then tick any set of runs in the routes list and they are all drawn at once, each in its own colour. Comparison lines are fine and sit on a faint halo that parts them where they cross, thickening a little as you zoom, so a dozen runs stay readable instead of merging into one heavy tangle. The loaded route stays bold on top. Labels read the model plus a compact settings summary, or your own route name.

Diagnostics

A Failed Route Names the Fix

A route that cannot be found does not just say failed. The panel gives the verdict (No way forward from here, Ran out of search steps, Forecast horizon reached...), how far it got (step, % of the way, miles short, with the partial route left on the chart) and ranked causes badged Likely, Possible or Note, each naming the setting, its value and a suggested one. Apply writes the fix, Open setting jumps to it, and the panel says when a value came from a preset. Same panel on the phone; the AI assistant gets the same verdict.

Routing

A* / Hybrid Solver

Pick the right solver per leg: Isochrone (Hagiwara wavefront, default for open ocean), A* (grid-based shortest path with wind / wave / current cost, best for coastal archipelagos), or Hybrid (auto-select per leg by coastal-vs-ocean classification). A* uses 0.002° (~140 m) cells with 16-neighbour connectivity by default.

Routing

Tack-Stability Strategies

Three pruning strategies for ocean upwind passages: classical (Hagiwara penalty-only), state-augmented (Sobieczky 2017, keys per (bucket, tack)), and shift-gated (Bethwaite tactical rule: only tack when the wind has shifted past a threshold). Shift-gated is the default on every comfort level, with a boat that has no way forward allowed to tack off the shore anyway. Suppresses noise tacking on steady trades without hard hysteresis.

Ocean

Ocean Crossing Mode

Time steps from 1 to 12 hours for transatlantic passages. Hybrid pruning switches from origin-based to destination-based within 200 nm. Adaptive heading fan narrows near the target.

Engine

Motor Fallback

When wind is too light to sail at any angle, the router switches to engine speed. Whole-field wind check prevents the engine from winning bearing-bucket pruning in sailable conditions.

Routing

User-Drawn Navigable Corridors

Draw a polygon on the map (e.g. a TSS-cleared lane through the Bonifacio strait, or the only deep-water gap in a reef) and the router treats it as guaranteed-navigable, bypassing the GSHHG coastline check inside the polygon. Persisted alongside tracks, toggleable per route.

Weather forecasts

Six global models plus the high-resolution ones that reach your water, wind drawn as flow, arrows or barbs, models compared side by side, and the corrections that take a 10 m model wind to masthead truth.

Weather

Multi-Source Forecasts

Six global models (GFS, ECMWF IFS, ECMWF AIFS, ICON, UKMO, GEM) plus the high-resolution regional models that cover the water you framed, downloaded for a box you draw on the chart so files stay small. Load several at once for comparison. Gusts come down with the wind; rain, thunderstorms, cloud, fog and lightning are optional variables. A per-source wind multiplier dials out a model's known bias. On a marginal link, a ready-made Saildocs request gets a GRIB by email. An optional background refresh keeps every loaded source, weather and ocean alike, current on a 6 / 12 / 24 h cadence, anchored to the age of the data on disk so it catches up after the boat has been offline.

Weather

High-Resolution Models, Only Where They Reach

Next to six global models (GFS, ECMWF IFS, ECMWF AIFS, ICON, UKMO, GEM) the Weather panel lists a High resolution here row with only the limited-area models that cover the water you framed: ALADIN 2.3 km and ICON-2I 2.2 km over the whole Adriatic, ICON-EU, ICON-D2, ICON-CH2, AROME Austria and France, ARPEGE, UKV, HARMONIE, MEPS and the Slovenian ALADIN. They resolve what a 25 km model smooths away, such as bora jets in the Velebit channel. A model that runs off your area is trimmed and says so; hover any model for a card on who runs it and how far it reaches.

Weather

Wind as Flow, Arrows or Barbs

Pick how the wind is drawn. Flow: a smooth colour wash by wind speed with streaks moving along the wind, for the shape of it at a glance (lulls, acceleration zones, the bend round a headland). Arrows: the same wash with bold white arrows sized by strength, readable in sunlight. Barbs: classic barbs in the wind-speed colour with the chart left clear. Arrows and barbs keep their spacing at every zoom, a colour-strength control sets the wash, and hovering anywhere reads the exact wind. Reduced-motion users get still streamlines.

Weather

Compare Models at Your Position

With two or more models loaded, Compare models opens a full-screen view of what each one says at the boat's position over the hours ahead: true wind speed and direction as one line per model, and a disagreement chart (strongest minus lightest forecast) hour by hour, on real clock times. A finger on any chart marks the same hour on all three. Where the lines agree the forecast is worth more; where they split, plan for either.

Weather

Model-Agreement Overlay

Two NWP models loaded for the same area disagree by exactly the amount the forecast is uncertain. A deterministic-only proxy for ensemble skill without paying for ensemble GRIBs. Renders per-cell |TWSA−TWSB| (or angular TWD divergence, wrapped to [0, 180]) as a translucent PNG. Picks A/B sources, swaps TWS / TWD metric, refetches on pan and time-slider movement.

Weather

Rain, Storm & Pressure Overlays

Wind is only half the picture. The same weather download can carry more fields, each its own toggleable layer: gusts as a colour wash from blue at 10 kt to red at 50 kt, rain (precipitation rate), thunderstorms (surface CAPE, how much instability the air is carrying) and isobars (mean sea-level pressure contoured with H / L glyphs at the extrema). Per-variable checkboxes keep the download small on a marginal sat link, and a layer greys out when the active model did not carry it.

Weather

More Data: Twelve Extra Layers

A More data tab in the Wind & Ocean panel adds wind against current, gust factor, squall risk, lightning, swell, wind sea, cloud cover, fog risk, surge, sea temperature, tide and tidal streams, each with its own legend. A layer is offered only once its data is on board, and otherwise names the download it needs. While a layer is on, hovering the chart reads its value for the selected hour. Gust factor, squall risk and wind against current are display aids worked out from the forecast; the router does not use them.

Weather

Global Windy View

The Global tab swaps the chart for Windy's animated world map, with a free Windy API key and internet. Pick Windy's layer (wind, gusts, rain, thunderstorms, temperature, pressure, clouds, waves, swell, currents and more), its model, isolines (pressure, geopotential, temperature, freezing level) and the animated particles. What is on offer follows your Windy key; the model in use is always named, and your choices are remembered on each device.

Calibration

Wind-Gradient Correction

NWP models report wind at 10 m; your polar is in masthead TWS. Without a correction every upwind passage is silently routed against 3–10 % less wind than the boat actually sees. Hellmann power-law boost v(h) = v₁₀ · (h/10)α with a stability-class selector (labile / neutral / stable α = 0.06 / 0.10 / 0.27) plus a per-source bias preset (GFS, ECMWF, OM_GFS, OM_ECMWF, OM_ICON) layered into the same TWS pipeline. Both solvers honour it identically.

Ocean & safety

Currents, waves, tides, coastlines, reefs, restricted areas and depth: the physical world the boat has to actually pass through.

Ocean

Copernicus Marine

Waves (significant height, period, direction, and the swell / wind-sea split) and surface currents from the EU Copernicus Marine Service, 9 km globally and automatically the 4.2 km hourly product when your area sits inside the Mediterranean. A third dataset adds sea temperature and surge for the map. Waves and currents are drawn over the chart and fed straight into the router as current drift and a wave penalty above a set height. Free account, set once in Settings; downloaded data works offline.

OceanNew

Tides & Tidal Streams

Outside the Med, the Copernicus currents carry almost none of the tide. A separate Tides & tidal streams download (Open-Meteo Marine, Météo-France model, about 9 km, hourly, up to 8 days, no account) brings tide height and the total surface current including tidal streams. The router takes its currents from it wherever it covers the whole route, so a foul tide at the headland is in the plan; the chart draws Tide and Tidal streams, and Wind against current becomes wind against tide. Heights are above mean sea level, not chart datum: not for pilotage.

Safety

Land Avoidance

GSHHG coastline polygons indexed with a spatial tree and sampled along every leg, with a configurable coast margin kept off the shore. Routes go around islands, not through them, and every finished route is re-checked at full detail and repaired around any spot that clips the coast. Waypoints on land are refused, and a leg that cannot reach the next mark over water is caught in pre-flight.

Safety

Reef & Restricted-Area Avoidance

Coastlines stop at the waterline: the danger underneath does not. Per-region OpenStreetMap pulls add natural=reef / shoal polygons and seamark:type=restricted_area zones on top of the GSHHG land check. Marked rocks, wrecks and obstructions are kept clear by a safety radius. Hard categories (military, no-entry, mariculture) block routing; advisory zones (anchoring- / fishing-prohibited) render for awareness but never block. A start-position exemption lets you plan out of an anchorage that itself sits inside a marked polygon, and a coverage-aware pre-flight dialog refuses to route through an enabled safety layer that has no cached data rather than silently failing open. Reef avoidance sits as a switch beside the presets: essential over reef-strewn water, and switched off it genuinely skips the work, so a passage with no reefs nearby computes many times faster.

Safety

Depth-Aware Routing

Reject route segments shallower than boat.draft + under-keel margin. Depth comes from the global ETOPO 2022 / GEBCO grid (about 450 m) and, in European seas and the Mediterranean, from EMODnet HD at about 125 m, which is preferred wherever it covers your area with the global grid filling in elsewhere. The same data draws labelled depth contours on the chart. The depth check knows where its data is coarse or missing, so it will not quietly wave a route through water it could not see.

Ocean

Across the Date Line

Passages over the 180° meridian work end to end: the weather downloads both sides of the seam, the router sails straight through it, and the chart, the logbook map and the wave and current overlays draw the passage as one continuous line. Tonga to Fiji included.

Diagnostics

Skip Land Avoidance

Wind-only simulation mode: the router draws straight through any obstacle. Useful for the classic "simulate without land first to see the wind-only optimum, then add corridors and exclusion zones" workflow, and for diagnosing "no route possible" complaints in tight archipelagos (if the wind-only run also fails, the constraint isn't land). Amber checkbox with a clear "never leave on for a real passage" warning.

Boat & polars

From imported and hand-edited polars and per-sail multipliers to sail changes that cost time, kites that come down at night, band-specific calibration and the adaptive polar the boat learns from its own passages.

Boat

Import Polars & Sail Plans

The Import tab of Polar & Sails takes a polar or a sail plan straight from the phone, tablet or laptop you are holding: tab-separated Expedition files and semicolon-separated qtVlm CSVs alike. Each file is checked before it is stored, nothing is replaced without asking, and importing never changes what the router uses until you press Use for routing. Sails a sailmaker's plan names but your database lacks can be added in one go. Browsing polars no longer switches the boat's polar either.

Boat

Sail Chart & Per-Sail Multipliers

Expedition-compatible .txt sail chart maps each (TWS, TWA) cell to a foresail (J1, G2, A2, …). The sails database carries a multiplier per sail so a well-trimmed asymmetric can lift the polar above book values where your actual inventory beats the VPP standard. The router applies the per-cell multiplier before wave degradation and gates the lookup by the motoring flag.

Boat

Kites Come Down at Night

A short-handed watch does not gybe a spinnaker in the dark, so on comfort levels 1 to 3 the route strikes the additional sails (anything typed spinnaker or code0) from civil dusk to civil dawn, worked out from the sun at the boat's position, and sails those hours under white sails. Levels 4 and 5 carry the kite through. A second switch keeps the kite in its bag by day too, for a tired or new crew. Type a Code 0 as headsail if you fly it like a big genoa.

Boat

Sail Changes Cost Time

At a crossover the sail chart might ask for the Code 0 one minute and the gennaker the next. The router keeps the sail that is up a little past the crossover (about 10° of TWA or 2 kt of TWS) and only changes when the new sail gains more than the time a change takes: 15 minutes on Comfort down to 3 on Racing, adjustable in Advanced settings. A change longer than the time step carries on into the next one, so the full time is always charged.

Boat

Drag-to-Edit Polar Diagram

Every polar grid point is a draggable handle. Pull a value up to model a stronger sail plan, push it down to calibrate to your actual boat. Save persists to the active .pol file; the router hot-reloads. Pairs naturally with the adaptive polar: manual edits are the prior; logged data refines it.

Calibration

Stratified Polar Derates

Crews underperform a published polar most in three regions: close-hauled (TWA 30–50°: leeway, fatigue, pounding), light wind (TWS < 8 kt: underpowered), and heavy wind (TWS > 25 kt: reefed, conservative trim). Three band-specific multipliers compose on top of the global performance factor; four one-click presets bundle them (None, Race crew, Cruising couple, Solo offshore).

Calibration

Adaptive Polars

The Adaptive tab re-estimates the polar from the boat's own recorded passages. A per-cell Bayesian update takes the published value as the prior and your samples as the evidence (a Matérn-5/2 GP over TWS and TWA where scikit-learn is present); true wind is reconstructed from masthead and log rather than the forecast field, and evidence is counted in half-hour windows so one afternoon cannot rewrite the grid. You get a coverage grid, a per-cell diff with sample counts and a confidence label, and the reason every rejected sample was dropped. Approve cell by cell: the fit lands in a new .pol and the active polar is never touched.

Racing

A panel of its own for the start and the beat: start timer, start line with line bias, up-down headings and wind shifts, full screen on a tablet or phone, and a debrief of the start, every leg and every tack afterwards.

RacingNew

Start Line & Best Start

Ping the committee boat and the pin as the bow passes them (the GPS fix is moved forward to the bow along the heading), or tap them in on a tablet. A real chart is turned so the line lies horizontal with the course side on top and the true wind beside it. Readouts give distance and time to the line (red when over), the line bias (favoured end and its advantage in metres) and a best start: the tack, the close-hauled heading and the crossing point near the favoured end, laylines drawn in.

Racing

Start Timer with Sync

Counts down to the gun from a 10 / 5 / 4 / 3 / 1-minute pick (amber in the last minute, red in the last ten seconds, green once started), then up from the start as time sailed. Sync, pressed on the committee's signal, snaps the countdown to the nearest full minute and starts it if it was stopped. One clock anchored to the wall clock sits in the title bar of every Racing tab, so it keeps running with the panel closed.

Racing

Up-Down Headings & Wind Shifts

A steering bar shows the live heading against the optimum on the current tack or gybe, filling green → amber → red as the boat falls off it, with the headings to steer on both tacks in large figures and the polar's maximum speed at the live wind beneath the boat speed. A wind-shift card regresses the last 10 minutes of TWD into veering or backing, how fast, how far since a resettable reference, and which tack it lifts. An optional bearing to the windward mark picks the favoured tack. Works on hand-entered wind when there are no instruments.

Racing

Race Debrief: Start, Legs, Every Tack

A log sampled every 5 s or faster opens its debrief with a race section: distance to the line at the gun, time to cross it, speed at the gun and the favoured end; each leg upwind, reaching and downwind against the polar's best VMG; every tack and gybe with its time back to speed and its loss in metres; and how much upwind time you sailed headed. Show in dashboard jumps to the moment, zoomed in. A 5-minute recording gets a High-res copy button that rebuilds it at 1 s from the instrument log.

Racing

Race-Ready Fullscreen

One button hands the whole screen to the race and holds it until Exit: no scroll, swipe or pull-to-refresh knocks it out mid-start. Added to a tablet's or phone's home screen, SailRouter opens with no browser bars, and on a phone the panel tightens to fit. The big-card Race data view with VMG and target speed lives in the same panel, open to the crew login too. Experimental.

Charts

Three map modes (online OpenSeaMap, offline NOAA NCDS pyramids or your own MBTiles, pure GSHHG coastlines when bandwidth is zero), shared by every screen aboard.

Charts

Three Map Modes

Online (OpenSeaMap + multiple base styles), Offline Charts (pre-downloaded MBTiles including the NOAA NCDS panels), and Coastlines Only (GSHHG polygons, zero internet). Labelled depth contours from the global ETOPO 2022 / GEBCO grid, or EMODnet HD at about 125 m in European seas.

Navigation

Course Line, Full Screen & Place Search

A dashed course line runs from the boat along its COG (or compass heading) to the edge of the chart, at any speed. A full-screen button folds the Plan sidebar and the results away and, where the browser allows, takes the whole window; Esc brings everything back. North-up or heading-up, a + Add waypoint mode for touchscreens, right-click to rename a mark or type its exact position, and an online place search that flies the chart to any harbour, island or strait.

Charts

NOAA Offline Chart Panels

46 NCDS regional MBTiles pyramids (NOAA's weekly-refreshed official S-57 renders) downloaded via a single click in the Offline Charts mode. SSE-streamed byte/percent progress; atomic .part rename so the tile-server scan never sees a half-baked file; once finished the panel auto-appears in the tile-set picker like any other MBTiles.

Charts

Bring Your Own Charts

Import .mbtiles uploads a chart bundle you already own and serves it from the box like the built-in downloads, on every device aboard. Open, unencrypted BSB / .kap raster charts are converted first with the supplied kap-to-mbtiles.sh helper. Chart sets can live in folders, and the picker shows them as a collapsible tree that opens on the chart you are using, so a library of a couple of hundred regional charts stays easy to scan.

Charts

One Chart Across the Boat

The base chart, the overlays, the active weather model and the chart or Windy view belong to the boat, not the browser. Change them at the nav desk and the tablet in the cockpit follows within about a second, with no reload, and the choice survives a restart. Zoom and pan stay per device, so the cockpit can sit on the pilotage while the nav desk looks at the whole passage.

Crew, instruments & UX

The everything-else surface: live instruments, the phone on deck, tracks and GPX, the printable logbook a recorded passage writes for itself, watch schedules, the guarded autopilot, and your own units and language.

Instruments

Live NMEA / Signal K

Position, SOG, COG, heading, true and apparent wind, boat speed and depth from NMEA 0183 over TCP, from a multiplexer or the Signal K server the installer sets up on the box. NMEA 2000 boats bridge in through a Wi-Fi gateway such as the Yacht Devices YDWG-02, documented step by step, and heading is read straight from Signal K when no heading sentence is on the stream. Three views: a large wind display, compact cards and analogue gauges. Each value is timestamped and flagged stale when its sensor goes quiet, and a red No live data warning shows when the feed or the fix drops. AIS targets with range and bearing, and radar echoes on the chart.

Mobile

Sailing Mode on the Phone

Under way, one tap turns the phone into a glanceable display: the chart centres on the boat with the loaded route, and a compact card compares the plan for the current leg with what you are sailing. Course against COG with the error and which way to steer back, planned boat speed against SOG, and the next tack or gybe with distance and time to go, each graded green, amber or red. Stray too far from the route and it shows your live figures alone; with no fix it says so in red.

Mobile

Phone View

Phones get a dedicated on-deck layout: a full-screen chart, a translucent strip with SOG, COG, AWS and depth, and everything else in a ☰ menu. The phone does the whole job: download weather and ocean data for the area on screen, drop and reorder waypoints, set mark roundings, and compute from the comfort, water and distance presets with the same pre-flight checks, then simulate from the route sheet. A failed route shows the same failure panel with one-tap Apply. Sailing mode, Race data and the watch schedule are one tap away.

Navigation

Distances Before You Route

Drop a few waypoints and the passage is there before any compute: a dashed direct line with the total and per-leg distances. A leg whose straight line would cross land is bent around the coast and flagged ⤳. Drag the grip beside a waypoint to reorder, drag a mark on the chart to move it, and edits stay Unsaved until you press Save changes. Save as keeps a copy under a new name, a crosshair brings the loaded track back on screen, and tracks sort A to Z in folders.

Storage

Tracks & Routes

A track is a planned passage (waypoints); each track holds any number of computed routes: different weather models, polars or settings. Tracks live in folders, sort A to Z, and keep edits as Unsaved until you save. Every route records how it was made (algorithm, model, time step, performance factor, tacking, coast margin, ocean toggles) and whether it reached. Recorded trip logs show up with the track they were sailed against, and the intelligence layer reads every route on it.

Storage

GPX & GeoJSON In and Out

Export a track or a computed route as GPX for OpenCPN, qtVlm, Garmin and most chartplotters, with the planning waypoints as a route (mark roundings kept) and each computed route as a track carrying time, boat speed and wind at every point, or as GeoJSON for mapping tools. Import GPX turns any file into a new track you can route with fresh weather. All on the box, no internet needed.

Telemetry

Automated Logbook

Turn any recorded trip into a print-ready A4 logbook, no hand-written entries. The header carries boat, skipper, from and to, departure and arrival and the log reading at departure; the event table is mined straight from the boat's own data: tacks and gybes, sail changes, motor on / off, wind shifts, depth alarms, waypoints reached, close-approach (CPA) rows from the raw AIS, and hourly stamps, each row with the distance run and the log reading. Times are in the boat's timezone. With an AI key it writes a passage report in your language. Every field is editable with Revert to auto one click away, and Confirm logbook fixes the boat name and skipper for good, so a printed sheet says on its face that it is final.

Crew

Crew Manifest & Watch Schedule

Named crew lists ("Atlantic delivery", "Race weekend") with role (skipper / crew / passenger), skill level 1 to 3, and date of birth, nationality, city of birth and passport number for the customs manifest, printable as a PDF. The watch generator builds a rotation from minimum on deck, shift length, a staggered change interval and a start hour: two watches for a small crew, on deck / standby / sleep for a larger one. A full-screen overlay shows the current and coming watches for the cockpit, and the schedule prints for below. Crew skill feeds a racing-readiness warning in Routing.

Instruments

Guarded Autopilot Channel

The one feature that writes to the boat, off by default behind a master switch set at install. When enabled, the Autopilot panel sends heading commands to an NMEA-driven pilot: Arm / Disarm with a bold warning, a course-up rose with commanded against actual heading, ±1° and ±10° buttons and the active waypoint's distance and bearing. A maximum heading change per command, a minimum interval and a watchdog that drops to standby when commands stop keep it conservative. Someone must always be ready to take the helm.

Navigation

Measure Tool

Click-to-measure nautical distances with per-segment readouts. Convert measurements directly into route waypoints. Multiple measurements can coexist on the map.

Simulation

Route Replay

Step through a computed route with transport controls. The wind overlay updates to the forecast at the boat's current time. Live conditions readout: TWS, TWD, TWA, boat speed, heading, position. Arrow keys step forward / back through waypoint rows.

Localisation

Your Units, Formats & Theme

Each device picks its own units for distance (nm, km, mi), speed (kn, km/h, mph, m/s), depth, wave height and temperature, a lat/lon format (decimal, degrees and decimal minutes, or DMS), a European or US date format independent of the language, the boat's IANA timezone, and a Light, Dark or System theme. Positions in the logbook and the download boxes follow your format, with S and W instead of minus signs.

Localisation

Five-Language Interface

The full UI ships in five languages: English, German, Italian, Spanish and French, switchable live without a reload. Every menu, panel, instrument label, route summary, dialog, the licence screen and the printable logbook, with sailing terms translated by hand rather than machine-literal. The handbook and in-app Help come in the same five languages, and everything the AI assistant writes comes back in the language you set.

Telemetry

Synthetic Trip Log

Deterministic generator that produces a 5-minute-interval "what actually happened" file from a computed route. Six axes of realism (Ornstein-Uhlenbeck wind drift, steering noise, leeway, residual current, crew-fatigue diurnal dip, sail-change speed dip), each seeded independently. Baseline for polar calibration, forecast-vs-actual diffs, and the adaptive-polar fit.

The box

Install, updates, licence, health: a small computer aboard serves every phone, tablet and laptop, updates itself from a signed channel, keeps its licence offshore, gives the crew a login of their own and tells you plainly when something is wrong.

System

Turnkey Raspberry Pi Box

SailRouter runs on a small box on board, a Raspberry Pi 5 first, and every phone, tablet and laptop opens it in a browser at sailrouter.local, nothing to install on them. Flash the SD-card image or run the one-line installer: the box serves the app over HTTPS with its own local certificate authority (install it once per device for a clean padlock, never expiring on a voyage), installs Signal K, and raises a wifi portal (comitup) when it cannot find a known network, so you pick the marina wifi from your phone with no app and no SSH.

System

30-Day Trial, Licence That Sails Offline

A fresh box starts a full 30-day free trial with one click: no key, no email, no account, every feature working (only applying updates waits for a key). A licence activates once with internet, then runs offline, re-checking about once a day when there is a connection and carrying on through a grace period of about 60 days offshore. Each key covers a number of device slots, typically two for a main box and a spare, and Deactivate moves a slot to a new box.

System

Signed Updates, From the App

Settings → Updates checks a signed release channel, downloads with a progress bar, verifies the signature and installs, narrating each step in plain sentences. Your boat, polars, tracks and logs are never touched. Installing and restarting are two clicks, so routing never drops out mid-passage: Restart app restarts SailRouter alone while instruments, wifi and Signal K stay up. The box's own operating system takes its security updates with every app update; a full upgrade is always your explicit click, with live progress, and a reboot is reported, never performed.

Crew

A Crew Login That Can't Touch the Boat

A second, shared crew login for whoever is on watch, off until the skipper sets its password. Crew see the chart, every live instrument, the Racing panel, the plan the skipper has open with its full results, the overlays, the watch schedule and the AI assistant. They cannot plan or compute, change polars or boat setup, download or delete data, open logs or touch the autopilot, and they see names and roles only, never dates of birth or passport numbers. Turning it off locks them out on their next action.

System

Data Usage & Health Check

The Data tab tallies the internet the whole boat has used since you last reset it, split by what used it: map and seamark tiles, overlays, weather, ocean and chart downloads, the AI assistant, updates and licence. Handy when the connection is a phone on a foreign SIM; tile sizes a server does not report are marked as estimated. The Health tab tests the box's services and endpoints green, amber or red, a clear status to hand to support.

Algorithms

Science and mathematics

This section documents the algorithms, mathematical methods, and scientific foundations underlying SailRouter. Each block links to the relevant references in the bibliography below.

  1. 01

    Isochrone Weather Routing

    The core routing algorithm is isochrone expansion, first applied to sailing vessel routing by Hagiwara [1]. An isochrone is the locus of all positions reachable from the origin within a fixed elapsed time. The algorithm expands successive isochrones forward in discrete time steps Δt until one reaches the destination, then backtracks the optimal path through the wavefront history.

    At each time step the current isochrone fans out candidate headings from every frontier point. For each heading, the wind field is queried at that (lat, lon, t), boat speed is looked up from the polar diagram at the resulting (TWS, TWA), and the new position is computed via geodesic forward projection. The candidate cloud is then pruned using bearing buckets: the angular space around a reference point is divided into narrow sectors (default 1°), and only one candidate per bucket is retained. The bucket geometry switches between seed-centered sectors when the frontier is far from the goal, and goal-centered sectors within the final 200 nm; the within-bucket keep-rule is "min distance to goal", which produces correct behaviour on obstacle-detour routes (Greenland, Cape Horn) where the classical "furthest from origin" rule collapses the frontier into an oscillation.

  2. 02

    Polar Diagram and Performance Modelling

    Boat speed is a function of true wind speed (TWS) and true wind angle (TWA). Published polars provide speed values at discrete grid points, typically TWS 4–30 kt in 2 kt steps, TWA 30–180° in 5 or 10° steps. The polar is symmetric about TWA = 0 (port/starboard symmetry), so only one side is stored.

    Between grid points, speed is estimated by bilinear interpolation in the (TWS, TWA) plane:

    v(s,a) = (1-t)(1-u)·v₀₀ + t(1-u)·v₁₀ + (1-t)u·v₀₁ + tu·v₁₁

    Below the polar's minimum TWS, linear extrapolation would overestimate boat speed; SailRouter uses a quadratic scaling v = v_min · (TWS / TWS_min)² to reflect the quadratic relationship between aerodynamic force and wind velocity. Real boats cannot point higher than a minimum TWA (the no-sail zone, typically 35–45°) or run dead downwind in a useful way (the no-run zone); both are enforced as multiplicative ramps tapering speed to zero at the boundaries. VMG optima are precomputed per TWS at load time by sweeping TWA at 1° resolution.

  3. 03

    Wind Field Interpolation

    Numerical weather prediction (NWP) models output wind on a regular lat/lon grid at discrete forecast hours. SailRouter supports GFS (NOAA, global, 0.25°, 3-hourly, 16-day), ECMWF open data (0.25°, 6-hourly), and Open-Meteo (aggregates ECMWF, GFS, ICON; area-limited). Wind at an arbitrary (lat, lon, t) is computed by trilinear interpolation: bilinear in space, linear in time. The u and v wind components are interpolated separately and converted to (speed, direction) after interpolation; interpolating speed and direction directly would produce incorrect results at the 360°/0° wraparound.

    GFS global data uses 0–360° longitudes; Open-Meteo area-limited data uses −180 to +180°. The wind field auto-detects the convention from the data's longitude array and converts query coordinates accordingly. Without this, queries at e.g. −63° in a −180/+180 Caribbean dataset would be misinterpreted as 297° and clamped to the wrong grid edge.

  4. 04

    Atmospheric Overlays (Rain, CAPE, Isobars)

    The same GRIB that carries the routing wind can carry three further surface fields, each decoded into its own overlay. Precipitation rate (PRATE, converted from kg/m²/s to mm/h) and surface CAPE (J/kg) are rendered as colour-filled cell tiles (rain at 0.1 / 0.5 / 2 / 5 / 10 / 25 mm/h, CAPE at 500 / 1500 / 2500 / 3500 J/kg), drawn server-side on transparent PNGs so they composite over any base map.

    Mean sea-level pressure (PRMSL, converted Pa → hPa) is handled differently: rather than filled cells it is contoured with the same contourpy machinery the depth isobaths use, producing clean isobar LineStrings at a fixed 2 hPa interval over the current viewport. The contour range is snapped outward to whole multiples of the step so the line set stays stable as the map pans, and local pressure extrema are detected and labelled with H / L glyphs in the marine-meteorology convention. Every field is independently downloadable via per-variable checkboxes, so a boat on a marginal satellite link can fetch wind alone and leave the extras off.

  5. 05

    Geodesic Calculations

    All distance and bearing calculations use the Vincenty inverse/direct solutions on the WGS84 ellipsoid [8], as implemented in pyproj (which wraps the PROJ library's implementation of Karney's algorithms [9]). This is exact to sub-millimetre precision for any distance on Earth, unlike the Haversine formula (which assumes a sphere and introduces errors up to 0.3 % over a 1000 nm passage) or flat-earth approximations (which break entirely at long distances or high latitudes).

    The direct problem (start + bearing + distance → endpoint) projects each isochrone candidate forward. The inverse problem (two points → distance and bearing) handles bearing-bucket assignment and destination convergence checks. Both are vectorised with numpy arrays for batch processing of thousands of candidates per isochrone step.

  6. 06

    Land Avoidance

    Land avoidance is the primary differentiator versus GWeatherRouting [10], which as of v0.3.6 (March 2026) draws routes straight through islands despite having callback hooks for land detection.

    Coastlines come from the Global Self-consistent, Hierarchical, High-resolution Shoreline Database (GSHHG), created by Wessel and Smith [5]. At startup all GSHHG polygons are loaded and merged into a single MultiPolygon via Shapely's unary_union. The merged geometry is prepare()'d: Shapely pre-computes internal spatial indices, dramatically accelerating subsequent point-in-polygon tests. An STRtree (Sort-Tile-Recursive R-tree, Leutenegger et al. [11]) indexes individual polygons for coarse spatial filtering.

    Testing exact line-polygon intersection on every candidate segment is too expensive. Instead, SailRouter samples 5 points along each segment: destination, then positions at 25 %, 50 %, 75 %, and the start. If any sample falls on land (via contains_xy on the prepared merged polygon), the segment is rejected. Performance: ~5 ms for 6,000 segments on the Pi 5.

  7. 07

    Reef and Restricted-Area Avoidance

    The GSHHG land check stops at the coastline, but the hazards a keel cares about extend well past it: drying reefs, shoals, and the military, no-entry, and mariculture zones that a chart marks but a wind field does not. SailRouter layers two more obstacle sources on top of the coastline mask, both pulled per region from OpenStreetMap via the Overpass API: natural=reef / shoal polygons, and seamark:type=restricted_area zones.

    Restricted areas are split into two classes by their OSM category and restriction tags. Blocking categories (military, no-entry, mariculture, and the like) are rejected exactly as land is: every candidate segment is sampled against the prepared polygon set indexed in its own STRtree. Advisory zones (anchoring- or fishing-prohibited) are rendered on the chart for awareness but never block a route; flagging them as hard obstacles would make large stretches of perfectly navigable water un-routable.

    Two design details keep the feature honest at sea. A start-position exemption detects when the departure point lies inside a reef or restricted polygon and exempts that one polygon for segments leaving it. Otherwise a boat anchored inside a marked zone could never plan its way out. And the obstacle check is coverage-aware: if a safety layer is enabled but has no cached data for the area, the router refuses to plan and surfaces a missing-data dialog rather than silently failing open and drawing a route straight through an unverified reef.

  8. 08

    Bathymetry (Depth Contours)

    Depth contours are extracted from the GEBCO 2025 global bathymetric grid [12] at 15 arc-second (~450 m) resolution. Regional subsets are downloaded via OPeNDAP from the CEDA THREDDS server. The contourpy library extracts isocontours at configured depth levels (5 m to 5000 m); the extraction is viewport-aware: grid subsampled to the current map span, output linestrings simplified via Douglas-Peucker before transmission to the frontend.

  9. 09

    Ocean Data: Copernicus Marine and Tides

    Ocean data comes from the EU Copernicus Marine Service [13] (free account), downloaded for the area you frame and kept on board, so it works offline. Three datasets are fetched:

    • Waves: significant wave height, period and direction, plus the split into swell and wind sea (global, 0.083°, 3-hourly).
    • Surface currents (global, 0.083°, 6-hourly). When the area lies entirely inside the Mediterranean, waves and currents switch automatically to the regional Med products at 4.2 km and hourly steps.
    • Sea physics: sea surface temperature and storm surge (global, hourly). This product is detided, so it shows surge, not the tide. It is drawn on the map only and does not enter the routing.

    Tides. Outside the Med the Copernicus currents carry almost none of the tide: at Brest a few centimetres of sea-level change where the real range is metres. A separate Tides & tidal streams dataset therefore comes from the Open-Meteo Marine API (Météo-France SMOC, 0.08°, hourly, up to 8 days, no account): tide height and the total surface current including tidal streams. Heights are above mean sea level, not chart datum, and not for pilotage.

    In the router. One rule picks the current source for a route: the tide-aware dataset wherever it covers the whole track, otherwise the Copernicus currents. The preflight check uses the same rule, so it never describes data the route then ignores.

    • Currents are applied as drift after each routing step: the current u/v at each isochrone point is multiplied by Δt and offsets the new position by geodesic projection.
    • Waves reduce boat speed with the significant wave height Hs: no penalty below a threshold (default 1.0 m), then a linear reduction (default 10 % per metre), never below 30 % of polar speed.

    On the map. Waves and currents are drawn as smooth overlay tiles (32 samples per tile, bilinear). The More data tab adds swell, wind sea, sea temperature, surge, tide, tidal streams and wind against current, which on a tidal coast becomes wind against tide. Hovering the chart reads the sea values under the cursor for the selected forecast hour, using the nearest sea cell close to the coast.

  10. 10

    Routing Modes

    A five-level routing mode selector balances speed against comfort and safety. Each mode adjusts performance factor, wave penalty, wave threshold, and the tack-stability strategy simultaneously. Cruising modes (Comfort, Relaxed) ship the Bethwaite shift-gated rule so noise tacking on steady trades is structurally impossible. Faster modes stay on Sobieczky's state-augmented pruning so they chase real shifts via the calibrated penalty alone. Ocean current correction is enabled in all modes, as it always produces more accurate routes.

    Sitting in front of the modes is a three-axis preset composer so the navigator rarely touches a raw knob. Comfort (1–5) owns the performance factor, wave penalty and tack-stability strategy; water difficulty (1–5) owns the land / reef / depth avoidance layer and carries a Δt factor that shortens the time step in reef-strewn water so the router threads channels at finer resolution; distance is derived from the loaded track's great-circle length and sets algorithm granularity. Crew is deliberately excluded as a routing axis (a skipper who selects racing knows what they are asking for) and feeds the manifest and intelligence layer instead. The three axes compose into one RoutingParams; when an LLM key is present, a /api/presets/explain call turns the composed settings into a plain-language rationale grounded in the boat's polar, sail plan, and named crew.

  11. 11

    Engine Fallback Logic

    When the wind is too light to sail, the router must decide whether to motor. This is a whole-wind-field decision, not a per-heading one. The algorithm sweeps TWA from 35° to 165° and computes the maximum attainable polar speed at the current TWS. If this maximum is below min_sail_speed_kt, all candidates at that position receive engine_speed_kt.

    This design prevents a subtle bug: if engine speed were assigned per-heading, an engine candidate at 5 kt could beat a marginal sail candidate at 4.7 kt in bearing-bucket pruning, even though the boat can clearly sail. The whole-field check ensures the boat only motors when it truly cannot sail at any angle.

    The engine fallback is not available in Race mode: racing under engine is not racing. If you want to disable the fallback in any other mode, set min_sail_speed_kt to 0. The router will then sail through every wind condition without ever switching to motor.

  12. 12

    Tack-Stability Strategies

    Naive bearing-bucket pruning produces "noise tacking" on long upwind legs in steady wind: the bucket-quantisation tiebreaker flips port and starboard candidates from one iteration to the next, generating a route that crosses the rhumb line dozens of times. SailRouter ships three pruning strategies that progressively address this:

    • Classical: Hagiwara [1] with a Modified Isochrone Method heading-change penalty [16]. Retained for A/B.
    • State-augmented: Sobieczky 2017 [15] adds the boat's tack to the search state and keys the per-bucket slot by (bucket, tack). Within-bucket score is dist_to_goal + flip_count × penalty_nm × factor, cumulating the per-step penalty along the chain so a thrashing chain loses slot battles to one that commits to a tack. Default for Normal, Performance, and Racing.
    • Shift-gated: Bethwaite 1996 [18] layered on top of state-augmented: a tack candidate is rejected pre-pruning when the new TWD is within tacking_shift_threshold_deg of the parent's entry-of-tack TWD. A two-clause tactical-layline exemption preserves the ability to tack onto the layline. Default for Comfort and Relaxed.
  13. 13

    A* and Hybrid Routing

    Isochrone routing dominates open-water passages but struggles in dense archipelagos: bearing-bucket pruning collapses near a tight channel, and the heading fan can overshoot a narrow gap that the next iteration can't recover. SailRouter ships a second solver, A*, that operates on a fixed lat/lon grid (default 0.002° ~140 m, 16-neighbour connectivity) with edge cost = leg time computed from polar + wind + wave + current at the cell midpoint. The result is competitive with isochrone in coastal scenarios while being structurally immune to the bearing-bucket failure mode.

    A* cells flagged as land by GSHHG can be overridden as navigable when bathymetry shows charted depth above boat.draft + safety_margin; this lets the router use dredged channels and other deep cuts that the coastline polygon doesn't know about. The Hybrid mode classifies each leg as coastal or ocean (by total distance and proximity to the GSHHG mask) and dispatches to the better solver per leg.

  14. 14

    Reverse Isochrones (Strategic-Envelope Analysis)

    Forward isochrones answer "where can I be at time t?". Reverse isochrones answer "where would I have to be at time t to still arrive at destination on time?". The intersection of the two at the same instant is the strategic envelope: positions that are both reachable AND on-time. Practitioner manuals single this out as the navigator's central interpretive aid when forward routes are ambiguous, e.g. a north-of-Azores-high vs south-of-Azores-high decision is often a near-tie on the forward view; one of the two will sit outside the reverse isochrone and is therefore already a time-trap.

    The forward expander is parameterised by a small config dataclass with three direction-specific knobs: time_step_sign (±1), fan_reference (dest forward, origin reverse), and projection_bearing_offset_deg (0° forward, 180° reverse). Everything else carries over. Bethwaite's shift-gated rule is force-disabled in reverse, as its layline check has no defined semantics in time-reversed space.

    Looking ahead: LSTM neural networks. The strategic envelope is the first place a learned sequence model earns its keep in SailRouter. We are prototyping an LSTM (long short-term memory) network that consumes the time-series of forward and reverse isochrone snapshots and predicts which side of an ambiguous fork collapses first, the same call a human navigator makes when reading the envelope, but at every Δt step and across a fleet of historical passages. The LSTM is the first neural component in the engine: a deliberate, narrow integration that establishes the training-data plumbing that the adaptive polar's Bayesian GP already uses, and the later racing-tactics modules.

  15. 15

    LLM Intelligence Layer

    The intelligence layer is a streaming conversational pane that knows about the active track, every computed route on it, the boat, the crew, and the bibliography. Two peer providers are supported, Anthropic Claude and OpenAI, selected via environment (SAILROUTER_LLM_PROVIDER overrides; otherwise Anthropic wins when both keys are present, falling through to OpenAI). One BaseLLMClient Protocol abstracts the two SDKs; tool definitions live in a single provider-neutral place and a small adapter translates them to each SDK's tool-call wire shape.

    On every user message the backend assembles a JSON brief that carries the active BoatConfig, the first-found CrewDetail, a one-line headline per route on the track (routes_summary), and a downsampled view of the currently-selected route's waypoints (with any non-zero-risk waypoint preserved). The system prompt prepends the eight domain skills/*.md bridge docs and frames the assistant as a sounding board (never the safety authority), so the model has the same vocabulary the engine uses.

    Three tools turn the chat from a static Q&A into a working assistant:

    • search_literature: local vector RAG over the bibliography via sentence-transformers MiniLM-L6-v2 embeddings and brute-force cosine match on a numpy-backed SQLite index. The index is built locally; only the conversation needs internet.
    • get_route_brief(route_id) / get_full_waypoints(route_id?): per-route drill-down. The headline summary already tells the model which routes exist on the track; these two tools pull the full parameters, totals, risk counts, and un-downsampled waypoints for any route the navigator wants compared.
    • propose_parameter_changes: the model proposes a diff of boat config and routing-knob values; the frontend renders the diff as a card with Apply & recompute, which merges the proposal and fires the same compute path the Plan panel uses. The model never silently mutates state.
  16. 16

    Sensitivity Sweep: ETA Fragility

    A deterministic forward route reports a crisp ETA, the navigator commits to it, and the actual arrival arrives hours or days later because the forecast or the polar was wrong by a couple of percent, a particularly quiet failure mode of single-shot routing. The fix is to compute the same passage against a perturbation grid and look at the spread.

    compute_sensitivity_sweep runs the route nine times against a 3×3 grid: polar performance ±5 % (additive) and wind speed ±10 % (multiplicative). The centre cell (0, 0) reproduces an unperturbed compute_route exactly. The reported distribution is min / median / max / p10 / p90: narrow spread means the route is robust; wide spread means the ETA is a gamble. Cost is ~9× a single route, so off by default.

  17. 17

    Wind-Gradient and Per-Source Bias

    NWP models output wind at the standard 10 m reference height; published polars are specified in masthead TWS. The boundary-layer profile is approximated by the Hellmann power law:

    v(h) = v₁₀ · (h / 10)α

    where the exponent α depends on atmospheric stability. SailRouter ships a three-class lookup (labile α=0.06 for unstable mid-day air, neutral α=0.10 for trade-wind defaults, stable α=0.27 for nocturnal inversions). Both the isochrone expander and the A* edge-cost apply the boost identically.

    Models also have systematic regional biases: GFS routinely runs 5–10 % low in the trades and the Med; ECMWF sits closer to ground truth; ICON falls between. A single multiplicative knob wind_source_bias (preset table: GFS 1.05, ECMWF 1.00, OM_GFS 1.05, OM_ECMWF 1.00, OM_ICON 1.03) is applied immediately after the mast-height boost:

    pt_tws *= mast_boost · source_bias · sweep_multiplier
  18. 18

    Model-Agreement Overlay

    Ensemble GRIBs are bandwidth-expensive and not always available. When two deterministic models are loaded for the same area, their disagreement is the forecast uncertainty, a cheap proxy for ensemble skill that works with what the boat already has on disk.

    Two metrics are supported:

    • TWS: scalar |TWSA − TWSB| in knots.
    • TWD: angular |TWDA − TWDB| wrapped into [0, 180]° so the 0°/360° seam behaves (TWD 10° vs 350° = 20° divergence, not 340°).

    Frontend ships a Display-panel block with enable toggle, A/B source pickers, TWS / TWD metric radios; MapView adds the raster image-source below the wind-barb arrows so barbs stay legible. Refetches on viewport pan, source pick, metric switch, and forecast-time slider movement.

  19. 19

    Stratified Polar Derates

    A single global polar_performance_factor is one number for the whole polar, but real-world degradation is not uniform. Crews reliably underperform a published polar most in three regions:

    • Close-hauled (TWA 30–50°): leeway, helmsman fatigue, pounding.
    • Light wind (TWS < 8 kt): underpowered, hardest to extract polar speed.
    • Heavy wind (TWS > 25 kt): reefed canvas, conservative trim, sail-damage avoidance.

    Three additional multipliers layer on top of the global factor multiplicatively, each gated to its own band. Four presets bundle them for one-click load: None, Race crew, Cruising couple, Solo offshore. A single shared _apply_stratified_derates helper is consumed by both the isochrone expander and the A* edge-cost computation so the band semantics never drift between solvers.

  20. 20

    Bayesian Adaptive Polars

    Published polars are theoretical optimums produced in calm water, flat seas, and ideal sail trim. Real-world performance is 70–90 % of published values due to sea state, current, hull fouling, crew fatigue, and trim. The gap between theoretical and actual performance is where races are won and passages are planned badly.

    The adaptive polar learns a corrected polar surface from the boat's own recorded passages. Two estimators are implemented. The default is a per-cell Bayesian update (the published value as the prior, the boat's own samples as the evidence), which is numpy-only and therefore runs on every install, including the shipped binary. Where scikit-learn is present, Gaussian Process regression [6] over the (TWS, TWA) domain is selectable: the kernel is a product of Matérn-5/2 covariance functions [14] over TWS and TWA, which produces smooth but not infinitely-differentiable surfaces, a good match for polar behaviour. On synthetic passages built from a known polar the two agree to within 0.05 kt. The posterior spread is what drives the per-cell confidence label in the panel, and it is the same quantity risk-aware routing will use to penalise segments that pass through thinly-evidenced regions of the polar space.

    Three sources of confidently-wrong fits are handled explicitly. True wind is reconstructed from the boat's own masthead and speed log rather than read from the recording's wind field, which holds forecast wind when a GRIB was loaded and apparent wind when none was. The boat's performance factor is divided out before comparison, because the router multiplies it back in at lookup time and approving a fit would otherwise apply the measured shortfall twice. And evidence is counted in half-hour windows rather than 5-minute samples: an hour on one point of sail is twelve readings of one set of conditions, not twelve independent trials. Cells with too little data are left exactly as published.

    Observational sailing data also has a fundamental causal problem: the helmsman steers to favourable TWA because conditions are favourable, inducing selection bias. That is the next layer, using Pearl's do-calculus framework [7]: wind-stability filtering, propensity weighting, steering-policy modelling, and stratification by confounders.

  21. 21

    Stochastic Routing (Planned)

    Deterministic routing assumes the weather forecast is correct. In reality, forecasts diverge from observations as the horizon lengthens, particularly beyond 72 hours. Philpott and Mason [2] introduced stochastic routing for yacht racing: instead of a single forecast, the router considers an ensemble of possible weather scenarios and optimises for expected performance across the distribution. When ensemble GRIB data is available (GFS ensemble or ECMWF ENS), the router can compute routes against each member and characterise the distribution of passage times.

Under the hood

Architecture

SailRouter is a client-server system. A Python daemon (sailrouterd) runs on the boat's computer and serves a Vue 3 web app to any browser on the boat's network. Everything runs in a single process: no separate web server, no database, no container runtime.

module tree
sailrouterd (Python 3.12, FastAPI, uvicorn)
 |
 +-- api/              HTTP handlers (the wiring layer)
 |   +-- routers/           Per-domain APIRouter modules
 |   +-- models.py          Pydantic request/response schemas
 |   +-- tiles.py           MBTiles raster tile server
 |   +-- overlay_tiles.py   Copernicus PNG tile renderer
 |
 +-- engine/           Pure domain logic (no HTTP, no I/O)
 |   +-- router.py          Isochrone weather routing solver
 |   +-- astar.py           Grid-based A* / hybrid solver
 |   +-- dispatch.py        Coastal-vs-ocean leg classifier
 |   +-- polar.py           Boat polars + no-sail/no-run zones
 |   +-- sail_chart.py      Sail crossover chart + per-sail multipliers
 |   +-- grib.py            GRIB/NetCDF wind field loading
 |   +-- land.py            GSHHG coastline avoidance
 |   +-- geo.py             Geodesic math (pyproj Vincenty)
 |   +-- bathymetry.py      GEBCO depth contour extraction
 |   +-- copernicus.py      Copernicus Marine downloader
 |   +-- weather_store.py   Multi-source weather manager
 |   +-- model_agreement.py Forecast-confidence overlay renderer
 |   +-- open_meteo.py      Open-Meteo area-limited API
 |   +-- sensitivity.py     3x3 ETA-fragility perturbation sweep
 |   +-- trip_log.py        Synthesised passage telemetry generator
 |   +-- noaa_charts_download.py  NOAA NCDS MBTiles fetcher
 |   +-- places.py          Curated place label index
 |
 +-- intelligence/     LLM intelligence layer (opt-in, online)
 |   +-- context.py         Per-turn JSON brief assembly
 |   +-- tools.py           search_literature / route briefs / propose
 |   +-- anthropic_client.py + openai_client.py  Peer SDK adapters
 |   +-- literature/        Local sentence-transformer RAG index
 |
 +-- nmea/             Instrument data pipeline
 |   +-- manager.py         TCP client orchestrator
 |   +-- parser.py          NMEA sentence dispatcher
 |   +-- state.py           Per-field timestamped state
 |   +-- autopilot.py       Course-up steering control
 |
 +-- storage/          Persistence (JSON files)
 |
 +-- config.py         All constants and paths
 +-- main.py           Entry point

Key rule: engine/ imports nothing from api/ or storage/. Every engine module can be tested in isolation with synthetic data: no HTTP server, no filesystem, no network.

Raspberry Pi 5 performance

Cortex-A76 quad-core 2.4 GHz, 8 GB RAM, 64-bit OS. Every performance-critical path is engineered for this hardware.

OperationTimeNotes
Startup~8 sGSHHG load + unary_union dominates
80 nm route (Adriatic)~3 s15-min steps, numpy vectorised
150 nm route (offshore)~5–8 sOpen water, larger isochrones
Land check batch~5 ms6,000 segments, 5-point sampling
Wind grid query20–50 ms40×40 grid, xarray interp
GRIB load1–2 sPer forecast step file
Tile serve<1 msSQLite indexed lookup

Technology stack

RuntimePython 3.12+
Package mgruv
HTTPFastAPI + uvicorn
ModelsPydantic v2
GRIBcfgrib + xarray
GeometryShapely
Geodesicspyproj
Numericsnumpy
Contourscontourpy
RenderingPillow
NMEApynmea2
Ocean datacopernicusmarine
LLM clientsanthropic + openai
Embeddingssentence-transformers
FrontendVue 3 + TypeScript
BuildVite + Tailwind CSS
MapMapLibre GL JS
Lintingruff + eslint
Typespyright + vue-tsc
Where it's going

Roadmap

The whole arc of the project: what has shipped, and what comes next. Version 1.0 shipped in November 2026 as the Raspberry Pi Edition.

  1. Q1 2026

    Routing engine

    Shipped

    Isochrone solver with land avoidance, polar interpolation, multi-source GRIB ingestion, and the first Vue 3 client.

    • Hagiwara isochrone with bearing-bucket pruning
    • GSHHG + Shapely STRtree land avoidance
    • Bilinear polar interpolation + VMG optima
    • GFS / ECMWF / Open-Meteo download pipeline
  2. Q1 2026

    Two-solver engine + ocean physics

    Shipped

    A* grid solver, hybrid leg dispatch, Copernicus current/wave overlays, depth-aware routing, sail chart + per-sail multipliers.

    • Grid A* with 16-neighbour cells, hybrid coastal-vs-ocean dispatch
    • Copernicus Marine wind / wave / current
    • GEBCO bathymetry rejection + bathymetric land-override
    • Expedition-compatible sail chart with per-cell multipliers
  3. Q2 2026

    Intelligence, sensitivity & calibration

    Shipped

    Shipped in v0.4alpha: LLM intelligence layer, sensitivity sweep, model-agreement overlay, stratified polar derates, wind-gradient correction, NOAA chart pyramids.

    • Anthropic + OpenAI peer providers with literature RAG
    • 3×3 ETA-fragility sweep and forecast-skill bands
    • Hellmann power-law wind gradient + per-source bias preset
    • NOAA NCDS MBTiles distribution wired into the tile-server
  4. Q2 2026

    Reef avoidance & on-boat security

    Shipped

    OSM reef and restricted-area avoidance layered on top of the GSHHG land check, plus the access-control layer that keeps the boat's data behind a login.

    • OSM reef / shoal polygons added to the segment-rejection sweep
    • Restricted areas (military / no-entry) hard-blocked; advisory zones rendered only
    • Start-position exemption + coverage-aware fail-closed routing
    • JWT login, bcrypt credentials, in-memory signing secret invalidated on restart
  5. Q2 2026

    Recording & automated logbook

    Shipped

    Server-side passage recording and a print-ready logbook mined straight from the boat's own data, with no hand-written entries.

    • Background recording samples NMEA + forecast wind; survives browser disconnects
    • A4 logbook from tacks / gybes, sail changes, motor on-off, CPA rows and hourly stamps
    • Instant event logging captures a full boat-state snapshot with a comment
    • Every field editable (header, entry rows, narrative), with one-click revert to auto
  6. Q3 2026

    Adaptive polars

    Shipped

    Shipped in v0.9.2: the boat re-estimates its own polar from its own recordings and hands the skipper a per-cell diff to approve. Published polars are optimistic by 5–15% in real conditions. This closes that gap with your own sailing instead of a consultant's guesswork.

    • Per-cell Bayesian update (published polar as prior, own passages as evidence); Matérn-5/2 GP where scikit-learn is present
    • True wind reconstructed from masthead and log, not the forecast field; evidence counted in half-hour windows
    • Coverage grid, per-cell confidence and rejected-sample reasons; thin cells left at published values
    • Approve cell by cell: the fit lands in a new .pol and the active polar is never overwritten
  7. Q3 2026

    Nineteen forecast sources, coverage-aware

    Shipped

    Shipped in v0.9.2: the weather catalogue grew from four global models to nineteen, including the high-resolution national runs, and the picker now offers only the models that actually cover the water on screen.

    • ALADIN at 2.3 km from Trieste to Dubrovnik and on into Greece, the model for the Velebit bora jets
    • High-resolution national grids over Italy, the Alps, France, Britain, the North Sea and Scandinavia
    • Coverage filtering: a model that does not reach your area is never offered, so no forecast comes back with holes
    • Mediterranean wave and current products at 4.2 km, hourly, picked automatically inside the Med
  8. Q3 2026

    Crew access, signed logbooks, self-patching box

    Shipped

    Shipped in v0.9.2: a second login for whoever is aboard, a logbook that becomes a record once you sign it off, and an onboard box that keeps its own operating system patched without a terminal.

    • Crew login gets the chart, instruments, tracks, weather and watch roster, nothing that reconfigures the boat
    • One-way logbook sign-off freezes the boat name and skipper; the header prints the date it was signed
    • Log reading per row with distance run since the row above, the way a paper logbook is kept
    • OS security patches and full upgrades from Settings, plus a full-screen chart and end-to-end planning on a phone
  9. Q4 2026

    Passage analysis, tides & more on the map

    Shipped

    Shipped in v0.9.3.1 and v0.9.4: every recorded passage becomes a debrief, the tide reaches the router, and the chart carries a dozen more layers of what the forecast knows.

    • The Analyzer: a dashboard of every logged channel, a passage and race debrief with every tack and gybe timed, and passages compared only where the difference beats the noise
    • Which forecast was right, ranked against the wind the boat measured; a written summary in your language
    • Tides and tidal streams, free and without an account, sailed by the router wherever they cover the route
    • Flow, arrow and barb wind display, twelve More data layers, and the whole app in five languages
  10. Q4 2026

    v1.0: RaspberryPI Edition goes live

    Shipped

    Public release. Software, preinstalled Raspberry Pi, and full-kit options go on sale; per-fleet and OEM licensing open for businesses, charter fleets, and integrations.

    • Linux + macOS + Raspberry Pi 5 installers
    • Hosted docs, signed releases, automated update channel
    • Early-adopter program closes; support channels open
    • Software, Raspberry Pi, and full-kit pricing live
  11. Q1 2027

    Automated backups

    Planned

    Hands-off, scheduled backups of everything the boat has created (tracks, routes, polars, logbooks, recordings and settings), with one-click restore. v1.0 already brings backup and restore by hand, as one file kept off the box.

    • Fully automated snapshots on a configurable schedule
    • Captures tracks, routes, polars, sail charts, trip logs and owner settings
    • Versioned archives with integrity check; restore to any prior snapshot
    • Local or attached-drive target, no manual export step
  12. Q1 2027

    Stochastic routing + Signal K

    Planned

    Ensemble GRIBs across GFS / ECMWF ENS members, fleet Signal K integration, and the first racing-tactics extensions (laylines, VMC, mark roundings).

    • Ensemble route distribution with min / median / p90 reports
    • Signal K consumer alongside the existing NMEA 0183 path
    • Racing extras: laylines, persistent/oscillating shift handling
    • Bonjour discovery as SailRouter._http._tcp.local on macOS
  13. Q2 2027

    Causal AI: inferences and interventions

    Planned

    Full causal-AI layer on top of the adaptive polar: do-calculus interventions answer counterfactual questions about route, trim and tactics, and feed back into the routing cost function as risk-aware penalties.

    • Pearl do-calculus interventions over the (TWS, TWA, sail, helm) DAG
    • Counterfactual queries: "What if we had reefed an hour earlier?"
    • Helm-policy modelling to decouple boat capability from steering bias
    • Causal-effect estimates surfaced in the LLM intelligence layer
  14. Q3 2027

    Hosted SaaS

    Planned

    The full SailRouter feature set in the browser, nothing to install, and it stores none of your boat's data itself. Pair it to your onboard Raspberry Pi with the same login and the two stay in sync.

    • Complete feature set hosted; no local install required
    • Holds no boat data of its own; your Pi stays the source of truth
    • Pairs to the onboard unit over your existing user / password
    • Two-way sync of tracks, routes, polars and logbooks
On the water

Contributors

These sailors run SailRouter on their own boats, from the Marmara Sea to the South Pacific. They feed the project with passage data, polar logs and the kind of feedback you only get from people who actually sail.

Ferry Windbichler
Alrisha · Ovni monohull · alrisha.at
Now in Australia

Together with his wife Brigitte on a journey for the last 10 years. Coming from Austria, they've sailed almost the whole world.

From Jürgen
"Ferry gave me the feeling from day one that this project was on the right path. He brought me to the idea of running it on a Raspberry Pi, and he's had feedback every time I asked."
From Ferry
"When Jürgen came up with the idea of using modern programming combined with AI to build a sailing router knowing weather, boat and crew capabilities, land avoidance and currents, I knew I had to contribute. Let's get that rocking!"
Vincent Huré
Kalymnos · 42 feet sloop in aluminium made in 1980 by Natalu · polarsteps.com/kalymnos
Now in South Pacific

Started from France two years ago I live with my wife on our Boat, Kalymnos. It's a 42 feets aluminium boat made in 1980.

From Jürgen
"Vincent was one of the very first people I reached out to for the sailrouter project. He is already using it in real life while sailing between the islands of the South Pacific. Getting feedback from the other side of the world was incredibly motivating and gave the whole project an exciting boost."
From Vincent
"We are on the way to finish a word tour in 3 years. Routing and forecast are a major point four us. My boat is setup with self made electronic based on open source (signalk, pypilot, Avnav...)"
Omer Melik OZBAY
IRC/ORC ·
Now in Marmara Sea

Professional Racer in IRC/ORC

From Jürgen
"Omer helped me understand why high-resolution weather data is essential for racing, and how a router should use that data to support faster and more precise tactical decisions on the water."
From Omer
"I’m a professional sailor actively competing in the IRC and ORC circuits. I tested the system in the Marmara Sea and was impressed by its feature set and how well it works for racing."
Adam Goldberg
SV Blue Spring · Catamaran · www.linkedin.com/in/agoldberg
Now in Atlantic / US East Coast

Software engineer specializing in architecture and protocols for image and television content.

From Jürgen
"Adam reached out to me at the very beginning and told me about his project. We quickly identified several opportunities to work together, and here we are. Since then, we’ve had several video calls to discuss our ideas."
From Adam
"As a sailor, having a capable local routing tool matters. I wanted to encourage the development of sailing software built by sailors for sailors, and sailrouter is exactly that kind of project. "
Markus Hiebeler
Friendship · Monohull · www.boats2sail.com/regatta
Now in Austria

multiple national champion in Flying Dutchman, offshore sailing, and Laser/ILCA; several Olympic campaigns in the Star class and Flying Dutchman; multiple top-three finishes at European Championships in Tempest and H-Boat.

From Jürgen
"As a sailing instructor, Markus trained my partner Petra to get her ready for a sailing trip lasting a few months. His experience in teaching sailing was invaluable to the project. What started as a conversation is going to turn into a partnership."
From Markus
"We’re active in the sailing regatta scene and have long been on the lookout for interesting electronic tools to help us plan and execute our routes. Something exciting is in the works here, and we definitely want to be a part of it. On Lake Neusiedl, we sail a Friendship 25, and at sea, we sail whatever performance yachts we can get our hands on."
Bibliography

References

The numbered citations used throughout the science chapters. The full annotated bibliography, including paywalled titles, lives under literature/ in the repository.

Routing algorithms

  • 1
    Hagiwara, I. (1989). "Weather routing of (sail-assisted) motor vessels". PhD thesis, Delft University of Technology.The foundational isochrone method for sailing vessel weather routing; introduces bearing-bucket pruning and the time-stepping wavefront expansion.
  • 2
    Philpott, A.B. & Mason, A.J. (2001). "Optimising yacht routes under uncertainty". 15th Chesapeake Sailing Yacht Symposium.Extends deterministic routing to stochastic scenarios using ensemble weather; basis for planned ensemble routing.
  • 3
    Guo, H., Zou, Z. & Liu, Y. (2020). "An improved isochrone method for ship weather routing". Journal of Marine Science and Technology, 25(3).Modern refinements to isochrone expansion including improved pruning and convergence behaviour.
  • 4
    Mannarini, G. et al. (2016). "VISIR-I: small vessel: Loss estimation for weather routing in the Mediterranean Sea". Geoscientific Model Development, 9.Operational weather routing with sea-state-dependent performance; demonstrates the importance of wave effects on passage time.
  • 15
    Sobieczky, S. (2017). "Optimisation of sailing routes". PhD thesis, University of Innsbruck.Compares isochrone, dynamic programming, and evolutionary approaches; prescribes adding tack to the search state, the basis for SailRouter's state-augmented strategy.
  • 16
    Lin, Y.-H., Fang, M.-C. & Yeung, R.W. (2013). "The optimal route computation for a vessel sailing on a via-point based voyage with minimum fuel consumption". Ocean Engineering, 71, 24–37.Modern comparative look at isochrone vs DP routing. Formalises the Modified Isochrone Method heading-change penalty.
  • 17
    Murray, I.. "Expedition User Manual". Tasman Bay Navigation Systems.Practitioner-grade guidance on tack-penalty calibration in commercial weather routers, followed by the ranges shipped in SailRouter's mode presets.
  • 18
    Bethwaite, F. (1996). "High Performance Sailing: Faster Racing Techniques". International Marine.Tactical sailing reference that introduced the wind-shift threshold rule used by professional racers. Basis of the shift-gated strategy.

Geospatial data and methods

  • 5
    Wessel, P. & Smith, W.H.F. (1996). "A global, self-consistent, hierarchical, high-resolution shoreline database". Journal of Geophysical Research, 101(B4), 8741–8743.The GSHHG dataset used for land avoidance.
  • 8
    Vincenty, T. (1975). "Direct and inverse solutions of geodesics on the ellipsoid with application of nested equations". Survey Review, 23(176), 88–93.The iterative method for geodesic distance and bearing on the WGS84 ellipsoid.
  • 9
    Karney, C.F.F. (2013). "Algorithms for geodesics". Journal of Geodesy, 87(1), 43–55.Improved geodesic algorithms with guaranteed convergence; implemented in GeographicLib and used by PROJ.
  • 11
    Leutenegger, S.T., Lopez, M.A. & Edgington, J. (1997). "STR: A simple and efficient algorithm for R-tree packing". 13th IEEE International Conference on Data Engineering.The Sort-Tile-Recursive tree used by Shapely for spatial indexing of coastline polygons.
  • 12
    GEBCO Compilation Group (2025). "GEBCO 2025 Grid". doi:10.5285/1c44ce99-0a0d-5f4f-e063-7086abc0ea0f.Global bathymetric grid at 15 arc-second resolution; the source for depth contour extraction.
  • 13
    Copernicus Marine Service. "Global ocean physics analysis and forecast". E.U. Copernicus Marine Service Information (CMEMS).Operational ocean model providing surface wind, wave, and current data.

Statistics and machine learning

  • 6
    Rasmussen, C.E. & Williams, C.K.I. (2006). "Gaussian Processes for Machine Learning". MIT Press.Theoretical foundation for the adaptive polar model.
  • 7
    Pearl, J. (2009). "Causality: Models, Reasoning, and Inference". Cambridge University Press, 2nd ed..The do-calculus framework for distinguishing observational from interventional distributions; critical for addressing selection bias in logged sailing data.
  • 14
    Stein, M.L. (1999). "Interpolation of Spatial Data: Some Theory for Kriging". Springer.Establishes the Matérn class of covariance functions; the Matérn-5/2 kernel is chosen for polar modelling because it produces twice-differentiable surfaces.
  • 19
    Hochreiter, S. & Schmidhuber, J. (1997). "Long Short-Term Memory". Neural Computation, 9(8), 1735–1780.The original LSTM paper: the recurrent architecture used by the planned strategic-envelope predictor sitting on top of reverse isochrones, and the first neural component to enter SailRouter.

Software references

  • 10
    GWeatherRouting (GPL, Python, GTK4). "Closest peer in the GPL ecosystem". Isochrone routing with GRIB, polars, and NMEA support. As of v0.3.6 (March 2026), does not implement land avoidance; routes go through islands. Confirmed by hands-on testing.
  • 20
    OpenCPN Weather Routing plugin (GPL, C++). "Working land avoidance with GSHHS polygons". Desktop application with no client-server architecture; serves as reference implementation, not a copy target.
Stay in the loop
Sign up for the SailRouter newsletter