<!DOCTYPE html> <html class="writer-html5" lang="en" data-content_root="../"> <head> <meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Use Telemac (selafin) output — OpenDrift documentation</title> <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=b86133f3" /> <link rel="stylesheet" type="text/css" href="../_static/css/theme.css?v=e59714d7" /> <link rel="stylesheet" type="text/css" href="../_static/graphviz.css?v=4ae1632d" /> <link rel="stylesheet" type="text/css" href="../_static/plot_directive.css" /> <link rel="stylesheet" type="text/css" href="../_static/sg_gallery.css?v=d2d258e8" /> <link rel="stylesheet" type="text/css" href="../_static/sg_gallery-binder.css?v=f4aeca0c" /> <link rel="stylesheet" type="text/css" href="../_static/sg_gallery-dataframe.css?v=2082cf3c" /> <link rel="stylesheet" type="text/css" href="../_static/sg_gallery-rendered-html.css?v=1277b6f3" /> <link rel="stylesheet" type="text/css" href="../_static/theme_overrides.css" /> <script src="../_static/jquery.js?v=5d32c60e"></script> <script src="../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script> <script src="../_static/documentation_options.js?v=5929fcd5"></script> <script src="../_static/doctools.js?v=9bcbadda"></script> <script src="../_static/sphinx_highlight.js?v=dc90522c"></script> <script src="../_static/js/theme.js"></script> <link rel="index" title="Index" href="../genindex.html" /> <link rel="search" title="Search" href="../search.html" /> <link rel="next" title="Plastic" href="example_plast.html" /> <link rel="prev" title="Comparing Leeway and ShipDrift model" href="example_shipdrift_leeway.html" /> </head> <body class="wy-body-for-nav"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-scroll"> <div class="wy-side-nav-search" > <a href="../index.html" class="icon icon-home"> OpenDrift <img src="../_static/opendrift_logo.png" class="logo" alt="Logo"/> </a> <div role="search"> <form id="rtd-search-form" class="wy-form" action="../search.html" method="get"> <input type="text" name="q" placeholder="Search docs" aria-label="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu"> <ul> <li class="toctree-l1"><a class="reference internal" href="../index.html">Introduction to OpenDrift</a></li> </ul> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="../history_link.html">History</a></li> <li class="toctree-l1"><a class="reference internal" href="../install.html">Installing OpenDrift</a></li> <li class="toctree-l1"><a class="reference internal" href="../performance.html">Performance in OpenDrift</a></li> <li class="toctree-l1"><a class="reference internal" href="../tutorial.html">Tutorial</a></li> <li class="toctree-l1"><a class="reference internal" href="../theory/index.html">Theory</a></li> <li class="toctree-l1"><a class="reference internal" href="../theory/index.html#drift-in-the-ocean">Drift in the Ocean</a></li> <li class="toctree-l1"><a class="reference internal" href="../choosing_a_model.html">How to choose which model to use</a></li> <li class="toctree-l1"><a class="reference internal" href="../writing_a_new_model.html">How to write a new module</a></li> <li class="toctree-l1 current"><a class="reference internal" href="index.html">Gallery</a><ul class="current"> <li class="toctree-l2"><a class="reference internal" href="example_plot.html">Example plot (for front page)</a></li> <li class="toctree-l2"><a class="reference internal" href="example_eulerdrift_gauss_blob.html">Euler simulation / Finite differnce of Gaussian blob</a></li> <li class="toctree-l2"><a class="reference internal" href="example_parameterized_stokesdrift.html">Parameterised Stokesdrift</a></li> <li class="toctree-l2"><a class="reference internal" href="example_constant_current.html">Constant current</a></li> <li class="toctree-l2"><a class="reference internal" href="example_long_cmems.html">Copernicus Marine Client (CMEMS)</a></li> <li class="toctree-l2"><a class="reference internal" href="example_roms_native.html">ROMS native reader</a></li> <li class="toctree-l2"><a class="reference internal" href="example_depth.html">Drift at different depths</a></li> <li class="toctree-l2"><a class="reference internal" href="example_seed_from_shapefile.html">Seeding from shapefile</a></li> <li class="toctree-l2"><a class="reference internal" href="example_long_global_thredds.html">Thredds (global)</a></li> <li class="toctree-l2"><a class="reference internal" href="example_openberg.html">Icebergs (openberg)</a></li> <li class="toctree-l2"><a class="reference internal" href="example_larvae.html">Fish Eggs and Larvae</a></li> <li class="toctree-l2"><a class="reference internal" href="example_double_gyre.html">Double gyre</a></li> <li class="toctree-l2"><a class="reference internal" href="example_ensemble.html">Ensemble</a></li> <li class="toctree-l2"><a class="reference internal" href="example_thredds_resources.html">Thredds resources for GUI</a></li> <li class="toctree-l2"><a class="reference internal" href="example_2d.html">2D simulation profile</a></li> <li class="toctree-l2"><a class="reference internal" href="example_static_2d_current.html">Static 2D current field</a></li> <li class="toctree-l2"><a class="reference internal" href="example_dominating.html">Show dominating source</a></li> <li class="toctree-l2"><a class="reference internal" href="example_windblow.html">Wind blow model</a></li> <li class="toctree-l2"><a class="reference internal" href="example_grid.html">Grid</a></li> <li class="toctree-l2"><a class="reference internal" href="example_advection_schemes_eddy.html">Advection schemes</a></li> <li class="toctree-l2"><a class="reference internal" href="example_long_shyfem.html">SHYFEM: Using model input from unstructured grid</a></li> <li class="toctree-l2"><a class="reference internal" href="example_fjord.html">Fjord</a></li> <li class="toctree-l2"><a class="reference internal" href="example_shipdrift.html">Ship drift</a></li> <li class="toctree-l2"><a class="reference internal" href="example_long_vietnam.html">Vietnam</a></li> <li class="toctree-l2"><a class="reference internal" href="example_eulerdrift_norkyst.html">Euler simulation / Finite difference of blob with the Norkyst nordic ocean model</a></li> <li class="toctree-l2"><a class="reference internal" href="example_LCS_norkyst.html">LCS Norkyst</a></li> <li class="toctree-l2"><a class="reference internal" href="example_reader_boundary.html">Reader boundary</a></li> <li class="toctree-l2"><a class="reference internal" href="example_double_gyre_advection_schemes.html">Double gyre, advection</a></li> <li class="toctree-l2"><a class="reference internal" href="example_map.html">Plotting map</a></li> <li class="toctree-l2"><a class="reference internal" href="example_oil_ice.html">Oil in ice</a></li> <li class="toctree-l2"><a class="reference internal" href="example_diffusivities.html">Vertical diffusivity</a></li> <li class="toctree-l2"><a class="reference internal" href="example_grid_time.html">Grid time</a></li> <li class="toctree-l2"><a class="reference internal" href="example_rungekutta_norkyst.html">Runge-Kutta scheme on Norkyst model</a></li> <li class="toctree-l2"><a class="reference internal" href="example_double_gyre_LCS.html">Double gyre - Lagrangian Coherent Structures</a></li> <li class="toctree-l2"><a class="reference internal" href="example_satellite.html">Satellite</a></li> <li class="toctree-l2"><a class="reference internal" href="example_drifter.html">Drifter</a></li> <li class="toctree-l2"><a class="reference internal" href="example_coastline.html">No stranding</a></li> <li class="toctree-l2"><a class="reference internal" href="example_oil_entrainment_rate.html">Oil entrainment rate</a></li> <li class="toctree-l2"><a class="reference internal" href="example_checkerboard.html">Checkerboard</a></li> <li class="toctree-l2"><a class="reference internal" href="example_cone.html">Cone seeding</a></li> <li class="toctree-l2"><a class="reference internal" href="example_openoil_sample_output.html">Openoil sample output netCDF file</a></li> <li class="toctree-l2"><a class="reference internal" href="example_double_gyre_LCS_particles.html">Double gyre - LCS with particles</a></li> <li class="toctree-l2"><a class="reference internal" href="example_shape_landmask.html">Use a shapefile as landmask</a></li> <li class="toctree-l2"><a class="reference internal" href="example_fvcom.html">FVCOM: Using model input from unstructured grid</a></li> <li class="toctree-l2"><a class="reference internal" href="example_shipdrift_leeway.html">Comparing Leeway and ShipDrift model</a></li> <li class="toctree-l2 current"><a class="current reference internal" href="#">Use Telemac (selafin) output</a></li> <li class="toctree-l2"><a class="reference internal" href="example_plast.html">Plastic</a></li> <li class="toctree-l2"><a class="reference internal" href="example_oil_verticalmixing.html">Oil vertical mixing</a></li> <li class="toctree-l2"><a class="reference internal" href="example_openoil.html">Openoil</a></li> <li class="toctree-l2"><a class="reference internal" href="example_backandforth.html">Back and forth</a></li> <li class="toctree-l2"><a class="reference internal" href="example_huge_output.html">Analysing huge output files</a></li> <li class="toctree-l2"><a class="reference internal" href="example_model_landmask.html">Model landmask</a></li> <li class="toctree-l2"><a class="reference internal" href="example_sediments.html">Sediment drift from Glomma river outlet</a></li> <li class="toctree-l2"><a class="reference internal" href="example_multi_seed.html">Multi seed</a></li> <li class="toctree-l2"><a class="reference internal" href="example_codegg.html">Cod egg</a></li> <li class="toctree-l2"><a class="reference internal" href="example_seafloor_interaction.html">Seafloor interaction</a></li> <li class="toctree-l2"><a class="reference internal" href="example_oilspill_seafloor.html">Seafloor oil spill</a></li> <li class="toctree-l2"><a class="reference internal" href="example_compare.html">Compare</a></li> <li class="toctree-l2"><a class="reference internal" href="example_oil_budget_noaa.html">Oil budget (NOAA)</a></li> <li class="toctree-l2"><a class="reference internal" href="example_manual_aggregate.html">Manual aggregate</a></li> <li class="toctree-l2"><a class="reference internal" href="example_macondo.html">Macondo</a></li> <li class="toctree-l2"><a class="reference internal" href="example_stokesdrift_profiles.html">Stokes drift vertical profiles</a></li> <li class="toctree-l2"><a class="reference internal" href="example_relative.html">Relative and absolute wind</a></li> <li class="toctree-l2"><a class="reference internal" href="example_sediments_resuspension.html">Sediment drift with resuspension</a></li> <li class="toctree-l2"><a class="reference internal" href="example_vertical_mixing.html">Vertical mixing</a></li> <li class="toctree-l2"><a class="reference internal" href="example_convolve_input.html">Convolve input</a></li> <li class="toctree-l2"><a class="reference internal" href="example_mixed_layer_depth.html">Mixing down to Mixed Layer Depth</a></li> <li class="toctree-l2"><a class="reference internal" href="example_reader_operators.html">Combining readers using operators</a></li> <li class="toctree-l2"><a class="reference internal" href="example_trajan.html">Trajan demo</a></li> <li class="toctree-l2"><a class="reference internal" href="example_generic.html">Generic example</a></li> <li class="toctree-l2"><a class="reference internal" href="example_oil_budget.html">Oil budget</a></li> <li class="toctree-l2"><a class="reference internal" href="example_schism_native.html">SCHISM native reader</a></li> <li class="toctree-l2"><a class="reference internal" href="example_biodegradation.html">Biodegradation of oil</a></li> <li class="toctree-l2"><a class="reference internal" href="example_leeway.html">Leeway</a></li> <li class="toctree-l2"><a class="reference internal" href="example_seed_geojson.html">Seeding from GeoJSON string</a></li> <li class="toctree-l2"><a class="reference internal" href="example_long_cmems_currents.html">CMEMS current components</a></li> <li class="toctree-l2"><a class="reference internal" href="example_leeway_capsizing.html">Leeway capsizing</a></li> <li class="toctree-l2"><a class="reference internal" href="example_coastline_options.html">Coastline interaction</a></li> <li class="toctree-l2"><a class="reference internal" href="example_coastline_options.html#coastline-option-stranding">Coastline option “stranding”</a></li> <li class="toctree-l2"><a class="reference internal" href="example_coastline_options.html#coastline-option-stranding-with-higher-precision">Coastline option “stranding” with higher precision</a></li> <li class="toctree-l2"><a class="reference internal" href="example_coastline_options.html#coastline-option-previous">Coastline option “previous”</a></li> <li class="toctree-l2"><a class="reference internal" href="example_coastline_options.html#coastline-option-none">Coastline option “none”</a></li> <li class="toctree-l2"><a class="reference internal" href="example_oilspill_seafloor_biodegradation.html">Biodegradation of oil at depth</a></li> <li class="toctree-l2"><a class="reference internal" href="example_current_from_drifter.html">Current from drifter</a></li> <li class="toctree-l2"><a class="reference internal" href="example_horizontal_diffusion.html">Horizontal diffusion</a></li> <li class="toctree-l2"><a class="reference internal" href="example_entrainment_rate_oil_types.html">Entrainment rate for light and heavy oils</a></li> <li class="toctree-l2"><a class="reference internal" href="example_compare_oilbudgets.html">Comparing oil budgets</a></li> <li class="toctree-l2"><a class="reference internal" href="example_chemicaldrift.html">ChemicalDrift - Transport and fate of organic compounds</a></li> <li class="toctree-l2"><a class="reference internal" href="example_long_leeway_backtrack.html">Leeway backtracking</a></li> <li class="toctree-l2"><a class="reference internal" href="example_long_radionuclides.html">Radionuclides</a></li> <li class="toctree-l2"><a class="reference internal" href="example_wind_drift_coefficient_from_trajectory.html">Retrieving wind drift factor from trajectory</a></li> <li class="toctree-l2"><a class="reference internal" href="example_wind_drift_coefficient_from_trajectory.html#alternative-method-using-skillscore">Alternative method, using skillscore</a></li> <li class="toctree-l2"><a class="reference internal" href="example_seed_demonstration.html">Seed demonstration</a></li> <li class="toctree-l2"><a class="reference internal" href="example_oil_thickness.html">Oil film thickness</a></li> <li class="toctree-l2"><a class="reference internal" href="example_droplet_distribution_compareJohansen2015.html">Droplet distribution</a></li> <li class="toctree-l2"><a class="reference internal" href="example_river_runoff.html">River runoff</a></li> <li class="toctree-l2"><a class="reference internal" href="example_wind_measurements.html">Using wind measurements</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../oil_types.html">Oil types</a></li> <li class="toctree-l1"><a class="reference internal" href="../interaction_with_coastline.html">Interaction with coastline</a></li> <li class="toctree-l1"><a class="reference internal" href="../docker.html">Using OpenDrift in a container</a></li> <li class="toctree-l1"><a class="reference internal" href="../gui.html">Graphical User Interface</a></li> <li class="toctree-l1"><a class="reference internal" href="../references.html">Publications</a></li> <li class="toctree-l1"><a class="reference internal" href="../services.html">Services using OpenDrift</a></li> <li class="toctree-l1"><a class="reference internal" href="../autoapi/index.html">API Reference</a></li> </ul> </div> </div> </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" > <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../index.html">OpenDrift</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="Page navigation"> <ul class="wy-breadcrumbs"> <li><a href="../index.html" class="icon icon-home" aria-label="Home"></a></li> <li class="breadcrumb-item"><a href="index.html">Gallery</a></li> <li class="breadcrumb-item active">Use Telemac (selafin) output</li> <li class="wy-breadcrumbs-aside"> <a href="../_sources/gallery/example_long_selafin.rst.txt" rel="nofollow"> View page source</a> </li> </ul> <hr/> </div> <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> <div itemprop="articleBody"> <div class="sphx-glr-download-link-note admonition note"> <p class="admonition-title">Note</p> <p><a class="reference internal" href="#sphx-glr-download-gallery-example-long-selafin-py"><span class="std std-ref">Go to the end</span></a> to download the full example code.</p> </div> <section class="sphx-glr-example-title" id="use-telemac-selafin-output"> <span id="sphx-glr-gallery-example-long-selafin-py"></span><h1>Use Telemac (selafin) output<a class="headerlink" href="#use-telemac-selafin-output" title="Link to this heading"></a></h1> <div class="highlight-Python notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span><span class="w"> </span><span class="nn">datetime</span><span class="w"> </span><span class="kn">import</span> <span class="n">timedelta</span><span class="p">,</span> <span class="n">datetime</span> <span class="kn">from</span><span class="w"> </span><span class="nn">os</span><span class="w"> </span><span class="kn">import</span> <span class="n">sep</span> <span class="kn">from</span><span class="w"> </span><span class="nn">pyproj</span><span class="w"> </span><span class="kn">import</span> <span class="n">Proj</span> <span class="kn">from</span><span class="w"> </span><span class="nn">opendrift.readers</span><span class="w"> </span><span class="kn">import</span> <span class="n">reader_telemac_selafin</span> <span class="kn">from</span><span class="w"> </span><span class="nn">opendrift.models.oceandrift</span><span class="w"> </span><span class="kn">import</span> <span class="n">OceanDrift</span> <span class="n">o</span> <span class="o">=</span> <span class="n">OceanDrift</span><span class="p">(</span><span class="n">loglevel</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span> <span class="n">filename</span><span class="o">=</span><span class="s1">'</span><span class="si">{}</span><span class="s1">Telemac_3D</span><span class="si">{}</span><span class="s1">r3d_tide_open_drift.slf'</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">o</span><span class="o">.</span><span class="n">test_data_folder</span><span class="p">(),</span><span class="n">sep</span><span class="p">)</span> <span class="c1">#Lambert North</span> <span class="n">proj</span><span class="o">=</span><span class="s2">"+proj=lcc +lat_1=49.50000000000001 +lat_0=49.50000000000001 +lon_0=0 </span><span class="se">\</span> <span class="s2"> +k_0=0.999877341 +x_0=600000 +y_0=200000 +a=6378249.2 +b=6356515 </span><span class="se">\</span> <span class="s2"> +units=m +no_defs"</span> <span class="n">start_time</span><span class="o">=</span> <span class="n">datetime</span><span class="p">(</span><span class="mi">2021</span><span class="p">,</span><span class="mi">1</span><span class="p">,</span><span class="mi">1</span><span class="p">,</span><span class="mi">00</span><span class="p">,</span><span class="mi">00</span><span class="p">)</span> <span class="n">selafin</span> <span class="o">=</span> <span class="n">reader_telemac_selafin</span><span class="o">.</span><span class="n">Reader</span><span class="p">(</span><span class="n">filename</span><span class="o">=</span><span class="n">filename</span><span class="p">,</span><span class="n">proj4</span> <span class="o">=</span> <span class="n">proj</span><span class="p">,</span> <span class="n">start_time</span><span class="o">=</span><span class="n">start_time</span><span class="p">)</span> <span class="n">o</span><span class="o">.</span><span class="n">add_reader</span><span class="p">(</span><span class="n">selafin</span><span class="p">)</span> <span class="n">o</span><span class="o">.</span><span class="n">set_config</span><span class="p">(</span><span class="s1">'general:coastline_action'</span><span class="p">,</span> <span class="s1">'previous'</span><span class="p">)</span> <span class="c1"># start_time = selafin.start_time generally wrong</span> <span class="n">time_step</span> <span class="o">=</span> <span class="n">timedelta</span><span class="p">(</span><span class="n">seconds</span><span class="o">=</span><span class="n">selafin</span><span class="o">.</span><span class="n">slf</span><span class="o">.</span><span class="n">tags</span><span class="p">[</span><span class="s2">"times"</span><span class="p">][</span><span class="mi">1</span><span class="p">])</span> <span class="n">length</span><span class="o">=</span><span class="n">timedelta</span><span class="p">(</span><span class="n">seconds</span><span class="o">=</span><span class="n">selafin</span><span class="o">.</span><span class="n">slf</span><span class="o">.</span><span class="n">tags</span><span class="p">[</span><span class="s2">"times"</span><span class="p">][</span><span class="o">-</span><span class="mi">1</span><span class="p">])</span> <span class="n">num_steps</span> <span class="o">=</span> <span class="nb">len</span><span class="p">(</span><span class="n">selafin</span><span class="o">.</span><span class="n">slf</span><span class="o">.</span><span class="n">tags</span><span class="p">[</span><span class="s2">"times"</span><span class="p">])</span> <span class="c1"># center seeds in the middle</span> <span class="n">x</span><span class="p">,</span><span class="n">y</span> <span class="o">=</span> <span class="p">(</span><span class="n">selafin</span><span class="o">.</span><span class="n">x</span><span class="o">.</span><span class="n">max</span><span class="p">()</span><span class="o">-</span><span class="n">selafin</span><span class="o">.</span><span class="n">x</span><span class="o">.</span><span class="n">min</span><span class="p">())</span><span class="o">/</span><span class="mi">2</span><span class="o">+</span><span class="n">selafin</span><span class="o">.</span><span class="n">x</span><span class="o">.</span><span class="n">min</span><span class="p">(),</span>\ <span class="p">(</span><span class="n">selafin</span><span class="o">.</span><span class="n">y</span><span class="o">.</span><span class="n">max</span><span class="p">()</span><span class="o">-</span><span class="n">selafin</span><span class="o">.</span><span class="n">y</span><span class="o">.</span><span class="n">min</span><span class="p">())</span><span class="o">/</span><span class="mi">2</span><span class="o">+</span><span class="n">selafin</span><span class="o">.</span><span class="n">y</span><span class="o">.</span><span class="n">min</span><span class="p">()</span> <span class="n">p</span><span class="o">=</span> <span class="n">Proj</span><span class="p">(</span><span class="n">proj</span><span class="p">,</span> <span class="n">preserve_units</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span> <span class="n">lon</span><span class="p">,</span> <span class="n">lat</span> <span class="o">=</span> <span class="n">p</span><span class="p">(</span><span class="n">x</span><span class="p">,</span><span class="n">y</span><span class="p">,</span><span class="n">inverse</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span> <span class="n">o</span><span class="o">.</span><span class="n">seed_elements</span><span class="p">(</span><span class="n">lon</span><span class="o">=</span><span class="n">lon</span><span class="p">,</span> <span class="n">lat</span><span class="o">=</span><span class="n">lat</span><span class="p">,</span> <span class="n">radius</span><span class="o">=</span><span class="mi">20000</span><span class="p">,</span> <span class="n">number</span><span class="o">=</span> <span class="mi">200</span><span class="p">,</span> <span class="n">z</span><span class="o">=</span> <span class="mi">0</span><span class="p">,</span> \ <span class="n">time</span><span class="o">=</span> <span class="n">start_time</span><span class="p">)</span> <span class="n">o</span><span class="o">.</span><span class="n">run</span><span class="p">(</span><span class="n">time_step</span><span class="o">=</span><span class="n">time_step</span><span class="o">/</span><span class="mi">10</span><span class="p">,</span> <span class="n">duration</span><span class="o">=</span><span class="n">length</span><span class="p">)</span> <span class="n">o</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">fast</span> <span class="o">=</span> <span class="kc">True</span><span class="p">)</span> </pre></div> </div> <div class="sphx-glr-footer sphx-glr-footer-example docutils container" id="sphx-glr-download-gallery-example-long-selafin-py"> <div class="sphx-glr-download sphx-glr-download-jupyter docutils container"> <p><a class="reference download internal" download="" href="../_downloads/ca1dbdf2f72d6993c872eaa3741bf3ac/example_long_selafin.ipynb"><code class="xref download docutils literal notranslate"><span class="pre">Download</span> <span class="pre">Jupyter</span> <span class="pre">notebook:</span> <span class="pre">example_long_selafin.ipynb</span></code></a></p> </div> <div class="sphx-glr-download sphx-glr-download-python docutils container"> <p><a class="reference download internal" download="" href="../_downloads/380746542117c62de6d6716d4ad5da92/example_long_selafin.py"><code class="xref download docutils literal notranslate"><span class="pre">Download</span> <span class="pre">Python</span> <span class="pre">source</span> <span class="pre">code:</span> <span class="pre">example_long_selafin.py</span></code></a></p> </div> <div class="sphx-glr-download sphx-glr-download-zip docutils container"> <p><a class="reference download internal" download="" href="../_downloads/f6bd7946de6f2aa6fd46105ea02ff6c9/example_long_selafin.zip"><code class="xref download docutils literal notranslate"><span class="pre">Download</span> <span class="pre">zipped:</span> <span class="pre">example_long_selafin.zip</span></code></a></p> </div> </div> <p class="sphx-glr-signature"><a class="reference external" href="https://sphinx-gallery.github.io">Gallery generated by Sphinx-Gallery</a></p> </section> </div> </div> <footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer"> <a href="example_shipdrift_leeway.html" class="btn btn-neutral float-left" title="Comparing Leeway and ShipDrift model" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a> <a href="example_plast.html" class="btn btn-neutral float-right" title="Plastic" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a> </div> <hr/> <div role="contentinfo"> <p>© Copyright 2020, Knut-Frode Dagestad (knutfd@met.no) and Gaute Hope (gauteh@met.no)..</p> </div> Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. </footer> </div> </div> </section> </div> <script> jQuery(function () { SphinxRtdTheme.Navigation.enable(true); }); </script> </body> </html>