The OpenSARP app icon: an orange and white life ring inside a dashed search area outline on a blue background.

OpenSARP

Open Search And Rescue Planning: maritime search planning on the iPad, with Monte Carlo drift.

Download on the App Store Coming soon

You choose the amount · secure payment by Stripe

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):

What OpenSARP adds

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

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:

  1. 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.
  2. 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.
  3. Allen, A. A. (2005). Leeway Divergence. U.S. Coast Guard Research and Development Center, report CG-D-05-05. Leeway taxonomy (downwind/crosswind coefficients).
  4. 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).
  5. 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).
  6. Stone, L. D. (1975; 2nd ed. 1989). Theory of Optimal Search. Bayesian search theory behind the posterior probabilities and POS.
  7. Koopman, B. O. (1980). Search and Screening: General Principles with Historical Applications. Pergamon. Inverse-cube lateral range curve.

Data:

  1. 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).
  2. 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).
  3. 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).
  4. 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.
  5. Sutherland (2024), Ocean Dynamics, https://link.springer.com/article/10.1007/s10236-024-01600-3 (cited in OpenDrift's leeway.py as indicating that Stokes drift should be added explicitly).
  6. 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.