Introduction to OpenDrift
OpenDrift is a software package for modeling the trajectories and fate of objects or substances drifting in the ocean, or even in the atmosphere.
OpenDrift is open source (available on GitHub), and is programmed in Python. As the software is very
generic, it is rather a “framework” than a “trajectory model” in the
traditional sense. Trajectory models for specific purposes (e.g. oil
drift
, search and rescue
, larvae drift
etc) may reuse all common functionality from the
core model
, and need only implement a Python Class describing the
purpose-specific processes (physics/biology etc). See
Specifications and background requirements and Data model for more detailed
information.
Drift at different depths |
Buoyancy and turbulence |
Oil budget |
Search and Rescue |
Some key features of OpenDrift are:
Open source (GPLv2): providing full transparency.
Fast: optimised and vectorised Python code. Reading forcing data from disk/internet is normally the bottleneck.
Modular: may simulate transport and fate of any kind of particles (oil, ships, persons, icebergs, micro plastics…)
May use input forcing data (current, wind and waves) from any model, in many file formats and any map projection.
May use backup data sources if first choice is temporarily unavailable.
Can simulate backwards in time (specify a negative time step).
Output is saved to CF-compliant netCDF files.
Basic graphical user interface.
Can use input from ensemble models.
Running a simulation can be as simple as:
>>> from datetime import datetime, timedelta
>>> from opendrift.models.oceandrift import OceanDrift
>>>
>>> o = OceanDrift()
>>> o.add_readers_from_list(
>>> ['https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be'])
>>> o.seed_elements(lon=4.85, lat=60, time=datetime.now(), number=10000, radius=1000)
>>>
>>> o.run(duration=timedelta(hours=24))
>>> o.animation(filename='animation.mp4')
Once you have OpenDrift installed, take a look at the
Tutorial on how to get started, or check out the gallery for some examples. The details and physics of each model
is documented in the reference, along with specific examples for that model.
Models can be configured in nuanced ways which are important for more realistic
simulation (e.g. diffusion for oil drift
simulations). These should also be documented under the reference for the
particular model. See opendrift.models
for an overview.
Note
If you found OpenDrift useful for your study, please cite it as:
Dagestad, K.-F., Röhrs, J., Breivik, Ø., and Ådlandsvik, B.: OpenDrift v1.0: a generic framework for trajectory modelling, Geosci. Model Dev., 11, 1405-1420, https://doi.org/10.5194/gmd-11-1405-2018, 2018.
For the oil spill module, please cite in addition to the above:
Röhrs, J., Dagestad, K.-F., Asbjørnsen, H., Nordam, T., Skancke, J., Jones, C. E., and Brekke, C.: The effect of vertical mixing on the horizontal drift of oil spills, Ocean Sci., 14, 1581-1601, https://doi.org/10.5194/os-14-1581-2018, 2018.
Contents
- History
- 2024-11-26 / Release v1.12.0
- 2024-07-24 / Release v1.11.13
- 2024-07-05 / Release v1.11.12
- 2024-07-04 / Release v1.11.11
- 2024-06-27 / Release v1.11.10
- 2024-06-27 / Release v1.11.9
- 2024-06-26 / Release v1.11.8
- 2024-06-25 / Release v1.11.7
- 2024-06-24 / Release v1.11.6
- 2024-06-18 / Release v1.11.5
- 2024-06-14 / Release v1.11.4
- 2024-06-14 / Release v1.11.3
- 2024-04-02 / Release v1.11.2
- 2024-01-25 / Release v1.11.1
- 2023-12-12 / Release v1.11.0
- 2023-05-02 / Release v1.10.7
- 2023-03-29 / Release v1.10.6
- 2023-01-26 / Release v1.10.5
- 2022-11-16 / Release v1.10.4
- 2022-11-16 / Release v1.10.3
- 2022-11-16 / Release v1.10.2
- 2022-09-27 / Release v1.10.1
- 2022-09-26 / Release v1.10.0
- 2022-03-18 / Release v1.9.0
- 2022-02-28 / Release v1.8.4
- 2022-01-31 / Release v1.8.3
- 2022-01-31 / Release v1.8.2
- 2022-01-27 / Release v1.8.1
- 2022-01-06 / Release v1.8.0
- 2021-11-08 / Release v1.7.3
- 2021-10-27 / Release v1.7.2
- 2021-09-01 / Release v1.7.1
- 2021-08-30 / Release v1.7.0
- 2021-05-03 / Release v1.6.0
- 2021-02-15 / Release v1.5.6
- 2021-01-26 / Release v1.5.5
- 2021-01-18 / Release v1.5.4
- 2021-01-15 / Release v1.5.3
- 2021-01-14 / Release v1.5.2
- 2021-01-05 / Release v1.5.1
- 2021-01-04 / Release v1.5.0
- 2020-11-01 / Release v1.4.2
- 2020-10-31 / Release v1.4.1
- 2020-10-27 / Release v1.4.0
- 2020-10-15 / Release v1.3.3
- 2020-08-21 / Release v1.3.2
- 2020-07-03 / Release v1.3.1
- 2020-06-24 / Release v1.3.0
- 2020-06-12 / Release v1.2.3
- 2020-06-08 / Release v1.2.2
- 2020-05-14 / Release v1.2.1
- 2020-01-08 / Release v1.2.0
- 2019-11-27 / Release v1.1.1
- Installing OpenDrift
- Performance in OpenDrift
- Tutorial
- Theory
- Drift in the Ocean
- How to choose which model to use
- How to write a new module
- Gallery
- Oil types
- Interaction with coastline
- Using OpenDrift in a container
- Graphical User Interface
- Publications
- Services using OpenDrift
- API Reference