
OpenSARP
Open Search And Rescue Planning: maritime search planning on the iPad, with Monte Carlo drift.
Download on the App Store Coming soon
Features
Proven planning core
Drift, datum-error, sweep-width, POD and search-pattern calculations ported from the original C sources of the Canadian Coast Guard's CANSARP 5, in a native SwiftUI and MapKit app.
Monte Carlo drift
A particle ensemble after Breivik & Allen (2008), with the Allen (2005) leeway taxonomy, jibing and optional capsizing.
Probability and search effort
A probability map after SAROPS that shows the 50 % and 90 % areas and reports the POS of planned and completed searches.
Open wind and current data
Winds and currents from Open-Meteo and ECCC's CIOPS-East, fetched for the whole drift timeline.
Interactive map
Tap, drag and long-press objects, shape search patterns on the map, and scrub the drift timeline without recalculating.
Marine charts
Online CHS and NOAA ENC charts, NOAA ENC vector charts from a built-in S-57 decoder, stranding on the GSHHG shoreline, and animated wind and current streaks.
Ported from CANSARP 5
OpenSARP follows the original C sources of the Canadian Coast Guard's CANSARP 5 (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.
What OpenSARP 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.
- Marine charts: the online CHS and NOAA ENC chart services as overlays, and a built-in S-57 decoder that imports or downloads NOAA ENC cells.
- Cases and scenarios as files in the Files app, to share by AirDrop, Mail or a cloud folder.
Screenshots
All screenshots show the fictional Zebellos trackline training case off northern Vancouver Island, over the Canadian Hydrographic Service's online ENC chart: the drift map with targets deployed along a track line, error circles, Monte Carlo clouds, the SRU's search pattern and animated wind and current streaks; the Targets manager; the SRUs manager, with the POD over the pattern area beside the POS over the Monte Carlo particles; the Monte Carlo settings; and the Searches manager, with the probability of success per search object.
Requirements
- iPad with iPadOS 26 or later (iPad only)
- An internet connection to fetch wind and current data and to show the Apple Maps base map and the online charts
OpenSARP is coming soon to the App Store.
Privacy
OpenSARP collects no data: it has no account, analytics or tracking, asks for no permissions and never reads your location. Cases and scenarios stay on your iPad as files in the Files app. To fetch wind, current and chart data, the app sends the area and times it needs to Open-Meteo, Environment and Climate Change Canada, NOAA and the Canadian Hydrographic Service, and the base map comes from Apple Maps. See the privacy policy.
Documentation: the user guide covers the interface, cases and scenarios, search planning, drift, SRUs and search patterns, probability and search effort, reports and charts, with a worked example and a glossary.
Open source
OpenSARP is open source under the GNU General Public License v3.0 (GPL-3.0). The source code is at github.com/colddiver/OpenSARP.
OpenSARP is inspired by CANSARP, the Canadian Search and Rescue Planning program of the Canadian Coast Guard (CANSARP 5, GPL v3), originally a GTK/C application for Solaris, and its planning core is ported from CANSARP 5's source. It is licensed under the GPL v3 as required for a derivative of CANSARP 5 (© 1994–2009 Canadian Coast Guard, GPL v3). OpenSARP is an independent project: it is not affiliated with, endorsed by or supported by the Canadian Coast Guard.
The leeway taxonomy table 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.
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 OpenSARP was created.
OpenSARP is a native iPad app (SwiftUI and MapKit) ported from the original GTK/C version of CANSARP 5 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 marine charts.
References
Drift, search planning and probability:
- Canadian Coast Guard. CANSARP 5, Canadian Search and Rescue Planning program, 1994–2009 (C/GTK source, GPL v3). Drift engine, datum error, leeway tables, sweep width and Fv/Fw tables, patterns and POD. Source: https://sourceforge.net/projects/cansarp/.
- Dawson, J. W. (2008). CANSARP V 5.0 User Manual, partial draft, 31 March 2008. Canadian Coast Guard. User interface, wizard, case and scenario management, managers and planning workflow of the original program.
- Hillier, L. E. (2008). Validating and Improving the Canadian Coast Guard Search and Rescue Planning Program (CANSARP). M.Sc. thesis, Memorial University of Newfoundland, St. John's. Tests CANSARP's MiniMax drift and a Monte Carlo variant ("CANSARP Scientific", after Breivik & Allen) against 12 SLDMBs on the Newfoundland Shelf (August 2007). With climatological, CNOOFS or Mercator currents, predicted 48 h drifts were 2–3× shorter than observed, and the errors lay mainly along the current. Background for the Monte Carlo model's current σ and for the drift error factor.
- Breivik, Ø. and Allen, A. A. (2008). An operational search and rescue model for the Norwegian Sea and the North Sea. Journal of Marine Systems 69(1–2), 99–113. doi:10.1016/j.jmarsys.2007.02.010, arXiv:1111.1102. Monte Carlo seeding and perturbations.
- Allen, A. A. (2005). Leeway Divergence. U.S. Coast Guard Research and Development Center, report CG-D-05-05. Leeway taxonomy (downwind/crosswind coefficients).
- Dagestad, K.-F., Röhrs, J., Breivik, Ø. and Ådlandsvik, B. (2018). OpenDrift v1.0: a generic framework for trajectory modelling. Geoscientific Model Development 11, 1405–1420. doi:10.5194/gmd-11-1405-2018; source https://github.com/OpenDrift/opendrift (GPL v2+).
OBJECTPROP.DAT(leeway taxonomy) and the Leeway model's seeding, jibing and stranding (opendrift/models/leeway.py). - Kratzke, T. M., Stone, L. D. and Frost, J. R. (2010). Search and Rescue Optimal Planning System. Proceedings of the 13th International Conference on Information Fusion, Edinburgh. Weighted particles, Bayesian update for unsuccessful search, per-object detection and object-type likelihoods, POS (Eqs. 1–3).
- Stone, L. D. (1975; 2nd ed. 1989). Theory of Optimal Search. Bayesian search theory behind the posterior probabilities and POS.
- Koopman, B. O. (1980). Search and Screening: General Principles with Historical Applications. Pergamon. Inverse-cube lateral range curve.
Data:
- Wessel, P. and Smith, W. H. F. (1996). A global, self-consistent, hierarchical, high-resolution shoreline database. Journal of Geophysical Research 101(B4), 8741–8743. GSHHG 2.3.7, https://www.soest.hawaii.edu/pwessel/gshhg/ (LGPL v3).
- Open-Meteo, https://open-meteo.com (CC BY 4.0): ECCC GEM, NOAA GFS and HRRR winds; Mercator Ocean SMOC surface currents (Copernicus Marine Service).
- Environment and Climate Change Canada, Coastal Ice Ocean Prediction System, East (CIOPS-East), via MSC GeoMet, https://eccc-msc.github.io/open-data/msc-data/nwp_ciops/readme_ciops_en/ (ECCC Data Server End-use Licence).
- Breivik, Ø., Janssen, P. A. E. M. and Bidlot, J.-R. (2014). Approximate Stokes drift profiles in deep water. Journal of Physical Oceanography 44, 2433–2445.
- Sutherland (2024), Ocean Dynamics, https://link.springer.com/article/10.1007/s10236-024-01600-3 (cited in OpenDrift's
leeway.pyas indicating that Stokes drift should be added explicitly). - NOAA Office of Coast Survey Electronic Navigational Charts, https://charts.noaa.gov/ENCs/, and the NOAA ENC Chart Display Service. IHO S-57 Ed. 3.1 (2000), Transfer Standard for Digital Hydrographic Data; IHO S-52, Specifications for Chart Content and Display Aspects of ECDIS.
See my other projects.




