<!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>River runoff — 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="Using wind measurements" href="example_wind_measurements.html" /> <link rel="prev" title="Droplet distribution" href="example_droplet_distribution_compareJohansen2015.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_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_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_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"><a class="reference internal" href="example_long_selafin.html">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_trajan.html">Trajan demo</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_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_generic.html">Generic example</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">Retieving 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 current"><a class="current reference internal" href="#">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">River runoff</li> <li class="wy-breadcrumbs-aside"> <a href="../_sources/gallery/example_river_runoff.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-river-runoff-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="river-runoff"> <span id="sphx-glr-gallery-example-river-runoff-py"></span><h1>River runoff<a class="headerlink" href="#river-runoff" title="Link to this heading"></a></h1> <div class="highlight-Python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span><span class="w"> </span><span class="nn">os</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">datetime</span><span class="p">,</span> <span class="n">timedelta</span> <span class="kn">import</span><span class="w"> </span><span class="nn">numpy</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nn">np</span> <span class="kn">import</span><span class="w"> </span><span class="nn">matplotlib.pyplot</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nn">plt</span> <span class="kn">from</span><span class="w"> </span><span class="nn">matplotlib.dates</span><span class="w"> </span><span class="kn">import</span> <span class="n">DateFormatter</span> <span class="kn">import</span><span class="w"> </span><span class="nn">opendrift</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="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_oscillating</span> <span class="n">outfile</span> <span class="o">=</span> <span class="s1">'runoff.nc'</span> <span class="c1"># Raw simulation output</span> <span class="n">histogram_file</span> <span class="o">=</span> <span class="s1">'runoff_histogram.nc'</span> </pre></div> </div> <p>First make a simulation with two seedings, marked by <em>origin_marker</em></p> <div class="highlight-Python notranslate"><div class="highlight"><pre><span></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">20</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">'drift:horizontal_diffusivity'</span><span class="p">,</span> <span class="mi">300</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="n">t1</span> <span class="o">=</span> <span class="n">datetime</span><span class="o">.</span><span class="n">now</span><span class="p">()</span> <span class="n">t2</span> <span class="o">=</span> <span class="n">t1</span> <span class="o">+</span> <span class="n">timedelta</span><span class="p">(</span><span class="n">hours</span><span class="o">=</span><span class="mi">48</span><span class="p">)</span> <span class="n">reader_x</span> <span class="o">=</span> <span class="n">reader_oscillating</span><span class="o">.</span><span class="n">Reader</span><span class="p">(</span><span class="s1">'x_sea_water_velocity'</span><span class="p">,</span> <span class="n">period_seconds</span><span class="o">=</span><span class="mi">3600</span><span class="o">*</span><span class="mi">24</span><span class="p">,</span> <span class="n">amplitude</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">zero_time</span><span class="o">=</span><span class="n">t1</span><span class="p">)</span> <span class="n">reader_y</span> <span class="o">=</span> <span class="n">reader_oscillating</span><span class="o">.</span><span class="n">Reader</span><span class="p">(</span><span class="s1">'y_sea_water_velocity'</span><span class="p">,</span> <span class="n">period_seconds</span><span class="o">=</span><span class="mi">3600</span><span class="o">*</span><span class="mi">72</span><span class="p">,</span> <span class="n">amplitude</span><span class="o">=</span><span class="mf">.5</span><span class="p">,</span> <span class="n">zero_time</span><span class="o">=</span><span class="n">t2</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">reader_x</span><span class="p">,</span> <span class="n">reader_y</span><span class="p">])</span> <span class="n">number</span> <span class="o">=</span> <span class="mi">25000</span> <span class="n">o</span><span class="o">.</span><span class="n">seed_elements</span><span class="p">(</span><span class="n">time</span><span class="o">=</span><span class="p">[</span><span class="n">t1</span><span class="p">,</span> <span class="n">t2</span><span class="p">],</span> <span class="n">lon</span><span class="o">=</span><span class="mf">9.017931</span><span class="p">,</span> <span class="n">lat</span><span class="o">=</span><span class="mf">58.562702</span><span class="p">,</span> <span class="n">number</span><span class="o">=</span><span class="n">number</span><span class="p">,</span> <span class="n">origin_marker_name</span><span class="o">=</span><span class="s1">'River 1'</span><span class="p">)</span> <span class="c1"># River 1</span> <span class="n">o</span><span class="o">.</span><span class="n">seed_elements</span><span class="p">(</span><span class="n">time</span><span class="o">=</span><span class="p">[</span><span class="n">t1</span><span class="p">,</span> <span class="n">t2</span><span class="p">],</span> <span class="n">lon</span><span class="o">=</span><span class="mf">8.824815</span><span class="p">,</span> <span class="n">lat</span><span class="o">=</span><span class="mf">58.425648</span><span class="p">,</span> <span class="n">number</span><span class="o">=</span><span class="n">number</span><span class="p">,</span> <span class="n">origin_marker_name</span><span class="o">=</span><span class="s1">'River 2'</span><span class="p">)</span> <span class="c1"># River 2</span> <span class="n">seed_times</span> <span class="o">=</span> <span class="n">o</span><span class="o">.</span><span class="n">elements_scheduled_time</span><span class="p">[</span><span class="mi">0</span><span class="p">:</span><span class="n">number</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">duration</span><span class="o">=</span><span class="n">timedelta</span><span class="p">(</span><span class="n">hours</span><span class="o">=</span><span class="mi">48</span><span class="p">),</span> <span class="n">time_step</span><span class="o">=</span><span class="mi">1800</span><span class="p">,</span> <span class="n">time_step_output</span><span class="o">=</span><span class="mi">3600</span><span class="p">,</span> <span class="n">outfile</span><span class="o">=</span><span class="n">outfile</span><span class="p">)</span> </pre></div> </div> <div class="sphx-glr-script-out highlight-none notranslate"><div class="highlight"><pre><span></span>21:56:13 INFO opendrift:509: OpenDriftSimulation initialised (version 1.13.0 / v1.13.0-61-gf300067) 21:56:13 INFO opendrift.models.basemodel.environment:206: Adding a dynamical landmask with max. priority based on assumed maximum speed of 2.0 m/s. Adding a customised landmask may be faster... 21:56:18 INFO opendrift.models.basemodel.environment:233: Fallback values will be used for the following variables which have no readers: 21:56:18 INFO opendrift.models.basemodel.environment:236: sea_surface_height: 0.000000 21:56:18 INFO opendrift.models.basemodel.environment:236: x_wind: 0.000000 21:56:18 INFO opendrift.models.basemodel.environment:236: y_wind: 0.000000 21:56:18 INFO opendrift.models.basemodel.environment:236: upward_sea_water_velocity: 0.000000 21:56:18 INFO opendrift.models.basemodel.environment:236: ocean_vertical_diffusivity: 0.000000 21:56:18 INFO opendrift.models.basemodel.environment:236: sea_surface_wave_significant_height: 0.000000 21:56:18 INFO opendrift.models.basemodel.environment:236: sea_surface_wave_stokes_drift_x_velocity: 0.000000 21:56:18 INFO opendrift.models.basemodel.environment:236: sea_surface_wave_stokes_drift_y_velocity: 0.000000 21:56:18 INFO opendrift.models.basemodel.environment:236: sea_surface_wave_period_at_variance_spectral_density_maximum: 0.000000 21:56:18 INFO opendrift.models.basemodel.environment:236: sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment: 0.000000 21:56:18 INFO opendrift.models.basemodel.environment:236: sea_surface_swell_wave_to_direction: 0.000000 21:56:18 INFO opendrift.models.basemodel.environment:236: sea_surface_swell_wave_peak_period_from_variance_spectral_density: 0.000000 21:56:18 INFO opendrift.models.basemodel.environment:236: sea_surface_swell_wave_significant_height: 0.000000 21:56:18 INFO opendrift.models.basemodel.environment:236: sea_surface_wind_wave_to_direction: 0.000000 21:56:18 INFO opendrift.models.basemodel.environment:236: sea_surface_wind_wave_mean_period: 0.000000 21:56:18 INFO opendrift.models.basemodel.environment:236: sea_surface_wind_wave_significant_height: 0.000000 21:56:18 INFO opendrift.models.basemodel.environment:236: surface_downward_x_stress: 0.000000 21:56:18 INFO opendrift.models.basemodel.environment:236: surface_downward_y_stress: 0.000000 21:56:18 INFO opendrift.models.basemodel.environment:236: turbulent_kinetic_energy: 0.000000 21:56:18 INFO opendrift.models.basemodel.environment:236: turbulent_generic_length_scale: 0.000000 21:56:18 INFO opendrift.models.basemodel.environment:236: ocean_mixed_layer_thickness: 50.000000 21:56:18 INFO opendrift.models.basemodel.environment:236: sea_floor_depth_below_sea_level: 10000.000000 21:56:18 INFO opendrift:919: Using existing reader for land_binary_mask 21:56:18 INFO opendrift:930: All points are in ocean 21:56:18 INFO opendrift:2056: 2025-03-05 21:56:13.949595 - step 1 of 96 - 522 active elements (0 deactivated) 21:56:18 INFO opendrift:2056: 2025-03-05 22:26:13.949595 - step 2 of 96 - 1042 active elements (0 deactivated) 21:56:20 INFO opendrift:2056: 2025-03-05 22:56:13.949595 - step 3 of 96 - 1564 active elements (0 deactivated) 21:56:20 INFO opendrift:2056: 2025-03-05 23:26:13.949595 - step 4 of 96 - 2084 active elements (0 deactivated) 21:56:20 INFO opendrift:2056: 2025-03-05 23:56:13.949595 - step 5 of 96 - 2606 active elements (0 deactivated) 21:56:20 INFO opendrift:2056: 2025-03-06 00:26:13.949595 - step 6 of 96 - 3126 active elements (0 deactivated) 21:56:20 INFO opendrift:2056: 2025-03-06 00:56:13.949595 - step 7 of 96 - 3646 active elements (0 deactivated) 21:56:20 INFO opendrift:2056: 2025-03-06 01:26:13.949595 - step 8 of 96 - 4168 active elements (0 deactivated) 21:56:20 INFO opendrift:2056: 2025-03-06 01:56:13.949595 - step 9 of 96 - 4688 active elements (0 deactivated) 21:56:20 INFO opendrift:2056: 2025-03-06 02:26:13.949595 - step 10 of 96 - 5210 active elements (0 deactivated) 21:56:20 INFO opendrift:2056: 2025-03-06 02:56:13.949595 - step 11 of 96 - 5730 active elements (0 deactivated) 21:56:20 INFO opendrift:2056: 2025-03-06 03:26:13.949595 - step 12 of 96 - 6250 active elements (0 deactivated) 21:56:20 INFO opendrift:2056: 2025-03-06 03:56:13.949595 - step 13 of 96 - 6772 active elements (0 deactivated) 21:56:21 INFO opendrift:2056: 2025-03-06 04:26:13.949595 - step 14 of 96 - 7292 active elements (0 deactivated) 21:56:21 INFO opendrift:2056: 2025-03-06 04:56:13.949595 - step 15 of 96 - 7814 active elements (0 deactivated) 21:56:21 INFO opendrift:2056: 2025-03-06 05:26:13.949595 - step 16 of 96 - 8334 active elements (0 deactivated) 21:56:21 INFO opendrift:2056: 2025-03-06 05:56:13.949595 - step 17 of 96 - 8854 active elements (0 deactivated) 21:56:21 INFO opendrift:2056: 2025-03-06 06:26:13.949595 - step 18 of 96 - 9376 active elements (0 deactivated) 21:56:21 INFO opendrift:2056: 2025-03-06 06:56:13.949595 - step 19 of 96 - 9896 active elements (0 deactivated) 21:56:21 INFO opendrift:2056: 2025-03-06 07:26:13.949595 - step 20 of 96 - 10418 active elements (0 deactivated) 21:56:21 INFO opendrift:2056: 2025-03-06 07:56:13.949595 - step 21 of 96 - 10938 active elements (0 deactivated) 21:56:21 INFO opendrift:2056: 2025-03-06 08:26:13.949595 - step 22 of 96 - 11458 active elements (0 deactivated) 21:56:21 INFO opendrift:2056: 2025-03-06 08:56:13.949595 - step 23 of 96 - 11980 active elements (0 deactivated) 21:56:21 INFO opendrift:2056: 2025-03-06 09:26:13.949595 - step 24 of 96 - 12500 active elements (0 deactivated) 21:56:21 INFO opendrift:2056: 2025-03-06 09:56:13.949595 - step 25 of 96 - 13022 active elements (0 deactivated) 21:56:22 INFO opendrift:2056: 2025-03-06 10:26:13.949595 - step 26 of 96 - 13542 active elements (0 deactivated) 21:56:22 INFO opendrift:2056: 2025-03-06 10:56:13.949595 - step 27 of 96 - 14062 active elements (0 deactivated) 21:56:22 INFO opendrift:2056: 2025-03-06 11:26:13.949595 - step 28 of 96 - 14584 active elements (0 deactivated) 21:56:22 INFO opendrift:2056: 2025-03-06 11:56:13.949595 - step 29 of 96 - 15104 active elements (0 deactivated) 21:56:22 INFO opendrift:2056: 2025-03-06 12:26:13.949595 - step 30 of 96 - 15626 active elements (0 deactivated) 21:56:22 INFO opendrift:2056: 2025-03-06 12:56:13.949595 - step 31 of 96 - 16146 active elements (0 deactivated) 21:56:22 INFO opendrift:2056: 2025-03-06 13:26:13.949595 - step 32 of 96 - 16668 active elements (0 deactivated) 21:56:22 INFO opendrift:2056: 2025-03-06 13:56:13.949595 - step 33 of 96 - 17188 active elements (0 deactivated) 21:56:22 INFO opendrift:2056: 2025-03-06 14:26:13.949595 - step 34 of 96 - 17708 active elements (0 deactivated) 21:56:22 INFO opendrift:2056: 2025-03-06 14:56:13.949595 - step 35 of 96 - 18230 active elements (0 deactivated) 21:56:23 INFO opendrift:2056: 2025-03-06 15:26:13.949595 - step 36 of 96 - 18750 active elements (0 deactivated) 21:56:23 INFO opendrift:2056: 2025-03-06 15:56:13.949595 - step 37 of 96 - 19272 active elements (0 deactivated) 21:56:23 INFO opendrift:2056: 2025-03-06 16:26:13.949595 - step 38 of 96 - 19792 active elements (0 deactivated) 21:56:23 INFO opendrift:2056: 2025-03-06 16:56:13.949595 - step 39 of 96 - 20312 active elements (0 deactivated) 21:56:23 INFO opendrift:2056: 2025-03-06 17:26:13.949595 - step 40 of 96 - 20834 active elements (0 deactivated) 21:56:23 INFO opendrift:2056: 2025-03-06 17:56:13.949595 - step 41 of 96 - 21354 active elements (0 deactivated) 21:56:23 INFO opendrift:2056: 2025-03-06 18:26:13.949595 - step 42 of 96 - 21876 active elements (0 deactivated) 21:56:23 INFO opendrift:2056: 2025-03-06 18:56:13.949595 - step 43 of 96 - 22396 active elements (0 deactivated) 21:56:24 INFO opendrift:2056: 2025-03-06 19:26:13.949595 - step 44 of 96 - 22916 active elements (0 deactivated) 21:56:24 INFO opendrift:2056: 2025-03-06 19:56:13.949595 - step 45 of 96 - 23438 active elements (0 deactivated) 21:56:24 INFO opendrift:2056: 2025-03-06 20:26:13.949595 - step 46 of 96 - 23958 active elements (0 deactivated) 21:56:24 INFO opendrift:2056: 2025-03-06 20:56:13.949595 - step 47 of 96 - 24480 active elements (0 deactivated) 21:56:24 INFO opendrift:2056: 2025-03-06 21:26:13.949595 - step 48 of 96 - 25000 active elements (0 deactivated) 21:56:24 INFO opendrift:2056: 2025-03-06 21:56:13.949595 - step 49 of 96 - 25520 active elements (0 deactivated) 21:56:25 INFO opendrift:2056: 2025-03-06 22:26:13.949595 - step 50 of 96 - 26042 active elements (0 deactivated) 21:56:25 INFO opendrift:2056: 2025-03-06 22:56:13.949595 - step 51 of 96 - 26562 active elements (0 deactivated) 21:56:25 INFO opendrift:2056: 2025-03-06 23:26:13.949595 - step 52 of 96 - 27084 active elements (0 deactivated) 21:56:25 INFO opendrift:2056: 2025-03-06 23:56:13.949595 - step 53 of 96 - 27604 active elements (0 deactivated) 21:56:25 INFO opendrift:2056: 2025-03-07 00:26:13.949595 - step 54 of 96 - 28124 active elements (0 deactivated) 21:56:25 INFO opendrift:2056: 2025-03-07 00:56:13.949595 - step 55 of 96 - 28646 active elements (0 deactivated) 21:56:26 INFO opendrift:2056: 2025-03-07 01:26:13.949595 - step 56 of 96 - 29166 active elements (0 deactivated) 21:56:26 INFO opendrift:2056: 2025-03-07 01:56:13.949595 - step 57 of 96 - 29688 active elements (0 deactivated) 21:56:26 INFO opendrift:2056: 2025-03-07 02:26:13.949595 - step 58 of 96 - 30208 active elements (0 deactivated) 21:56:26 INFO opendrift:2056: 2025-03-07 02:56:13.949595 - step 59 of 96 - 30728 active elements (0 deactivated) 21:56:26 INFO opendrift:2056: 2025-03-07 03:26:13.949595 - step 60 of 96 - 31250 active elements (0 deactivated) 21:56:27 INFO opendrift:2056: 2025-03-07 03:56:13.949595 - step 61 of 96 - 31770 active elements (0 deactivated) 21:56:27 INFO opendrift:2056: 2025-03-07 04:26:13.949595 - step 62 of 96 - 32292 active elements (0 deactivated) 21:56:27 INFO opendrift:2056: 2025-03-07 04:56:13.949595 - step 63 of 96 - 32812 active elements (0 deactivated) 21:56:27 INFO opendrift:2056: 2025-03-07 05:26:13.949595 - step 64 of 96 - 33334 active elements (0 deactivated) 21:56:27 INFO opendrift:2056: 2025-03-07 05:56:13.949595 - step 65 of 96 - 33854 active elements (0 deactivated) 21:56:28 INFO opendrift:2056: 2025-03-07 06:26:13.949595 - step 66 of 96 - 34374 active elements (0 deactivated) 21:56:28 INFO opendrift:2056: 2025-03-07 06:56:13.949595 - step 67 of 96 - 34896 active elements (0 deactivated) 21:56:28 INFO opendrift:2056: 2025-03-07 07:26:13.949595 - step 68 of 96 - 35416 active elements (0 deactivated) 21:56:28 INFO opendrift:2056: 2025-03-07 07:56:13.949595 - step 69 of 96 - 35938 active elements (0 deactivated) 21:56:29 INFO opendrift:2056: 2025-03-07 08:26:13.949595 - step 70 of 96 - 36458 active elements (0 deactivated) 21:56:29 INFO opendrift:2056: 2025-03-07 08:56:13.949595 - step 71 of 96 - 36978 active elements (0 deactivated) 21:56:30 INFO opendrift:2056: 2025-03-07 09:26:13.949595 - step 72 of 96 - 37500 active elements (0 deactivated) 21:56:30 INFO opendrift:2056: 2025-03-07 09:56:13.949595 - step 73 of 96 - 38020 active elements (0 deactivated) 21:56:30 INFO opendrift:2056: 2025-03-07 10:26:13.949595 - step 74 of 96 - 38542 active elements (0 deactivated) 21:56:30 INFO opendrift:2056: 2025-03-07 10:56:13.949595 - step 75 of 96 - 39062 active elements (0 deactivated) 21:56:31 INFO opendrift:2056: 2025-03-07 11:26:13.949595 - step 76 of 96 - 39582 active elements (0 deactivated) 21:56:31 INFO opendrift:2056: 2025-03-07 11:56:13.949595 - step 77 of 96 - 40104 active elements (0 deactivated) 21:56:32 INFO opendrift:2056: 2025-03-07 12:26:13.949595 - step 78 of 96 - 40624 active elements (0 deactivated) 21:56:32 INFO opendrift:2056: 2025-03-07 12:56:13.949595 - step 79 of 96 - 41146 active elements (0 deactivated) 21:56:32 INFO opendrift:2056: 2025-03-07 13:26:13.949595 - step 80 of 96 - 41666 active elements (0 deactivated) 21:56:33 INFO opendrift:2056: 2025-03-07 13:56:13.949595 - step 81 of 96 - 42186 active elements (0 deactivated) 21:56:33 INFO opendrift:2056: 2025-03-07 14:26:13.949595 - step 82 of 96 - 42708 active elements (0 deactivated) 21:56:33 INFO opendrift:2056: 2025-03-07 14:56:13.949595 - step 83 of 96 - 43228 active elements (0 deactivated) 21:56:34 INFO opendrift:2056: 2025-03-07 15:26:13.949595 - step 84 of 96 - 43750 active elements (0 deactivated) 21:56:34 INFO opendrift:2056: 2025-03-07 15:56:13.949595 - step 85 of 96 - 44270 active elements (0 deactivated) 21:56:35 INFO opendrift:2056: 2025-03-07 16:26:13.949595 - step 86 of 96 - 44790 active elements (0 deactivated) 21:56:35 INFO opendrift:2056: 2025-03-07 16:56:13.949595 - step 87 of 96 - 45312 active elements (0 deactivated) 21:56:36 INFO opendrift:2056: 2025-03-07 17:26:13.949595 - step 88 of 96 - 45832 active elements (0 deactivated) 21:56:36 INFO opendrift:2056: 2025-03-07 17:56:13.949595 - step 89 of 96 - 46354 active elements (0 deactivated) 21:56:37 INFO opendrift:2056: 2025-03-07 18:26:13.949595 - step 90 of 96 - 46874 active elements (0 deactivated) 21:56:37 INFO opendrift:2056: 2025-03-07 18:56:13.949595 - step 91 of 96 - 47394 active elements (0 deactivated) 21:56:38 INFO opendrift:2056: 2025-03-07 19:26:13.949595 - step 92 of 96 - 47916 active elements (0 deactivated) 21:56:38 INFO opendrift:2056: 2025-03-07 19:56:13.949595 - step 93 of 96 - 48436 active elements (0 deactivated) 21:56:39 INFO opendrift:2056: 2025-03-07 20:26:13.949595 - step 94 of 96 - 48958 active elements (0 deactivated) 21:56:39 INFO opendrift:2056: 2025-03-07 20:56:13.949595 - step 95 of 96 - 49478 active elements (0 deactivated) 21:56:40 INFO opendrift:2056: 2025-03-07 21:26:13.949595 - step 96 of 96 - 50000 active elements (0 deactivated) </pre></div> </div> <div class="output_subarea output_html rendered_html output_result"> <div><svg style="position: absolute; width: 0; height: 0; overflow: hidden"> <defs> <symbol id="icon-database" viewBox="0 0 32 32"> <path d="M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z"></path> <path d="M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z"></path> <path d="M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z"></path> </symbol> <symbol id="icon-file-text2" viewBox="0 0 32 32"> <path d="M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z"></path> <path d="M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z"></path> <path d="M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z"></path> <path d="M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z"></path> </symbol> </defs> </svg> <style>/* CSS stylesheet for displaying xarray objects in jupyterlab. * */ :root { --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1)); --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54)); --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38)); --xr-border-color: var(--jp-border-color2, #e0e0e0); --xr-disabled-color: var(--jp-layout-color3, #bdbdbd); --xr-background-color: var(--jp-layout-color0, white); --xr-background-color-row-even: var(--jp-layout-color1, white); --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee); } html[theme="dark"], html[data-theme="dark"], body[data-theme="dark"], body.vscode-dark { --xr-font-color0: rgba(255, 255, 255, 1); --xr-font-color2: rgba(255, 255, 255, 0.54); --xr-font-color3: rgba(255, 255, 255, 0.38); --xr-border-color: #1f1f1f; --xr-disabled-color: #515151; --xr-background-color: #111111; --xr-background-color-row-even: #111111; --xr-background-color-row-odd: #313131; } .xr-wrap { display: block !important; min-width: 300px; max-width: 700px; } .xr-text-repr-fallback { /* fallback to plain text repr when CSS is not injected (untrusted notebook) */ display: none; } .xr-header { padding-top: 6px; padding-bottom: 6px; margin-bottom: 4px; border-bottom: solid 1px var(--xr-border-color); } .xr-header > div, .xr-header > ul { display: inline; margin-top: 0; margin-bottom: 0; } .xr-obj-type, .xr-array-name { margin-left: 2px; margin-right: 10px; } .xr-obj-type { color: var(--xr-font-color2); } .xr-sections { padding-left: 0 !important; display: grid; grid-template-columns: 150px auto auto 1fr 0 20px 0 20px; } .xr-section-item { display: contents; } .xr-section-item input { display: inline-block; opacity: 0; height: 0; } .xr-section-item input + label { color: var(--xr-disabled-color); } .xr-section-item input:enabled + label { cursor: pointer; color: var(--xr-font-color2); } .xr-section-item input:focus + label { border: 2px solid var(--xr-font-color0); } .xr-section-item input:enabled + label:hover { color: var(--xr-font-color0); } .xr-section-summary { grid-column: 1; color: var(--xr-font-color2); font-weight: 500; } .xr-section-summary > span { display: inline-block; padding-left: 0.5em; } .xr-section-summary-in:disabled + label { color: var(--xr-font-color2); } .xr-section-summary-in + label:before { display: inline-block; content: "►"; font-size: 11px; width: 15px; text-align: center; } .xr-section-summary-in:disabled + label:before { color: var(--xr-disabled-color); } .xr-section-summary-in:checked + label:before { content: "▼"; } .xr-section-summary-in:checked + label > span { display: none; } .xr-section-summary, .xr-section-inline-details { padding-top: 4px; padding-bottom: 4px; } .xr-section-inline-details { grid-column: 2 / -1; } .xr-section-details { display: none; grid-column: 1 / -1; margin-bottom: 5px; } .xr-section-summary-in:checked ~ .xr-section-details { display: contents; } .xr-array-wrap { grid-column: 1 / -1; display: grid; grid-template-columns: 20px auto; } .xr-array-wrap > label { grid-column: 1; vertical-align: top; } .xr-preview { color: var(--xr-font-color3); } .xr-array-preview, .xr-array-data { padding: 0 5px !important; grid-column: 2; } .xr-array-data, .xr-array-in:checked ~ .xr-array-preview { display: none; } .xr-array-in:checked ~ .xr-array-data, .xr-array-preview { display: inline-block; } .xr-dim-list { display: inline-block !important; list-style: none; padding: 0 !important; margin: 0; } .xr-dim-list li { display: inline-block; padding: 0; margin: 0; } .xr-dim-list:before { content: "("; } .xr-dim-list:after { content: ")"; } .xr-dim-list li:not(:last-child):after { content: ","; padding-right: 5px; } .xr-has-index { font-weight: bold; } .xr-var-list, .xr-var-item { display: contents; } .xr-var-item > div, .xr-var-item label, .xr-var-item > .xr-var-name span { background-color: var(--xr-background-color-row-even); margin-bottom: 0; } .xr-var-item > .xr-var-name:hover span { padding-right: 5px; } .xr-var-list > li:nth-child(odd) > div, .xr-var-list > li:nth-child(odd) > label, .xr-var-list > li:nth-child(odd) > .xr-var-name span { background-color: var(--xr-background-color-row-odd); } .xr-var-name { grid-column: 1; } .xr-var-dims { grid-column: 2; } .xr-var-dtype { grid-column: 3; text-align: right; color: var(--xr-font-color2); } .xr-var-preview { grid-column: 4; } .xr-index-preview { grid-column: 2 / 5; color: var(--xr-font-color2); } .xr-var-name, .xr-var-dims, .xr-var-dtype, .xr-preview, .xr-attrs dt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; } .xr-var-name:hover, .xr-var-dims:hover, .xr-var-dtype:hover, .xr-attrs dt:hover { overflow: visible; width: auto; z-index: 1; } .xr-var-attrs, .xr-var-data, .xr-index-data { display: none; background-color: var(--xr-background-color) !important; padding-bottom: 5px !important; } .xr-var-attrs-in:checked ~ .xr-var-attrs, .xr-var-data-in:checked ~ .xr-var-data, .xr-index-data-in:checked ~ .xr-index-data { display: block; } .xr-var-data > table { float: right; } .xr-var-name span, .xr-var-data, .xr-index-name div, .xr-index-data, .xr-attrs { padding-left: 25px !important; } .xr-attrs, .xr-var-attrs, .xr-var-data, .xr-index-data { grid-column: 1 / -1; } dl.xr-attrs { padding: 0; margin: 0; display: grid; grid-template-columns: 125px auto; } .xr-attrs dt, .xr-attrs dd { padding: 0; margin: 0; float: left; padding-right: 10px; width: auto; } .xr-attrs dt { font-weight: normal; grid-column: 1; } .xr-attrs dt:hover span { display: inline-block; background: var(--xr-background-color); padding-right: 10px; } .xr-attrs dd { grid-column: 2; white-space: pre-wrap; word-break: break-all; } .xr-icon-database, .xr-icon-file-text2, .xr-no-icon { display: inline-block; vertical-align: middle; width: 1em; height: 1.5em !important; stroke-width: 0; stroke: currentColor; fill: currentColor; } </style><pre class='xr-text-repr-fallback'><xarray.Dataset> Size: 373MB Dimensions: ( trajectory: 50000, time: 49) Coordinates: * trajectory (trajectory) int32 200kB ... * time (time) datetime64[ns] 392B ... Data variables: (12/35) status (trajectory, time) float64 20MB ... moving (trajectory, time) float64 20MB ... age_seconds (trajectory, time) float32 10MB ... origin_marker (trajectory, time) float64 20MB ... lon (trajectory, time) float32 10MB ... lat (trajectory, time) float32 10MB ... ... ... surface_downward_y_stress (trajectory, time) float32 10MB ... turbulent_kinetic_energy (trajectory, time) float32 10MB ... turbulent_generic_length_scale (trajectory, time) float32 10MB ... ocean_mixed_layer_thickness (trajectory, time) float32 10MB ... sea_floor_depth_below_sea_level (trajectory, time) float32 10MB ... land_binary_mask (trajectory, time) float32 10MB ... Attributes: (12/153) Conventions: ... standard_name_vocabulary: ... featureType: ... title: ... summary: ... keywords: ... ... ... geospatial_lon_units: ... geospatial_lon_resolution: ... runtime: ... geospatial_vertical_min: ... geospatial_vertical_max: ... geospatial_vertical_positive: ...</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-d6ef3621-b5c3-4c28-b81e-52c8432674a9' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-d6ef3621-b5c3-4c28-b81e-52c8432674a9' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span class='xr-has-index'>trajectory</span>: 50000</li><li><span class='xr-has-index'>time</span>: 49</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-086b64b5-3a01-496b-a31f-8c65fd12a5ab' class='xr-section-summary-in' type='checkbox' checked><label for='section-086b64b5-3a01-496b-a31f-8c65fd12a5ab' class='xr-section-summary' >Coordinates: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>trajectory</span></div><div class='xr-var-dims'>(trajectory)</div><div class='xr-var-dtype'>int32</div><div class='xr-var-preview xr-preview'>0 1 2 3 ... 49996 49997 49998 49999</div><input id='attrs-ccbb1757-248d-4532-8b06-40efc9b64a84' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-ccbb1757-248d-4532-8b06-40efc9b64a84' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-85412d89-8681-4034-be5e-e71a43ccaefc' class='xr-var-data-in' type='checkbox'><label for='data-85412d89-8681-4034-be5e-e71a43ccaefc' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>cf_role :</span></dt><dd>trajectory_id</dd></dl></div><div class='xr-var-data'><pre>array([ 0, 1, 2, ..., 49997, 49998, 49999], dtype=int32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>time</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>datetime64[ns]</div><div class='xr-var-preview xr-preview'>2025-03-05T21:56:13.949594880 .....</div><input id='attrs-64b4ab97-a839-44a2-99eb-db14546ba8ba' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-64b4ab97-a839-44a2-99eb-db14546ba8ba' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-8b6eddb4-f3b5-413d-8733-441b11eab84a' class='xr-var-data-in' type='checkbox'><label for='data-8b6eddb4-f3b5-413d-8733-441b11eab84a' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>standard_name :</span></dt><dd>time</dd><dt><span>long_name :</span></dt><dd>time</dd></dl></div><div class='xr-var-data'><pre>array(['2025-03-05T21:56:13.949594880', '2025-03-05T22:56:13.949594880', '2025-03-05T23:56:13.949594880', '2025-03-06T00:56:13.949594880', '2025-03-06T01:56:13.949594880', '2025-03-06T02:56:13.949594880', '2025-03-06T03:56:13.949594880', '2025-03-06T04:56:13.949594880', '2025-03-06T05:56:13.949594880', '2025-03-06T06:56:13.949594880', '2025-03-06T07:56:13.949594880', '2025-03-06T08:56:13.949594880', '2025-03-06T09:56:13.949594880', '2025-03-06T10:56:13.949594880', '2025-03-06T11:56:13.949594880', '2025-03-06T12:56:13.949594880', '2025-03-06T13:56:13.949594880', '2025-03-06T14:56:13.949594880', '2025-03-06T15:56:13.949594880', '2025-03-06T16:56:13.949594880', '2025-03-06T17:56:13.949594880', '2025-03-06T18:56:13.949594880', '2025-03-06T19:56:13.949594880', '2025-03-06T20:56:13.949594880', '2025-03-06T21:56:13.949594880', '2025-03-06T22:56:13.949594880', '2025-03-06T23:56:13.949594880', '2025-03-07T00:56:13.949594880', '2025-03-07T01:56:13.949594880', '2025-03-07T02:56:13.949594880', '2025-03-07T03:56:13.949594880', '2025-03-07T04:56:13.949594880', '2025-03-07T05:56:13.949594880', '2025-03-07T06:56:13.949594880', '2025-03-07T07:56:13.949594880', '2025-03-07T08:56:13.949594880', '2025-03-07T09:56:13.949594880', '2025-03-07T10:56:13.949594880', '2025-03-07T11:56:13.949594880', '2025-03-07T12:56:13.949594880', '2025-03-07T13:56:13.949594880', '2025-03-07T14:56:13.949594880', '2025-03-07T15:56:13.949594880', '2025-03-07T16:56:13.949594880', '2025-03-07T17:56:13.949594880', '2025-03-07T18:56:13.949594880', '2025-03-07T19:56:13.949594880', '2025-03-07T20:56:13.949594880', '2025-03-07T21:56:13.949594880'], dtype='datetime64[ns]')</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-611119dc-12b3-45b9-80ac-d8194e59d1ac' class='xr-section-summary-in' type='checkbox' ><label for='section-611119dc-12b3-45b9-80ac-d8194e59d1ac' class='xr-section-summary' >Data variables: <span>(35)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>status</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-9d61b8b7-4f72-4eef-8c6d-178f4403ef58' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-9d61b8b7-4f72-4eef-8c6d-178f4403ef58' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-3b696e46-f867-42d8-ab38-bc78aa85d351' class='xr-var-data-in' type='checkbox'><label for='data-3b696e46-f867-42d8-ab38-bc78aa85d351' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>valid_range :</span></dt><dd>[0 0]</dd><dt><span>flag_values :</span></dt><dd>0</dd><dt><span>flag_meanings :</span></dt><dd>active</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>moving</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-4e1ff9fa-1e83-49b7-83ee-e1d9aeb3f113' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-4e1ff9fa-1e83-49b7-83ee-e1d9aeb3f113' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-432d7b32-e07b-4b32-8663-7485997ae0d0' class='xr-var-data-in' type='checkbox'><label for='data-432d7b32-e07b-4b32-8663-7485997ae0d0' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>1</dd><dt><span>maxval :</span></dt><dd>1</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>age_seconds</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-33ca2e1a-58e2-45be-abd7-c144d6f34dff' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-33ca2e1a-58e2-45be-abd7-c144d6f34dff' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-58ee337e-f49c-4c4a-b148-46ef103096d7' class='xr-var-data-in' type='checkbox'><label for='data-58ee337e-f49c-4c4a-b148-46ef103096d7' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>s</dd><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>172800.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>origin_marker</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-65fdd500-b60e-400a-b15f-df83bd101137' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-65fdd500-b60e-400a-b15f-df83bd101137' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-574c154d-c0a4-4351-95e9-3bc6fbcfc6d3' class='xr-var-data-in' type='checkbox'><label for='data-574c154d-c0a4-4351-95e9-3bc6fbcfc6d3' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>unit :</span></dt><dd></dd><dt><span>description :</span></dt><dd>An integer kept constant during the simulation. Different values may be used for different seedings, to separate elements during analysis. With GUI, only a single seeding is possible.</dd><dt><span>flag_values :</span></dt><dd>[0 1]</dd><dt><span>flag_meanings :</span></dt><dd>River_1 River_2</dd><dt><span>minval :</span></dt><dd>0</dd><dt><span>maxval :</span></dt><dd>1</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>lon</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-ba06388f-c6d0-4f8f-9823-8ec228543669' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-ba06388f-c6d0-4f8f-9823-8ec228543669' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-8d71721e-a15c-4cc5-8fe5-1f92cebedf8f' class='xr-var-data-in' type='checkbox'><label for='data-8d71721e-a15c-4cc5-8fe5-1f92cebedf8f' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>degrees_east</dd><dt><span>standard_name :</span></dt><dd>longitude</dd><dt><span>long_name :</span></dt><dd>longitude</dd><dt><span>axis :</span></dt><dd>X</dd><dt><span>minval :</span></dt><dd>7.7095375</dd><dt><span>maxval :</span></dt><dd>10.389534</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>lat</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-499b2bfd-b1d0-4153-821b-ce560c2fabf7' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-499b2bfd-b1d0-4153-821b-ce560c2fabf7' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-448df986-15a7-4fc4-95b5-d9c6b3c456b7' class='xr-var-data-in' type='checkbox'><label for='data-448df986-15a7-4fc4-95b5-d9c6b3c456b7' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>degrees_north</dd><dt><span>standard_name :</span></dt><dd>latitude</dd><dt><span>long_name :</span></dt><dd>latitude</dd><dt><span>axis :</span></dt><dd>Y</dd><dt><span>minval :</span></dt><dd>57.61805</dd><dt><span>maxval :</span></dt><dd>58.619724</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>z</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-4223aa92-0494-4429-8bef-f9f69e44ea23' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-4223aa92-0494-4429-8bef-f9f69e44ea23' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-3fd8ec26-7722-42b8-8cc3-942bab6e96c8' class='xr-var-data-in' type='checkbox'><label for='data-3fd8ec26-7722-42b8-8cc3-942bab6e96c8' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>m</dd><dt><span>standard_name :</span></dt><dd>z</dd><dt><span>long_name :</span></dt><dd>vertical position</dd><dt><span>axis :</span></dt><dd>Z</dd><dt><span>positive :</span></dt><dd>up</dd><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>wind_drift_factor</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-985c24a1-2c37-438e-a0d2-5cd49820ccdd' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-985c24a1-2c37-438e-a0d2-5cd49820ccdd' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-679801c4-2c35-4f73-822a-a71cd32a4498' class='xr-var-data-in' type='checkbox'><label for='data-679801c4-2c35-4f73-822a-a71cd32a4498' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>1</dd><dt><span>description :</span></dt><dd>Elements at surface are moved with this fraction of the vind vector, in addition to currents and Stokes drift</dd><dt><span>minval :</span></dt><dd>0.02</dd><dt><span>maxval :</span></dt><dd>0.02</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>current_drift_factor</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-3173da7d-56df-418e-a345-639ef0312690' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-3173da7d-56df-418e-a345-639ef0312690' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-2315113a-936d-4b52-a312-2dc5145f7cc5' class='xr-var-data-in' type='checkbox'><label for='data-2315113a-936d-4b52-a312-2dc5145f7cc5' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>1</dd><dt><span>description :</span></dt><dd>Elements are moved with this fraction of the current vector, in addition to currents and Stokes drift</dd><dt><span>minval :</span></dt><dd>1.0</dd><dt><span>maxval :</span></dt><dd>1.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>terminal_velocity</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-a9b09303-d8f8-4bdc-b10f-a804895e3ffe' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-a9b09303-d8f8-4bdc-b10f-a804895e3ffe' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ed3cc114-d3f8-44f1-819e-6c6c292e74dc' class='xr-var-data-in' type='checkbox'><label for='data-ed3cc114-d3f8-44f1-819e-6c6c292e74dc' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>m/s</dd><dt><span>description :</span></dt><dd>Terminal rise/sinking velocity (buoyancy) in the ocean column</dd><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>x_sea_water_velocity</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-a1f7923b-67e2-4126-9256-137258ac7efa' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-a1f7923b-67e2-4126-9256-137258ac7efa' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-e10ea557-cfac-469b-827f-c6f269cb709e' class='xr-var-data-in' type='checkbox'><label for='data-e10ea557-cfac-469b-827f-c6f269cb709e' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>-1.0</dd><dt><span>maxval :</span></dt><dd>1.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>y_sea_water_velocity</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-100a95e0-cc5c-4cd6-95e0-46007b213996' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-100a95e0-cc5c-4cd6-95e0-46007b213996' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-6c5daa46-e390-4e5f-b267-7c64df45c8bc' class='xr-var-data-in' type='checkbox'><label for='data-6c5daa46-e390-4e5f-b267-7c64df45c8bc' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>-0.5</dd><dt><span>maxval :</span></dt><dd>-0.010907442</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>sea_surface_height</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-dc1f71d4-fbec-4705-8e57-7ea21f880302' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-dc1f71d4-fbec-4705-8e57-7ea21f880302' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9ccd1290-0c27-471f-a9d8-9ebf974d1613' class='xr-var-data-in' type='checkbox'><label for='data-9ccd1290-0c27-471f-a9d8-9ebf974d1613' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>x_wind</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-5f80fb58-a552-40d6-8229-bc82ac375fb6' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-5f80fb58-a552-40d6-8229-bc82ac375fb6' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-6d640a90-9fc8-4910-bbda-967a74e6024c' class='xr-var-data-in' type='checkbox'><label for='data-6d640a90-9fc8-4910-bbda-967a74e6024c' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>y_wind</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-da488f0d-01bd-4c0a-9e55-17055b93804d' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-da488f0d-01bd-4c0a-9e55-17055b93804d' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-51c66554-7f6d-4b64-9e2e-137b78c1fffd' class='xr-var-data-in' type='checkbox'><label for='data-51c66554-7f6d-4b64-9e2e-137b78c1fffd' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>upward_sea_water_velocity</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-b644f2f0-1020-4ef3-8dd9-7a1a880d570c' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-b644f2f0-1020-4ef3-8dd9-7a1a880d570c' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9554de35-2d53-4f56-81ce-94dba80e440d' class='xr-var-data-in' type='checkbox'><label for='data-9554de35-2d53-4f56-81ce-94dba80e440d' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>ocean_vertical_diffusivity</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-24b0e9fe-8237-4989-bb8d-120d7c5a004a' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-24b0e9fe-8237-4989-bb8d-120d7c5a004a' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-08f04cf0-0e08-4498-beb9-a7ee7053cbc4' class='xr-var-data-in' type='checkbox'><label for='data-08f04cf0-0e08-4498-beb9-a7ee7053cbc4' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>sea_surface_wave_significant_height</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-4c85f2cb-8a12-4648-abaa-2029c7af4425' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-4c85f2cb-8a12-4648-abaa-2029c7af4425' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-70ee1b0d-f2a2-4195-b76c-3b24c81d27b0' class='xr-var-data-in' type='checkbox'><label for='data-70ee1b0d-f2a2-4195-b76c-3b24c81d27b0' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>sea_surface_wave_stokes_drift_x_velocity</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-f6ba3453-a721-4471-a300-c6b074bc6b5f' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-f6ba3453-a721-4471-a300-c6b074bc6b5f' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-da297055-aed6-4905-8d3f-d7a0c5ad1358' class='xr-var-data-in' type='checkbox'><label for='data-da297055-aed6-4905-8d3f-d7a0c5ad1358' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>sea_surface_wave_stokes_drift_y_velocity</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-6b241890-460e-4692-b692-c172be329c51' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-6b241890-460e-4692-b692-c172be329c51' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-c891b8a9-1d89-45b4-90cd-e1c8e91bdbd9' class='xr-var-data-in' type='checkbox'><label for='data-c891b8a9-1d89-45b4-90cd-e1c8e91bdbd9' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>sea_surface_wave_period_at_variance_spectral_density_maximum</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-3ad1c263-cd20-4dea-9b71-144d1db39685' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-3ad1c263-cd20-4dea-9b71-144d1db39685' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-c59f5add-c9e7-4b14-a41f-6f24ecf48ad5' class='xr-var-data-in' type='checkbox'><label for='data-c59f5add-c9e7-4b14-a41f-6f24ecf48ad5' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-44dbae6e-1758-498c-b55f-738781d156dd' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-44dbae6e-1758-498c-b55f-738781d156dd' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-8f2c4652-02ef-47dd-9275-c201b15a1c9f' class='xr-var-data-in' type='checkbox'><label for='data-8f2c4652-02ef-47dd-9275-c201b15a1c9f' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>1.2566371</dd><dt><span>maxval :</span></dt><dd>1.2566371</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>sea_surface_swell_wave_to_direction</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-b4a0e774-fc39-4240-ae63-7365ab2c190a' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-b4a0e774-fc39-4240-ae63-7365ab2c190a' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-00b104c9-d903-480d-964b-713db595742a' class='xr-var-data-in' type='checkbox'><label for='data-00b104c9-d903-480d-964b-713db595742a' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>sea_surface_swell_wave_peak_period_from_variance_spectral_density</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-249a8b94-65dc-4414-98e0-c9cb96006705' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-249a8b94-65dc-4414-98e0-c9cb96006705' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-780857df-b009-4a50-913f-ecc761d1605e' class='xr-var-data-in' type='checkbox'><label for='data-780857df-b009-4a50-913f-ecc761d1605e' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>sea_surface_swell_wave_significant_height</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-eb4c783d-626d-4e84-8b21-73f5325801ba' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-eb4c783d-626d-4e84-8b21-73f5325801ba' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-26f8a75b-e574-429c-ade8-964b3bb05302' class='xr-var-data-in' type='checkbox'><label for='data-26f8a75b-e574-429c-ade8-964b3bb05302' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>sea_surface_wind_wave_to_direction</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-1328db87-a234-4fe2-a924-47659145f2c2' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-1328db87-a234-4fe2-a924-47659145f2c2' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ac1a3966-3d40-44c6-a56b-19d19def94dd' class='xr-var-data-in' type='checkbox'><label for='data-ac1a3966-3d40-44c6-a56b-19d19def94dd' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>sea_surface_wind_wave_mean_period</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-3e93158b-9062-4901-8990-19c13e91d482' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-3e93158b-9062-4901-8990-19c13e91d482' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-971335b5-140a-4031-99a6-2e9df72a786f' class='xr-var-data-in' type='checkbox'><label for='data-971335b5-140a-4031-99a6-2e9df72a786f' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>sea_surface_wind_wave_significant_height</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-72a086a5-e430-42d8-93e0-7648d96e6d0e' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-72a086a5-e430-42d8-93e0-7648d96e6d0e' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-22f2c575-1d5e-4843-9aa4-ccc5cc3180b0' class='xr-var-data-in' type='checkbox'><label for='data-22f2c575-1d5e-4843-9aa4-ccc5cc3180b0' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>surface_downward_x_stress</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-f8472fa7-2997-454d-ac60-77435d83d672' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-f8472fa7-2997-454d-ac60-77435d83d672' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-7aa5508d-8662-4ba9-ba86-c10b75b76053' class='xr-var-data-in' type='checkbox'><label for='data-7aa5508d-8662-4ba9-ba86-c10b75b76053' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>surface_downward_y_stress</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-1c45e275-b638-4cc9-9a83-02f5e58c8ebf' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-1c45e275-b638-4cc9-9a83-02f5e58c8ebf' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-0080f228-cf0b-46eb-ad56-3813f48c8028' class='xr-var-data-in' type='checkbox'><label for='data-0080f228-cf0b-46eb-ad56-3813f48c8028' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>turbulent_kinetic_energy</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-04adb11d-1721-435a-95dd-89573d627d8f' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-04adb11d-1721-435a-95dd-89573d627d8f' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-5acee825-320b-43be-8f44-b518a46f5521' class='xr-var-data-in' type='checkbox'><label for='data-5acee825-320b-43be-8f44-b518a46f5521' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>turbulent_generic_length_scale</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-8b64b879-2eb2-469e-9c40-748447bfc22e' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-8b64b879-2eb2-469e-9c40-748447bfc22e' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-f229ca7c-c00f-463d-a7ba-bb2dcfbd5d5f' class='xr-var-data-in' type='checkbox'><label for='data-f229ca7c-c00f-463d-a7ba-bb2dcfbd5d5f' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>ocean_mixed_layer_thickness</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-30963c02-4d8a-43ab-b004-d7414a2684eb' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-30963c02-4d8a-43ab-b004-d7414a2684eb' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-8a4816a4-3662-414c-8282-5a1252ba61fc' class='xr-var-data-in' type='checkbox'><label for='data-8a4816a4-3662-414c-8282-5a1252ba61fc' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>50.0</dd><dt><span>maxval :</span></dt><dd>50.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>sea_floor_depth_below_sea_level</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-a18c97e1-d211-40e3-9e62-2b68b0f56189' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-a18c97e1-d211-40e3-9e62-2b68b0f56189' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9dae4290-f790-4af7-999f-2d0f3d5e58b7' class='xr-var-data-in' type='checkbox'><label for='data-9dae4290-f790-4af7-999f-2d0f3d5e58b7' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>10000.0</dd><dt><span>maxval :</span></dt><dd>10000.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>land_binary_mask</span></div><div class='xr-var-dims'>(trajectory, time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-ebfef3a9-fd62-41db-800c-4680ec0bc6eb' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-ebfef3a9-fd62-41db-800c-4680ec0bc6eb' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-b168a1b2-6731-4934-8e5d-d16a6be31113' class='xr-var-data-in' type='checkbox'><label for='data-b168a1b2-6731-4934-8e5d-d16a6be31113' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>minval :</span></dt><dd>0.0</dd><dt><span>maxval :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[2450000 values with dtype=float32]</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-01e03d93-905a-4685-8196-8a19b0cbaafe' class='xr-section-summary-in' type='checkbox' ><label for='section-01e03d93-905a-4685-8196-8a19b0cbaafe' class='xr-section-summary' >Indexes: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>trajectory</div></div><div class='xr-index-preview'>PandasIndex</div><input type='checkbox' disabled/><label></label><input id='index-3ed17db8-20ba-4fb9-9f63-35ddaa005b03' class='xr-index-data-in' type='checkbox'/><label for='index-3ed17db8-20ba-4fb9-9f63-35ddaa005b03' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, ... 49990, 49991, 49992, 49993, 49994, 49995, 49996, 49997, 49998, 49999], dtype='int32', name='trajectory', length=50000))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>time</div></div><div class='xr-index-preview'>PandasIndex</div><input type='checkbox' disabled/><label></label><input id='index-56e3c0af-4fcc-4be5-977b-0021e0d803a7' class='xr-index-data-in' type='checkbox'/><label for='index-56e3c0af-4fcc-4be5-977b-0021e0d803a7' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(DatetimeIndex(['2025-03-05 21:56:13.949594880', '2025-03-05 22:56:13.949594880', '2025-03-05 23:56:13.949594880', '2025-03-06 00:56:13.949594880', '2025-03-06 01:56:13.949594880', '2025-03-06 02:56:13.949594880', '2025-03-06 03:56:13.949594880', '2025-03-06 04:56:13.949594880', '2025-03-06 05:56:13.949594880', '2025-03-06 06:56:13.949594880', '2025-03-06 07:56:13.949594880', '2025-03-06 08:56:13.949594880', '2025-03-06 09:56:13.949594880', '2025-03-06 10:56:13.949594880', '2025-03-06 11:56:13.949594880', '2025-03-06 12:56:13.949594880', '2025-03-06 13:56:13.949594880', '2025-03-06 14:56:13.949594880', '2025-03-06 15:56:13.949594880', '2025-03-06 16:56:13.949594880', '2025-03-06 17:56:13.949594880', '2025-03-06 18:56:13.949594880', '2025-03-06 19:56:13.949594880', '2025-03-06 20:56:13.949594880', '2025-03-06 21:56:13.949594880', '2025-03-06 22:56:13.949594880', '2025-03-06 23:56:13.949594880', '2025-03-07 00:56:13.949594880', '2025-03-07 01:56:13.949594880', '2025-03-07 02:56:13.949594880', '2025-03-07 03:56:13.949594880', '2025-03-07 04:56:13.949594880', '2025-03-07 05:56:13.949594880', '2025-03-07 06:56:13.949594880', '2025-03-07 07:56:13.949594880', '2025-03-07 08:56:13.949594880', '2025-03-07 09:56:13.949594880', '2025-03-07 10:56:13.949594880', '2025-03-07 11:56:13.949594880', '2025-03-07 12:56:13.949594880', '2025-03-07 13:56:13.949594880', '2025-03-07 14:56:13.949594880', '2025-03-07 15:56:13.949594880', '2025-03-07 16:56:13.949594880', '2025-03-07 17:56:13.949594880', '2025-03-07 18:56:13.949594880', '2025-03-07 19:56:13.949594880', '2025-03-07 20:56:13.949594880', '2025-03-07 21:56:13.949594880'], dtype='datetime64[ns]', name='time', freq=None))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-ee32012d-b59c-4207-b402-fad7e432d5fe' class='xr-section-summary-in' type='checkbox' ><label for='section-ee32012d-b59c-4207-b402-fad7e432d5fe' class='xr-section-summary' >Attributes: <span>(153)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>Conventions :</span></dt><dd>CF-1.11, ACDD-1.3</dd><dt><span>standard_name_vocabulary :</span></dt><dd>CF Standard Name Table v85</dd><dt><span>featureType :</span></dt><dd>trajectory</dd><dt><span>title :</span></dt><dd>OpenDrift trajectory simulation</dd><dt><span>summary :</span></dt><dd>Output from simulation with OpenDrift framework</dd><dt><span>keywords :</span></dt><dd>trajectory, drift, lagrangian, simulation</dd><dt><span>history :</span></dt><dd>Created 2025-03-05 21:56:18.833433</dd><dt><span>date_created :</span></dt><dd>2025-03-05T21:56:18.833454</dd><dt><span>source :</span></dt><dd>Output from simulation with OpenDrift</dd><dt><span>model_url :</span></dt><dd>https://github.com/OpenDrift/opendrift</dd><dt><span>opendrift_class :</span></dt><dd>OceanDrift</dd><dt><span>opendrift_module :</span></dt><dd>opendrift.models.oceandrift</dd><dt><span>readers :</span></dt><dd>odict_keys(['oscillating_reader', 'oscillating_reader_0', 'global_landmask'])</dd><dt><span>time_coverage_start :</span></dt><dd>2025-03-05 21:56:13.949595</dd><dt><span>time_step_calculation :</span></dt><dd>0:30:00</dd><dt><span>time_step_output :</span></dt><dd>1:00:00</dd><dt><span>config_environment:constant:x_sea_water_velocity :</span></dt><dd>None</dd><dt><span>config_environment:fallback:x_sea_water_velocity :</span></dt><dd>0</dd><dt><span>config_environment:constant:y_sea_water_velocity :</span></dt><dd>None</dd><dt><span>config_environment:fallback:y_sea_water_velocity :</span></dt><dd>0</dd><dt><span>config_environment:constant:sea_surface_height :</span></dt><dd>None</dd><dt><span>config_environment:fallback:sea_surface_height :</span></dt><dd>0</dd><dt><span>config_environment:constant:x_wind :</span></dt><dd>None</dd><dt><span>config_environment:fallback:x_wind :</span></dt><dd>0</dd><dt><span>config_environment:constant:y_wind :</span></dt><dd>None</dd><dt><span>config_environment:fallback:y_wind :</span></dt><dd>0</dd><dt><span>config_environment:constant:upward_sea_water_velocity :</span></dt><dd>None</dd><dt><span>config_environment:fallback:upward_sea_water_velocity :</span></dt><dd>0</dd><dt><span>config_environment:constant:ocean_vertical_diffusivity :</span></dt><dd>None</dd><dt><span>config_environment:fallback:ocean_vertical_diffusivity :</span></dt><dd>0</dd><dt><span>config_environment:constant:sea_surface_wave_significant_height :</span></dt><dd>None</dd><dt><span>config_environment:fallback:sea_surface_wave_significant_height :</span></dt><dd>0</dd><dt><span>config_environment:constant:sea_surface_wave_stokes_drift_x_velocity :</span></dt><dd>None</dd><dt><span>config_environment:fallback:sea_surface_wave_stokes_drift_x_velocity :</span></dt><dd>0</dd><dt><span>config_environment:constant:sea_surface_wave_stokes_drift_y_velocity :</span></dt><dd>None</dd><dt><span>config_environment:fallback:sea_surface_wave_stokes_drift_y_velocity :</span></dt><dd>0</dd><dt><span>config_environment:constant:sea_surface_wave_period_at_variance_spectral_density_maximum :</span></dt><dd>None</dd><dt><span>config_environment:fallback:sea_surface_wave_period_at_variance_spectral_density_maximum :</span></dt><dd>0</dd><dt><span>config_environment:constant:sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment :</span></dt><dd>None</dd><dt><span>config_environment:fallback:sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment :</span></dt><dd>0</dd><dt><span>config_environment:constant:sea_surface_swell_wave_to_direction :</span></dt><dd>None</dd><dt><span>config_environment:fallback:sea_surface_swell_wave_to_direction :</span></dt><dd>0</dd><dt><span>config_environment:constant:sea_surface_swell_wave_peak_period_from_variance_spectral_density :</span></dt><dd>None</dd><dt><span>config_environment:fallback:sea_surface_swell_wave_peak_period_from_variance_spectral_density :</span></dt><dd>0</dd><dt><span>config_environment:constant:sea_surface_swell_wave_significant_height :</span></dt><dd>None</dd><dt><span>config_environment:fallback:sea_surface_swell_wave_significant_height :</span></dt><dd>0</dd><dt><span>config_environment:constant:sea_surface_wind_wave_to_direction :</span></dt><dd>None</dd><dt><span>config_environment:fallback:sea_surface_wind_wave_to_direction :</span></dt><dd>0</dd><dt><span>config_environment:constant:sea_surface_wind_wave_mean_period :</span></dt><dd>None</dd><dt><span>config_environment:fallback:sea_surface_wind_wave_mean_period :</span></dt><dd>0</dd><dt><span>config_environment:constant:sea_surface_wind_wave_significant_height :</span></dt><dd>None</dd><dt><span>config_environment:fallback:sea_surface_wind_wave_significant_height :</span></dt><dd>0</dd><dt><span>config_environment:constant:surface_downward_x_stress :</span></dt><dd>None</dd><dt><span>config_environment:fallback:surface_downward_x_stress :</span></dt><dd>0</dd><dt><span>config_environment:constant:surface_downward_y_stress :</span></dt><dd>None</dd><dt><span>config_environment:fallback:surface_downward_y_stress :</span></dt><dd>0</dd><dt><span>config_environment:constant:turbulent_kinetic_energy :</span></dt><dd>None</dd><dt><span>config_environment:fallback:turbulent_kinetic_energy :</span></dt><dd>0</dd><dt><span>config_environment:constant:turbulent_generic_length_scale :</span></dt><dd>None</dd><dt><span>config_environment:fallback:turbulent_generic_length_scale :</span></dt><dd>0</dd><dt><span>config_environment:constant:ocean_mixed_layer_thickness :</span></dt><dd>None</dd><dt><span>config_environment:fallback:ocean_mixed_layer_thickness :</span></dt><dd>50</dd><dt><span>config_environment:constant:sea_floor_depth_below_sea_level :</span></dt><dd>None</dd><dt><span>config_environment:fallback:sea_floor_depth_below_sea_level :</span></dt><dd>10000</dd><dt><span>config_environment:constant:land_binary_mask :</span></dt><dd>None</dd><dt><span>config_environment:fallback:land_binary_mask :</span></dt><dd>None</dd><dt><span>config_general:use_auto_landmask :</span></dt><dd>True</dd><dt><span>config_drift:current_uncertainty :</span></dt><dd>0</dd><dt><span>config_drift:current_uncertainty_uniform :</span></dt><dd>0</dd><dt><span>config_drift:max_speed :</span></dt><dd>2.0</dd><dt><span>config_readers:max_number_of_fails :</span></dt><dd>1</dd><dt><span>config_general:simulation_name :</span></dt><dd></dd><dt><span>config_general:coastline_action :</span></dt><dd>previous</dd><dt><span>config_general:coastline_approximation_precision :</span></dt><dd>0.001</dd><dt><span>config_general:time_step_minutes :</span></dt><dd>60</dd><dt><span>config_general:time_step_output_minutes :</span></dt><dd>None</dd><dt><span>config_seed:ocean_only :</span></dt><dd>True</dd><dt><span>config_seed:number :</span></dt><dd>1</dd><dt><span>config_drift:max_age_seconds :</span></dt><dd>None</dd><dt><span>config_drift:advection_scheme :</span></dt><dd>euler</dd><dt><span>config_drift:horizontal_diffusivity :</span></dt><dd>300.0</dd><dt><span>config_drift:profiles_depth :</span></dt><dd>50</dd><dt><span>config_drift:wind_uncertainty :</span></dt><dd>0</dd><dt><span>config_drift:relative_wind :</span></dt><dd>False</dd><dt><span>config_drift:deactivate_north_of :</span></dt><dd>None</dd><dt><span>config_drift:deactivate_south_of :</span></dt><dd>None</dd><dt><span>config_drift:deactivate_east_of :</span></dt><dd>None</dd><dt><span>config_drift:deactivate_west_of :</span></dt><dd>None</dd><dt><span>config_seed:origin_marker :</span></dt><dd>0</dd><dt><span>config_seed:z :</span></dt><dd>0</dd><dt><span>config_seed:wind_drift_factor :</span></dt><dd>0.02</dd><dt><span>config_seed:current_drift_factor :</span></dt><dd>1</dd><dt><span>config_seed:terminal_velocity :</span></dt><dd>0.0</dd><dt><span>config_drift:vertical_advection :</span></dt><dd>True</dd><dt><span>config_drift:vertical_mixing :</span></dt><dd>False</dd><dt><span>config_vertical_mixing:timestep :</span></dt><dd>60</dd><dt><span>config_vertical_mixing:diffusivitymodel :</span></dt><dd>environment</dd><dt><span>config_vertical_mixing:background_diffusivity :</span></dt><dd>1.2e-05</dd><dt><span>config_vertical_mixing:TSprofiles :</span></dt><dd>False</dd><dt><span>config_drift:wind_drift_depth :</span></dt><dd>0.1</dd><dt><span>config_drift:stokes_drift :</span></dt><dd>True</dd><dt><span>config_drift:stokes_drift_profile :</span></dt><dd>Phillips</dd><dt><span>config_drift:use_tabularised_stokes_drift :</span></dt><dd>False</dd><dt><span>config_drift:tabularised_stokes_drift_fetch :</span></dt><dd>25000</dd><dt><span>config_general:seafloor_action :</span></dt><dd>lift_to_seafloor</dd><dt><span>config_drift:truncate_ocean_model_below_m :</span></dt><dd>None</dd><dt><span>config_seed:seafloor :</span></dt><dd>False</dd><dt><span>opendrift_version :</span></dt><dd>1.13.0</dd><dt><span>seed_geojson :</span></dt><dd>{"features": [], "type": "FeatureCollection"}</dd><dt><span>simulation_time :</span></dt><dd>2025-03-05 21:56:18.848894</dd><dt><span>reader_x_sea_water_velocity :</span></dt><dd>['oscillating_reader']</dd><dt><span>reader_y_sea_water_velocity :</span></dt><dd>['oscillating_reader_0']</dd><dt><span>reader_sea_surface_height :</span></dt><dd>0</dd><dt><span>reader_x_wind :</span></dt><dd>0</dd><dt><span>reader_y_wind :</span></dt><dd>0</dd><dt><span>reader_upward_sea_water_velocity :</span></dt><dd>0</dd><dt><span>reader_ocean_vertical_diffusivity :</span></dt><dd>0</dd><dt><span>reader_sea_surface_wave_significant_height :</span></dt><dd>0</dd><dt><span>reader_sea_surface_wave_stokes_drift_x_velocity :</span></dt><dd>0</dd><dt><span>reader_sea_surface_wave_stokes_drift_y_velocity :</span></dt><dd>0</dd><dt><span>reader_sea_surface_wave_period_at_variance_spectral_density_maximum :</span></dt><dd>0</dd><dt><span>reader_sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment :</span></dt><dd>0</dd><dt><span>reader_sea_surface_swell_wave_to_direction :</span></dt><dd>0</dd><dt><span>reader_sea_surface_swell_wave_peak_period_from_variance_spectral_density :</span></dt><dd>0</dd><dt><span>reader_sea_surface_swell_wave_significant_height :</span></dt><dd>0</dd><dt><span>reader_sea_surface_wind_wave_to_direction :</span></dt><dd>0</dd><dt><span>reader_sea_surface_wind_wave_mean_period :</span></dt><dd>0</dd><dt><span>reader_sea_surface_wind_wave_significant_height :</span></dt><dd>0</dd><dt><span>reader_surface_downward_x_stress :</span></dt><dd>0</dd><dt><span>reader_surface_downward_y_stress :</span></dt><dd>0</dd><dt><span>reader_turbulent_kinetic_energy :</span></dt><dd>0</dd><dt><span>reader_turbulent_generic_length_scale :</span></dt><dd>0</dd><dt><span>reader_ocean_mixed_layer_thickness :</span></dt><dd>50</dd><dt><span>reader_sea_floor_depth_below_sea_level :</span></dt><dd>10000</dd><dt><span>reader_land_binary_mask :</span></dt><dd>['global_landmask']</dd><dt><span>time_coverage_end :</span></dt><dd>2025-03-07 21:56:13.949595</dd><dt><span>time_coverage_duration :</span></dt><dd>P2DT0H0M0S</dd><dt><span>time_coverage_resolution :</span></dt><dd>P0DT0H30M0S</dd><dt><span>performance :</span></dt><dd>-------------------- Reader performance: -------------------- oscillating_reader 0:00:00.0 total 0:00:00.0 preparing 0:00:00.0 reading 0:00:00.0 masking -------------------- oscillating_reader_0 0:00:00.0 total 0:00:00.0 preparing 0:00:00.0 reading 0:00:00.0 masking -------------------- global_landmask 0:00:05.5 total 0:00:00.0 preparing 0:00:05.5 reading 0:00:00.0 masking -------------------- Performance: 26.7 total time 4.9 configuration 0.1 preparing main loop 0.0 moving elements to ocean 21.4 main loop 1.4 updating elements 0.1 cleaning up -------------------- </dd><dt><span>geospatial_bounds_crs :</span></dt><dd>EPSG:4326</dd><dt><span>geospatial_bounds_vertical_crs :</span></dt><dd>EPSG:5831</dd><dt><span>geospatial_lat_min :</span></dt><dd>57.61805</dd><dt><span>geospatial_lat_max :</span></dt><dd>58.619724</dd><dt><span>geospatial_lat_units :</span></dt><dd>degrees_north</dd><dt><span>geospatial_lat_resolution :</span></dt><dd>point</dd><dt><span>geospatial_lon_min :</span></dt><dd>7.7095375</dd><dt><span>geospatial_lon_max :</span></dt><dd>10.389534</dd><dt><span>geospatial_lon_units :</span></dt><dd>degrees_east</dd><dt><span>geospatial_lon_resolution :</span></dt><dd>point</dd><dt><span>runtime :</span></dt><dd>0:00:26.700065</dd><dt><span>geospatial_vertical_min :</span></dt><dd>0.0</dd><dt><span>geospatial_vertical_max :</span></dt><dd>0.0</dd><dt><span>geospatial_vertical_positive :</span></dt><dd>up</dd></dl></div></li></ul></div></div> </div> <br /> <br /><p>Opening the output file lazily with Xarray. This will work even if the file is too large to fit in memory, as it will read and process data chuck-by-chunk directly from file using Dask.</p> <div class="highlight-Python notranslate"><div class="highlight"><pre><span></span><span class="n">o</span> <span class="o">=</span> <span class="n">opendrift</span><span class="o">.</span><span class="n">open</span><span class="p">(</span><span class="n">outfile</span><span class="p">)</span> </pre></div> </div> <div class="sphx-glr-script-out highlight-none notranslate"><div class="highlight"><pre><span></span>21:56:47 DEBUG opendrift.config:168: Adding 18 config items from __init__ 21:56:47 DEBUG opendrift.config:178: Overwriting config item readers:max_number_of_fails 21:56:47 DEBUG opendrift.config:168: Adding 5 config items from __init__ 21:56:47 INFO opendrift:509: OpenDriftSimulation initialised (version 1.13.0 / v1.13.0-61-gf300067) 21:56:47 DEBUG opendrift.config:168: Adding 15 config items from oceandrift 21:56:47 DEBUG opendrift.config:178: Overwriting config item seed:z 21:56:47 DEBUG opendrift.export.io_netcdf:101: Importing from runoff.nc 21:56:47 DEBUG opendrift:1695: No elements to deactivate 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:x_sea_water_velocity -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:x_sea_water_velocity -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:y_sea_water_velocity -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:y_sea_water_velocity -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:sea_surface_height -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:sea_surface_height -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:x_wind -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:x_wind -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:y_wind -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:y_wind -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:upward_sea_water_velocity -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:upward_sea_water_velocity -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:ocean_vertical_diffusivity -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:ocean_vertical_diffusivity -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:sea_surface_wave_significant_height -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:sea_surface_wave_significant_height -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:sea_surface_wave_stokes_drift_x_velocity -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:sea_surface_wave_stokes_drift_x_velocity -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:sea_surface_wave_stokes_drift_y_velocity -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:sea_surface_wave_stokes_drift_y_velocity -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:sea_surface_wave_period_at_variance_spectral_density_maximum -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:sea_surface_wave_period_at_variance_spectral_density_maximum -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:sea_surface_swell_wave_to_direction -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:sea_surface_swell_wave_to_direction -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:sea_surface_swell_wave_peak_period_from_variance_spectral_density -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:sea_surface_swell_wave_peak_period_from_variance_spectral_density -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:sea_surface_swell_wave_significant_height -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:sea_surface_swell_wave_significant_height -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:sea_surface_wind_wave_to_direction -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:sea_surface_wind_wave_to_direction -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:sea_surface_wind_wave_mean_period -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:sea_surface_wind_wave_mean_period -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:sea_surface_wind_wave_significant_height -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:sea_surface_wind_wave_significant_height -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:surface_downward_x_stress -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:surface_downward_x_stress -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:surface_downward_y_stress -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:surface_downward_y_stress -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:turbulent_kinetic_energy -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:turbulent_kinetic_energy -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:turbulent_generic_length_scale -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:turbulent_generic_length_scale -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:ocean_mixed_layer_thickness -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:ocean_mixed_layer_thickness -> 50 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:sea_floor_depth_below_sea_level -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:sea_floor_depth_below_sea_level -> 10000 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:constant:land_binary_mask -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: environment:fallback:land_binary_mask -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: general:use_auto_landmask -> True 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: drift:current_uncertainty -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: drift:current_uncertainty_uniform -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: drift:max_speed -> 2.0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: readers:max_number_of_fails -> 1 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: general:simulation_name -> 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: general:coastline_action -> previous 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: general:coastline_approximation_precision -> 0.001 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: general:time_step_minutes -> 60 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: general:time_step_output_minutes -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: seed:ocean_only -> True 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: seed:number -> 1 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: drift:max_age_seconds -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: drift:advection_scheme -> euler 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: drift:horizontal_diffusivity -> 300.0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: drift:profiles_depth -> 50 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: drift:wind_uncertainty -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: drift:relative_wind -> False 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: drift:deactivate_north_of -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: drift:deactivate_south_of -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: drift:deactivate_east_of -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: drift:deactivate_west_of -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: seed:origin_marker -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: seed:z -> 0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: seed:wind_drift_factor -> 0.02 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: seed:current_drift_factor -> 1 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: seed:terminal_velocity -> 0.0 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: drift:vertical_advection -> True 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: drift:vertical_mixing -> False 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: vertical_mixing:timestep -> 60 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: vertical_mixing:diffusivitymodel -> environment 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: vertical_mixing:background_diffusivity -> 1.2e-05 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: vertical_mixing:TSprofiles -> False 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: drift:wind_drift_depth -> 0.1 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: drift:stokes_drift -> True 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: drift:stokes_drift_profile -> Phillips 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: drift:use_tabularised_stokes_drift -> False 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: drift:tabularised_stokes_drift_fetch -> 25000 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: general:seafloor_action -> lift_to_seafloor 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: drift:truncate_ocean_model_below_m -> None 21:56:47 DEBUG opendrift.export.io_netcdf:138: Setting imported config: seed:seafloor -> False 21:56:47 INFO opendrift:78: Returning <class 'opendrift.models.oceandrift.OceanDrift'> object </pre></div> </div> <p>We want to extract timeseries of river water at the coordinates of a hypothetical measuring station as well as the amount of river water passing through two defined areas/regions</p> <div class="highlight-Python notranslate"><div class="highlight"><pre><span></span><span class="n">station_lon</span> <span class="o">=</span> <span class="mf">9.4</span> <span class="n">station_lat</span> <span class="o">=</span> <span class="mf">58.1</span> <span class="n">box1_lon</span> <span class="o">=</span> <span class="p">[</span><span class="mf">8.4</span><span class="p">,</span> <span class="mf">8.8</span><span class="p">]</span> <span class="n">box1_lat</span> <span class="o">=</span> <span class="p">[</span><span class="mf">57.9</span><span class="p">,</span> <span class="mf">58.1</span><span class="p">]</span> <span class="n">box2_lon</span> <span class="o">=</span> <span class="p">[</span><span class="mf">9.5</span><span class="p">,</span> <span class="mf">9.9</span><span class="p">]</span> <span class="n">box2_lat</span> <span class="o">=</span> <span class="p">[</span><span class="mf">58.3</span><span class="p">,</span> <span class="mf">58.5</span><span class="p">]</span> </pre></div> </div> <p>Animation of the spatial density of river runoff water. Although there are the same number of elements from each river, the density plots are weighted with the actual runoff at time of seeding. This weighting can be done/changed afterwards without needing to redo the simulation. The calculated density fields will be stored/cached in the analysis file for later re-use, as their calculation may be time consuming for huge output files. Note that other analysis/plotting methods are not yet adapted to datasets opened lazily with open_xarray</p> <div class="highlight-Python notranslate"><div class="highlight"><pre><span></span><span class="n">runoff_river1</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">abs</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">cos</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">arange</span><span class="p">(</span><span class="n">number</span><span class="p">)</span><span class="o">*</span><span class="mi">2</span><span class="o">*</span><span class="n">np</span><span class="o">.</span><span class="n">pi</span><span class="o">/</span><span class="p">(</span><span class="n">number</span><span class="p">)))</span> <span class="c1"># Impose a temporal variation of runoff</span> <span class="n">runoff_river2</span> <span class="o">=</span> <span class="mi">10</span><span class="o">*</span><span class="n">runoff_river1</span> <span class="c1"># Let river 2 have 10 times as large runoff as river 1</span> <span class="n">runoff</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">concatenate</span><span class="p">((</span><span class="n">runoff_river1</span><span class="p">,</span> <span class="n">runoff_river2</span><span class="p">))</span> </pre></div> </div> <p>Calculate density with given pixel size, weighted by runoff amount per element</p> <div class="highlight-Python notranslate"><div class="highlight"><pre><span></span><span class="n">river_water</span> <span class="o">=</span> <span class="n">o</span><span class="o">.</span><span class="n">get_histogram</span><span class="p">(</span><span class="n">pixelsize_m</span><span class="o">=</span><span class="mi">1500</span><span class="p">,</span> <span class="n">weights</span><span class="o">=</span><span class="n">runoff</span><span class="p">,</span> <span class="n">density</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span> <span class="n">rw</span> <span class="o">=</span> <span class="n">river_water</span><span class="o">.</span><span class="n">sum</span><span class="p">(</span><span class="n">dim</span><span class="o">=</span><span class="s1">'origin_marker'</span><span class="p">)</span> <span class="c1"># For both rivers</span> <span class="c1">#rw = river_water.isel(origin_marker=1) # For one of the rivers</span> <span class="n">river_water</span><span class="o">.</span><span class="n">name</span> <span class="o">=</span> <span class="s1">'River water [m3/cell]'</span> <span class="n">text</span> <span class="o">=</span> <span class="p">[{</span><span class="s1">'s'</span><span class="p">:</span> <span class="n">o</span><span class="o">.</span><span class="n">origin_marker</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="s1">'x'</span><span class="p">:</span> <span class="mf">8.55</span><span class="p">,</span> <span class="s1">'y'</span><span class="p">:</span> <span class="mf">58.56</span><span class="p">,</span> <span class="s1">'fontsize'</span><span class="p">:</span> <span class="mi">20</span><span class="p">,</span> <span class="s1">'color'</span><span class="p">:</span> <span class="s1">'g'</span><span class="p">,</span> <span class="s1">'backgroundcolor'</span><span class="p">:</span> <span class="s1">'white'</span><span class="p">,</span> <span class="s1">'bbox'</span><span class="p">:</span> <span class="nb">dict</span><span class="p">(</span><span class="n">facecolor</span><span class="o">=</span><span class="s1">'white'</span><span class="p">,</span> <span class="n">alpha</span><span class="o">=</span><span class="mf">0.8</span><span class="p">),</span> <span class="s1">'zorder'</span><span class="p">:</span> <span class="mi">1000</span><span class="p">},</span> <span class="p">{</span><span class="s1">'s'</span><span class="p">:</span> <span class="n">o</span><span class="o">.</span><span class="n">origin_marker</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="s1">'x'</span><span class="p">:</span> <span class="mf">8.35</span><span class="p">,</span> <span class="s1">'y'</span><span class="p">:</span> <span class="mf">58.42</span><span class="p">,</span> <span class="s1">'fontsize'</span><span class="p">:</span> <span class="mi">20</span><span class="p">,</span> <span class="s1">'color'</span><span class="p">:</span> <span class="s1">'g'</span><span class="p">,</span> <span class="s1">'backgroundcolor'</span><span class="p">:</span> <span class="s1">'white'</span><span class="p">,</span> <span class="s1">'bbox'</span><span class="p">:</span> <span class="nb">dict</span><span class="p">(</span><span class="n">facecolor</span><span class="o">=</span><span class="s1">'white'</span><span class="p">,</span> <span class="n">alpha</span><span class="o">=</span><span class="mf">0.8</span><span class="p">),</span> <span class="s1">'zorder'</span><span class="p">:</span> <span class="mi">1000</span><span class="p">},</span> <span class="p">{</span><span class="s1">'s'</span><span class="p">:</span> <span class="s1">'* Station'</span><span class="p">,</span> <span class="s1">'x'</span><span class="p">:</span> <span class="n">station_lon</span><span class="p">,</span> <span class="s1">'y'</span><span class="p">:</span> <span class="n">station_lat</span><span class="p">,</span> <span class="s1">'fontsize'</span><span class="p">:</span> <span class="mi">20</span><span class="p">,</span> <span class="s1">'color'</span><span class="p">:</span> <span class="s1">'k'</span><span class="p">,</span> <span class="s1">'backgroundcolor'</span><span class="p">:</span> <span class="s1">'white'</span><span class="p">,</span> <span class="s1">'bbox'</span><span class="p">:</span> <span class="nb">dict</span><span class="p">(</span><span class="n">facecolor</span><span class="o">=</span><span class="s1">'none'</span><span class="p">,</span> <span class="n">edgecolor</span><span class="o">=</span><span class="s1">'none'</span><span class="p">,</span> <span class="n">alpha</span><span class="o">=</span><span class="mf">0.4</span><span class="p">),</span> <span class="s1">'zorder'</span><span class="p">:</span> <span class="mi">1000</span><span class="p">}]</span> <span class="n">box</span> <span class="o">=</span> <span class="p">[{</span><span class="s1">'lon'</span><span class="p">:</span> <span class="n">box1_lon</span><span class="p">,</span> <span class="s1">'lat'</span><span class="p">:</span> <span class="n">box1_lat</span><span class="p">,</span> <span class="s1">'text'</span><span class="p">:</span> <span class="s1">'Area 1'</span><span class="p">,</span> <span class="s1">'fc'</span><span class="p">:</span> <span class="s1">'none'</span><span class="p">,</span> <span class="s1">'alpha'</span><span class="p">:</span> <span class="mf">0.8</span><span class="p">,</span> <span class="s1">'lw'</span><span class="p">:</span> <span class="mi">1</span><span class="p">,</span> <span class="s1">'ec'</span><span class="p">:</span> <span class="s1">'k'</span><span class="p">},</span> <span class="p">{</span><span class="s1">'lon'</span><span class="p">:</span> <span class="n">box2_lon</span><span class="p">,</span> <span class="s1">'lat'</span><span class="p">:</span> <span class="n">box2_lat</span><span class="p">,</span> <span class="s1">'text'</span><span class="p">:</span> <span class="s1">'Area 2'</span><span class="p">,</span> <span class="s1">'fc'</span><span class="p">:</span> <span class="s1">'none'</span><span class="p">,</span> <span class="s1">'alpha'</span><span class="p">:</span> <span class="mf">0.8</span><span class="p">,</span> <span class="s1">'lw'</span><span class="p">:</span> <span class="mi">1</span><span class="p">,</span> <span class="s1">'ec'</span><span class="p">:</span> <span class="s1">'k'</span><span class="p">}]</span> <span class="n">o</span><span class="o">.</span><span class="n">animation</span><span class="p">(</span><span class="n">background</span><span class="o">=</span><span class="n">rw</span><span class="o">.</span><span class="n">where</span><span class="p">(</span><span class="n">rw</span><span class="o">></span><span class="mi">0</span><span class="p">),</span> <span class="n">bgalpha</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">fast</span><span class="o">=</span><span class="kc">False</span><span class="p">,</span> <span class="n">show_elements</span><span class="o">=</span><span class="kc">False</span><span class="p">,</span> <span class="n">vmin</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span> <span class="n">vmax</span><span class="o">=</span><span class="mi">120</span><span class="p">,</span> <span class="n">text</span><span class="o">=</span><span class="n">text</span><span class="p">,</span> <span class="n">box</span><span class="o">=</span><span class="n">box</span><span class="p">)</span> </pre></div> </div> <div class="sphx-glr-script-out highlight-none notranslate"><div class="highlight"><pre><span></span>21:56:47 INFO opendrift:3887: calculating for origin_marker 0... 21:56:47 INFO opendrift:3887: calculating for origin_marker 1... 21:56:48 DEBUG opendrift:2398: Setting up map: corners=None, fast=False, lscale=None 21:56:48 DEBUG opendrift.readers.reader_global_landmask:84: Loading shapes ('h' level 1) with Cartopy shapereader... 21:57:00 DEBUG opendrift.readers.reader_global_landmask:84: Loading shapes ('h' level 5) with Cartopy shapereader... 21:57:00 DEBUG opendrift.readers.reader_global_landmask:84: Loading shapes ('h' level 6) with Cartopy shapereader... 21:57:00 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. /opt/conda/envs/opendrift/lib/python3.11/site-packages/cartopy/mpl/geoaxes.py:1692: UserWarning: No data for colormapping provided via 'c'. Parameters 'vmin', 'vmax' will be ignored result = super().scatter(*args, **kwargs) 21:57:01 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:01 DEBUG opendrift:3043: Saving animation.. 21:57:01 INFO opendrift:4600: Saving animation to /root/project/docs/source/gallery/animations/example_river_runoff_0.gif... 21:57:01 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:01 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:02 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:02 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:03 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:03 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:03 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:03 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:04 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:04 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:05 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:05 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:05 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:06 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:06 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:06 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:07 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:07 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:08 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:08 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:08 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:09 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:09 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:09 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:10 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:10 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:11 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:11 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:12 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:12 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:13 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:13 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:13 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:14 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:14 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:14 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:15 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:15 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:16 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:16 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:17 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:17 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:17 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:17 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:18 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:18 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:19 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:19 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:20 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:20 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:21 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:21 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:22 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:22 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:22 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:23 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:23 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:23 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:24 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:24 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:25 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:25 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:26 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:26 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:26 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:27 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:27 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:27 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:28 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:28 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:29 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:29 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:29 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:29 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:30 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:30 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:30 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:31 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:31 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:31 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:32 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:32 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:32 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:33 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:33 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:33 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:34 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:34 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:34 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:35 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:35 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:35 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:36 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:36 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:36 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:37 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:37 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:37 DEBUG opendrift.readers.reader_global_landmask:123: Adding GSHHG shapes from cartopy, scale: h, extent: (7.309537506103514, 10.789533996582032, 57.41804962158203, 58.819724273681636).. 21:57:39 DEBUG opendrift:4638: MPLBACKEND = agg 21:57:39 DEBUG opendrift:4639: DISPLAY = None 21:57:39 DEBUG opendrift:4640: Time to save animation: 0:00:37.889136 21:57:39 INFO opendrift:3036: Time to make animation: 0:00:51.297440 </pre></div> </div> <img alt="../_images/example_river_runoff_0.gif" src="../_images/example_river_runoff_0.gif" /> <p>Plotting time series of river runoff, and corresponding water passing through the station and the two defined areas/boxes</p> <div class="highlight-Python notranslate"><div class="highlight"><pre><span></span><span class="n">fig</span><span class="p">,</span> <span class="p">(</span><span class="n">ax1</span><span class="p">,</span> <span class="n">ax2</span><span class="p">,</span> <span class="n">ax3</span><span class="p">,</span> <span class="n">ax4</span><span class="p">)</span> <span class="o">=</span> <span class="n">plt</span><span class="o">.</span><span class="n">subplots</span><span class="p">(</span><span class="mi">4</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span> <span class="c1"># Runoff</span> <span class="n">ax1</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">seed_times</span><span class="p">,</span> <span class="n">runoff_river1</span><span class="p">,</span> <span class="n">label</span><span class="o">=</span><span class="n">o</span><span class="o">.</span><span class="n">origin_marker</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span> <span class="n">ax1</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">seed_times</span><span class="p">,</span> <span class="n">runoff_river2</span><span class="p">,</span> <span class="n">label</span><span class="o">=</span><span class="n">o</span><span class="o">.</span><span class="n">origin_marker</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span> <span class="n">ax1</span><span class="o">.</span><span class="n">set_ylabel</span><span class="p">(</span><span class="s1">'Runoff [m3/s]'</span><span class="p">)</span> <span class="n">ax1</span><span class="o">.</span><span class="n">set_title</span><span class="p">(</span><span class="s1">'Runoff'</span><span class="p">)</span> <span class="c1"># Area 1</span> <span class="n">t1</span> <span class="o">=</span> <span class="n">river_water</span><span class="o">.</span><span class="n">sel</span><span class="p">(</span><span class="n">lon_bin</span><span class="o">=</span><span class="nb">slice</span><span class="p">(</span><span class="n">box1_lon</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="n">box1_lon</span><span class="p">[</span><span class="mi">1</span><span class="p">]),</span> <span class="n">lat_bin</span><span class="o">=</span><span class="nb">slice</span><span class="p">(</span><span class="n">box1_lat</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="n">box1_lat</span><span class="p">[</span><span class="mi">1</span><span class="p">]))</span> <span class="n">t1</span> <span class="o">=</span> <span class="n">t1</span><span class="o">.</span><span class="n">sum</span><span class="p">((</span><span class="s1">'lon_bin'</span><span class="p">,</span> <span class="s1">'lat_bin'</span><span class="p">))</span> <span class="n">t1</span><span class="o">.</span><span class="n">isel</span><span class="p">(</span><span class="n">origin_marker</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">label</span><span class="o">=</span><span class="n">o</span><span class="o">.</span><span class="n">origin_marker</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="n">ax</span><span class="o">=</span><span class="n">ax2</span><span class="p">)</span> <span class="n">t1</span><span class="o">.</span><span class="n">isel</span><span class="p">(</span><span class="n">origin_marker</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">label</span><span class="o">=</span><span class="n">o</span><span class="o">.</span><span class="n">origin_marker</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="n">ax</span><span class="o">=</span><span class="n">ax2</span><span class="p">)</span> <span class="n">t1</span><span class="o">.</span><span class="n">sum</span><span class="p">(</span><span class="n">dim</span><span class="o">=</span><span class="s1">'origin_marker'</span><span class="p">)</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">label</span><span class="o">=</span><span class="s1">'Total'</span><span class="p">,</span> <span class="n">linestyle</span><span class="o">=</span><span class="s1">'--'</span><span class="p">,</span> <span class="n">ax</span><span class="o">=</span><span class="n">ax2</span><span class="p">)</span> <span class="n">ax2</span><span class="o">.</span><span class="n">set_title</span><span class="p">(</span><span class="s1">'Amount of water passing through Area 1'</span><span class="p">)</span> <span class="c1"># Area 2</span> <span class="n">t2</span> <span class="o">=</span> <span class="n">river_water</span><span class="o">.</span><span class="n">sel</span><span class="p">(</span><span class="n">lon_bin</span><span class="o">=</span><span class="nb">slice</span><span class="p">(</span><span class="n">box2_lon</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="n">box2_lon</span><span class="p">[</span><span class="mi">1</span><span class="p">]),</span> <span class="n">lat_bin</span><span class="o">=</span><span class="nb">slice</span><span class="p">(</span><span class="n">box2_lat</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="n">box2_lat</span><span class="p">[</span><span class="mi">1</span><span class="p">]))</span> <span class="n">t2</span> <span class="o">=</span> <span class="n">t2</span><span class="o">.</span><span class="n">sum</span><span class="p">((</span><span class="s1">'lon_bin'</span><span class="p">,</span> <span class="s1">'lat_bin'</span><span class="p">))</span> <span class="n">t2</span><span class="o">.</span><span class="n">isel</span><span class="p">(</span><span class="n">origin_marker</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">label</span><span class="o">=</span><span class="n">o</span><span class="o">.</span><span class="n">origin_marker</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="n">ax</span><span class="o">=</span><span class="n">ax3</span><span class="p">)</span> <span class="n">t2</span><span class="o">.</span><span class="n">isel</span><span class="p">(</span><span class="n">origin_marker</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">label</span><span class="o">=</span><span class="n">o</span><span class="o">.</span><span class="n">origin_marker</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="n">ax</span><span class="o">=</span><span class="n">ax3</span><span class="p">)</span> <span class="n">t2</span><span class="o">.</span><span class="n">sum</span><span class="p">(</span><span class="n">dim</span><span class="o">=</span><span class="s1">'origin_marker'</span><span class="p">)</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">label</span><span class="o">=</span><span class="s1">'Total'</span><span class="p">,</span> <span class="n">linestyle</span><span class="o">=</span><span class="s1">'--'</span><span class="p">,</span> <span class="n">ax</span><span class="o">=</span><span class="n">ax3</span><span class="p">)</span> <span class="n">ax3</span><span class="o">.</span><span class="n">set_title</span><span class="p">(</span><span class="s1">'Amount of water passing through Area 2'</span><span class="p">)</span> <span class="c1"># Extracting time series at the location of the station</span> <span class="n">t</span> <span class="o">=</span> <span class="n">river_water</span><span class="o">.</span><span class="n">sel</span><span class="p">(</span><span class="n">lon_bin</span><span class="o">=</span><span class="n">station_lon</span><span class="p">,</span> <span class="n">lat_bin</span><span class="o">=</span><span class="n">station_lat</span><span class="p">,</span> <span class="n">method</span><span class="o">=</span><span class="s1">'nearest'</span><span class="p">)</span> <span class="n">t</span><span class="o">.</span><span class="n">isel</span><span class="p">(</span><span class="n">origin_marker</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">label</span><span class="o">=</span><span class="n">o</span><span class="o">.</span><span class="n">origin_marker</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="n">ax</span><span class="o">=</span><span class="n">ax4</span><span class="p">)</span> <span class="n">t</span><span class="o">.</span><span class="n">isel</span><span class="p">(</span><span class="n">origin_marker</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">label</span><span class="o">=</span><span class="n">o</span><span class="o">.</span><span class="n">origin_marker</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="n">ax</span><span class="o">=</span><span class="n">ax4</span><span class="p">)</span> <span class="n">t</span><span class="o">.</span><span class="n">sum</span><span class="p">(</span><span class="n">dim</span><span class="o">=</span><span class="s1">'origin_marker'</span><span class="p">)</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">label</span><span class="o">=</span><span class="s1">'Total'</span><span class="p">,</span> <span class="n">linestyle</span><span class="o">=</span><span class="s1">'--'</span><span class="p">,</span> <span class="n">ax</span><span class="o">=</span><span class="n">ax4</span><span class="p">)</span> <span class="n">ax4</span><span class="o">.</span><span class="n">legend</span><span class="p">()</span> <span class="n">ax4</span><span class="o">.</span><span class="n">margins</span><span class="p">(</span><span class="n">x</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span> <span class="k">for</span> <span class="n">ax</span> <span class="ow">in</span> <span class="p">[</span><span class="n">ax1</span><span class="p">,</span> <span class="n">ax2</span><span class="p">,</span> <span class="n">ax3</span><span class="p">]:</span> <span class="n">ax</span><span class="o">.</span><span class="n">margins</span><span class="p">(</span><span class="n">x</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span> <span class="n">ax</span><span class="o">.</span><span class="n">legend</span><span class="p">()</span> <span class="c1">#ax.set_xticks([])</span> <span class="n">ax</span><span class="o">.</span><span class="n">set_xlabel</span><span class="p">(</span><span class="kc">None</span><span class="p">)</span> <span class="n">ax4</span><span class="o">.</span><span class="n">set_title</span><span class="p">(</span><span class="s1">'Density of water at Station'</span><span class="p">)</span> <span class="c1"># TODO disabling due to recent problem with dateformatter</span> <span class="c1">#ax4.xaxis.set_major_formatter(DateFormatter("%d %b %H"))</span> <span class="n">plt</span><span class="o">.</span><span class="n">show</span><span class="p">()</span> </pre></div> </div> <img src="../_images/sphx_glr_example_river_runoff_001.png" srcset="../_images/sphx_glr_example_river_runoff_001.png" alt="Runoff, Amount of water passing through Area 1, Amount of water passing through Area 2, Density of water at Station" class = "sphx-glr-single-img"/><p>Finally, plot the spatial distribution of mean age of water</p> <div class="highlight-Python notranslate"><div class="highlight"><pre><span></span><span class="n">num</span> <span class="o">=</span> <span class="n">o</span><span class="o">.</span><span class="n">get_histogram</span><span class="p">(</span><span class="n">pixelsize_m</span><span class="o">=</span><span class="mi">1500</span><span class="p">,</span> <span class="n">weights</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">density</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span> <span class="n">num</span><span class="o">.</span><span class="n">name</span> <span class="o">=</span> <span class="s1">'number'</span> <span class="n">num</span><span class="o">.</span><span class="n">to_netcdf</span><span class="p">(</span><span class="n">histogram_file</span><span class="p">)</span> <span class="n">mas</span> <span class="o">=</span> <span class="n">o</span><span class="o">.</span><span class="n">get_histogram</span><span class="p">(</span><span class="n">pixelsize_m</span><span class="o">=</span><span class="mi">1500</span><span class="p">,</span> <span class="n">weights</span><span class="o">=</span><span class="n">o</span><span class="o">.</span><span class="n">result</span><span class="o">.</span><span class="n">age_seconds</span><span class="p">,</span> <span class="n">density</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span> <span class="n">mas</span> <span class="o">=</span> <span class="n">mas</span><span class="o">/</span><span class="mi">3600</span> <span class="c1"># in hours</span> <span class="n">mas</span> <span class="o">=</span> <span class="n">mas</span><span class="o">/</span><span class="n">num</span> <span class="c1"># per area</span> <span class="n">mas</span><span class="o">.</span><span class="n">name</span><span class="o">=</span><span class="s1">'mean_age'</span> <span class="n">mas</span><span class="o">.</span><span class="n">to_netcdf</span><span class="p">(</span><span class="n">histogram_file</span><span class="p">,</span> <span class="s1">'a'</span><span class="p">)</span> <span class="n">mas</span> <span class="o">=</span> <span class="n">mas</span><span class="o">.</span><span class="n">mean</span><span class="p">(</span><span class="n">dim</span><span class="o">=</span><span class="s1">'time'</span><span class="p">)</span><span class="o">.</span><span class="n">sum</span><span class="p">(</span><span class="n">dim</span><span class="o">=</span><span class="s1">'origin_marker'</span><span class="p">)</span> <span class="c1"># Mean time of both rivers</span> <span class="c1">#mas = mas.mean(dim='time').isel(origin_marker=1) # Mean age of a single river</span> <span class="n">mas</span><span class="o">.</span><span class="n">name</span><span class="o">=</span><span class="s1">'Mean age of water [hours]'</span> <span class="n">o</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">background</span><span class="o">=</span><span class="n">mas</span><span class="o">.</span><span class="n">where</span><span class="p">(</span><span class="n">mas</span><span class="o">></span><span class="mi">0</span><span class="p">),</span> <span class="n">fast</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">show_elements</span><span class="o">=</span><span class="kc">False</span><span class="p">,</span> <span class="n">show_trajectories</span><span class="o">=</span><span class="kc">False</span><span class="p">)</span> <span class="c1"># Cleaning up</span> <span class="n">os</span><span class="o">.</span><span class="n">remove</span><span class="p">(</span><span class="n">outfile</span><span class="p">)</span> <span class="n">os</span><span class="o">.</span><span class="n">remove</span><span class="p">(</span><span class="n">histogram_file</span><span class="p">)</span> </pre></div> </div> <img src="../_images/sphx_glr_example_river_runoff_002.png" srcset="../_images/sphx_glr_example_river_runoff_002.png" alt="OpenDrift - OceanDrift 2025-03-05 21:56 to 2025-03-07 21:56 UTC (49 steps)" class = "sphx-glr-single-img"/><div class="sphx-glr-script-out highlight-none notranslate"><div class="highlight"><pre><span></span>21:57:40 INFO opendrift:3887: calculating for origin_marker 0... 21:57:40 INFO opendrift:3887: calculating for origin_marker 1... 21:57:40 INFO opendrift:3887: calculating for origin_marker 0... 21:57:40 INFO opendrift:3887: calculating for origin_marker 1... 21:57:40 DEBUG opendrift:2398: Setting up map: corners=None, fast=True, lscale=None 21:57:40 WARNING opendrift:2429: Plotting fast. This will make your plots less accurate. </pre></div> </div> <p class="sphx-glr-timing"><strong>Total running time of the script:</strong> (1 minutes 33.613 seconds)</p> <div class="sphx-glr-footer sphx-glr-footer-example docutils container" id="sphx-glr-download-gallery-example-river-runoff-py"> <div class="sphx-glr-download sphx-glr-download-jupyter docutils container"> <p><a class="reference download internal" download="" href="../_downloads/1f273572d35a01780a354710d35e2a1a/example_river_runoff.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_river_runoff.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/a86edf1ccd8ec639ac0cb705f3fd56c3/example_river_runoff.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_river_runoff.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/12323c17693ac6b1a46fd45c87dba9f4/example_river_runoff.zip"><code class="xref download docutils literal notranslate"><span class="pre">Download</span> <span class="pre">zipped:</span> <span class="pre">example_river_runoff.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_droplet_distribution_compareJohansen2015.html" class="btn btn-neutral float-left" title="Droplet distribution" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a> <a href="example_wind_measurements.html" class="btn btn-neutral float-right" title="Using wind measurements" 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>