CANSARP Mobile

Disclaimer: CANSARP Mobile is a research project. I do not recommend using it for real maritime search and rescue operations. It has not been validated for operational use, and nothing it computes should replace the official tools, procedures and judgement of search and rescue authorities. It is a planning aid only and not for navigation.

Why I built it

I was working for the Canadian Coast Guard when CANSARP 5, its search and rescue planning program, was released; its development was happening under me. I am also the one who convinced the Coast Guard to release it as an open source project on SourceForge.

Adding Monte Carlo simulation was on the roadmap for the CANSARP 5.x series, but I left the Coast Guard before I could see it done. Almost 20 years later, with agentic AI coding, I got curious: would it be easy to port CANSARP to the iPad, when the original version required a very expensive Sun workstation, and add the features I never saw? This is how CANSARP Mobile was created.

CANSARP Mobile is a native iPad app (SwiftUI and MapKit) that ports CANSARP 5 from its original GTK/C version for Solaris. It keeps CANSARP’s drift, datum-error, sweep-width, POD and search-pattern calculations and adds a Monte Carlo drift model, open wind and current data, a probability map with search effort, and NOAA vector charts.

CANSARP Mobile on iPad: the sidebar of managers and results beside a map showing drift tracks, error circles, Monte Carlo particle clouds, a search pattern and animated wind and current streaks.
A training scenario (the Zebellos trackline exercise from the user guide): targets deployed along the track line, CANSARP drift and error circles, Monte Carlo clouds, the SRU’s search pattern, and animated wind and current streaks.

Ported from CANSARP 5

The app follows the original C sources of CANSARP 5 (Canadian Coast Guard, 1994–2009, GPL v3):

  • The drift engine: two-pass (Heun) integration, rhumb-line displacement, the 12-particle leeway spread, reverse drift, and the measured, model and subjective current precedence, with the 3 %/20° wind current or the optional Ekman drift.
  • Datum error, the leeway tables, search targets, SRU types and navigation, fix and DR error tables.
  • Sweep width and Fw / Fv / Ff corrections, transit time, and the parallel track, expanding square, sector, custom track line and coast crawl patterns, sized from endurance.
  • Probability of detection over the search area, SLDMB tracks as measured currents, and the Target, SRU, Wind, Current, Markers, Search Polygon, Waypoint and View managers, the wizard, rulers, notes and Print Case.
  • Cases and scenarios saved as files visible in the Files app.
The Targets manager open beside the map, listing three search objects deployed along a track line.
The Targets manager: search objects deployed along the vessel’s intended track, each with its own last known position, time and initial position error.

What CANSARP Mobile adds

  • Monte Carlo drift model, the feature I had hoped to see in CANSARP 5.x, after Breivik & Allen (2008), with the Allen (2005) leeway taxonomy and jibing as in MET Norway’s OpenDrift Leeway model. Particles can start around the last known position, along a release line or inside an area, with optional capsizing in strong wind.
  • Probability map and search effort after SAROPS: each unsuccessful search lowers the probability of the particles it would have detected, the map shows the 50 % and 90 % areas, and the app reports the POS of planned searches and the cumulative POS of searches done, per search object.
  • Open wind and current data from Open-Meteo (ECCC GEM or NOAA GFS/HRRR winds, Mercator SMOC currents) and ECCC’s CIOPS-East coastal currents, fetched for the whole drift timeline.
  • Drift timeline: a time slider under the map moves the scenario clock and shows the datum, error circles and particle cloud at that time without recalculating.
  • Interactive map: tap any object to open its properties, drag pins to move them, long-press to add objects, and move, rotate and resize search patterns directly on the map.
  • Animated wind and current streaks on the map, kept off land.
  • Stranding on the shoreline: drifts stop where they first meet the coast, using the GSHHG full-resolution shoreline.
  • NOAA ENC vector charts: a built-in S-57 decoder that imports or downloads cells, plus the online NOAA ENC chart service as an overlay.
The SRUs manager showing a vessel's search pattern with total POD and POS over the Monte Carlo particles, with handles on the map to move, rotate and resize the pattern.
Screenshot
The Monte Carlo panel with ensemble size, wind and current uncertainty, jibing probability and capsizing settings beside the drift map.
Screenshot

Requirements and availability

CANSARP Mobile is an iPad-only app for iPadOS 26 or later.

A user guide adapted from the CANSARP 5.0 User Manual covers the interface, the wizard, search planning, drift, SRUs and search patterns, probability and search effort, reports and charts, with a worked example.

Licence and credits

CANSARP Mobile is free software under the GNU GPL v3, as a derivative of CANSARP 5 (© 1994–2009 Canadian Coast Guard). The leeway taxonomy is derived from OpenDrift (GPL v2+, MET Norway) and the shoreline from GSHHG (Wessel & Smith, LGPL v3). Wind and current data come from Open-Meteo (CC BY 4.0) and Environment and Climate Change Canada; the ECCC currents are not an official ECCC product. You can access the source code at https://code.colddiver.com/colddiver/Cansarp.

Once more: this is a research project, not an operational tool. I built it to explore what is now possible on an iPad, and I do not recommend relying on it for real search and rescue cases.