.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/example_plot.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_gallery_example_plot.py: Example plot (for front page) ================================== .. GENERATED FROM PYTHON SOURCE LINES 6-18 .. code-block:: Python from datetime import datetime, timedelta from opendrift.models.oceandrift import OceanDrift o = OceanDrift(loglevel=30) o.add_readers_from_list( ['https://thredds.met.no/thredds/dodsC/fou-hi/norkystv3_800m_m00_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') .. GENERATED FROM PYTHON SOURCE LINES 19-20 .. image:: /gallery/animations/example_plot_0.gif .. rst-class:: sphx-glr-timing **Total running time of the script:** (1 minutes 20.354 seconds) .. _sphx_glr_download_gallery_example_plot.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: example_plot.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: example_plot.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: example_plot.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_