Cod egg

from opendrift.readers import reader_netCDF_CF_generic
from opendrift.models.pelagicegg import PelagicEggDrift
from datetime import datetime, timedelta

o = PelagicEggDrift(loglevel=20)  # Set loglevel to 0 for debug information

# Forcing with Topaz ocean model and MEPS atmospheric model
o.add_readers_from_list([
    'https://thredds.met.no/thredds/dodsC/cmems/topaz6/dataset-topaz6-arc-15min-3km-be.ncml',
    'https://thredds.met.no/thredds/dodsC/mepslatest/meps_lagged_6_h_latest_2_5km_latest.nc'])

Out:

13:43:50 INFO    opendrift.models.basemodel: OpenDriftSimulation initialised (version 1.7.1 / v1.7.1-87-g074c1d2)

spawn NEA cod eggs at defined position and time

time = datetime.utcnow()
o.seed_elements(14. , 68.1, z=-40, radius=2000, number=500,
                time=time, diameter=0.0014, neutral_buoyancy_salinity=31.25)
o.seed_elements(12.5, 68., z=-40, radius=2000, number=500,
                time=time, diameter=0.0014, neutral_buoyancy_salinity=31.25)
o.seed_elements(13.5, 68., z=-40, radius=2000, number=500,
                time=time, diameter=0.0014, neutral_buoyancy_salinity=31.25)
o.seed_elements(13., 67.8, z=-40, radius=2000, number=500,
                time=time, diameter=0.0014, neutral_buoyancy_salinity=31.25)

Adjusting some configuration

o.set_config('drift:vertical_mixing', True)
o.set_config('vertical_mixing:diffusivitymodel', 'windspeed_Sundby1983') # windspeed parameterization for eddy diffusivity

Vertical mixing requires fast time step

o.set_config('vertical_mixing:timestep', 60.) # seconds

Running model

o.run(duration=timedelta(hours=48), time_step=3600)

Out:

13:43:50 INFO    opendrift.models.basemodel: Fallback values will be used for the following variables which have no readers:
13:43:50 INFO    opendrift.models.basemodel:    x_sea_water_velocity: 0.000000
13:43:50 INFO    opendrift.models.basemodel:    y_sea_water_velocity: 0.000000
13:43:50 INFO    opendrift.models.basemodel:    sea_surface_wave_significant_height: 0.000000
13:43:50 INFO    opendrift.models.basemodel:    sea_ice_area_fraction: 0.000000
13:43:50 INFO    opendrift.models.basemodel:    x_wind: 0.000000
13:43:50 INFO    opendrift.models.basemodel:    y_wind: 0.000000
13:43:50 INFO    opendrift.models.basemodel:    sea_floor_depth_below_sea_level: 100.000000
13:43:50 INFO    opendrift.models.basemodel:    ocean_vertical_diffusivity: 0.020000
13:43:50 INFO    opendrift.models.basemodel:    sea_water_temperature: 10.000000
13:43:50 INFO    opendrift.models.basemodel:    sea_water_salinity: 34.000000
13:43:50 INFO    opendrift.models.basemodel:    surface_downward_x_stress: 0.000000
13:43:50 INFO    opendrift.models.basemodel:    surface_downward_y_stress: 0.000000
13:43:50 INFO    opendrift.models.basemodel:    turbulent_kinetic_energy: 0.000000
13:43:50 INFO    opendrift.models.basemodel:    turbulent_generic_length_scale: 0.000000
13:43:50 INFO    opendrift.models.basemodel:    upward_sea_water_velocity: 0.000000
13:43:50 INFO    opendrift.models.basemodel: Adding a dynamical landmask with max. priority based on assumed maximum speed of 1 m/s. Adding a customised landmask may be faster...
13:43:50 INFO    opendrift_landmask_data.mask: locking landmask for generation..
13:43:50 INFO    opendrift_landmask_data.mask: decompressing memmap landmask to /tmp/landmask/mask.dat..
13:44:03 INFO    opendrift_landmask_data.mask: landmask generated
13:44:12 INFO    opendrift.models.basemodel: Using existing reader for land_binary_mask
13:44:12 INFO    opendrift.models.basemodel: All points are in ocean
13:44:12 INFO    opendrift.models.basemodel: 2021-09-24 13:43:50.655992 - step 1 of 48 - 2000 active elements (0 deactivated)
13:44:13 INFO    opendrift.readers.reader_netCDF_CF_generic: Opening dataset: https://thredds.met.no/thredds/dodsC/cmems/topaz6/dataset-topaz6-arc-15min-3km-be.ncml
13:44:18 INFO    opendrift.readers.reader_netCDF_CF_generic: Opening dataset: https://thredds.met.no/thredds/dodsC/mepslatest/meps_lagged_6_h_latest_2_5km_latest.nc
13:44:22 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:22 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:22 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:22 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:22 INFO    opendrift.models.basemodel: 2021-09-24 14:43:50.655992 - step 2 of 48 - 2000 active elements (0 deactivated)
13:44:25 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:25 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:25 INFO    opendrift.models.basemodel: 2021-09-24 15:43:50.655992 - step 3 of 48 - 2000 active elements (0 deactivated)
13:44:27 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:27 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:27 INFO    opendrift.models.basemodel: 2021-09-24 16:43:50.655992 - step 4 of 48 - 2000 active elements (0 deactivated)
13:44:29 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:29 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:29 INFO    opendrift.models.basemodel: 2021-09-24 17:43:50.655992 - step 5 of 48 - 2000 active elements (0 deactivated)
13:44:31 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:31 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:32 INFO    opendrift.models.basemodel: 2021-09-24 18:43:50.655992 - step 6 of 48 - 2000 active elements (0 deactivated)
13:44:33 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:33 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:34 INFO    opendrift.models.basemodel: 2021-09-24 19:43:50.655992 - step 7 of 48 - 2000 active elements (0 deactivated)
13:44:36 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:36 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:36 INFO    opendrift.models.basemodel: 2021-09-24 20:43:50.655992 - step 8 of 48 - 2000 active elements (0 deactivated)
13:44:38 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:38 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:38 INFO    opendrift.models.basemodel: 2021-09-24 21:43:50.655992 - step 9 of 48 - 2000 active elements (0 deactivated)
13:44:39 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:39 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:40 INFO    opendrift.models.basemodel: 2021-09-24 22:43:50.655992 - step 10 of 48 - 2000 active elements (0 deactivated)
13:44:41 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:41 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:41 INFO    opendrift.models.basemodel: 2021-09-24 23:43:50.655992 - step 11 of 48 - 2000 active elements (0 deactivated)
13:44:43 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:43 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:43 INFO    opendrift.models.basemodel: 2021-09-25 00:43:50.655992 - step 12 of 48 - 2000 active elements (0 deactivated)
13:44:46 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:46 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:46 INFO    opendrift.models.basemodel: 2021-09-25 01:43:50.655992 - step 13 of 48 - 2000 active elements (0 deactivated)
13:44:48 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:48 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:49 INFO    opendrift.models.basemodel: 2021-09-25 02:43:50.655992 - step 14 of 48 - 2000 active elements (0 deactivated)
13:44:51 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:51 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:51 INFO    opendrift.models.basemodel: 2021-09-25 03:43:50.655992 - step 15 of 48 - 2000 active elements (0 deactivated)
13:44:53 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:53 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:53 INFO    opendrift.models.basemodel: 2021-09-25 04:43:50.655992 - step 16 of 48 - 2000 active elements (0 deactivated)
13:44:56 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:56 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:56 INFO    opendrift.models.basemodel: 2021-09-25 05:43:50.655992 - step 17 of 48 - 2000 active elements (0 deactivated)
13:44:58 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:58 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:44:58 INFO    opendrift.models.basemodel: 2021-09-25 06:43:50.655992 - step 18 of 48 - 2000 active elements (0 deactivated)
13:45:00 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:00 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:01 INFO    opendrift.models.basemodel: 2021-09-25 07:43:50.655992 - step 19 of 48 - 2000 active elements (0 deactivated)
13:45:03 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:03 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:03 INFO    opendrift.models.basemodel: 2021-09-25 08:43:50.655992 - step 20 of 48 - 2000 active elements (0 deactivated)
13:45:05 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:05 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:06 INFO    opendrift.models.basemodel: 2021-09-25 09:43:50.655992 - step 21 of 48 - 2000 active elements (0 deactivated)
13:45:08 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:08 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:08 INFO    opendrift.models.basemodel: 2021-09-25 10:43:50.655992 - step 22 of 48 - 2000 active elements (0 deactivated)
13:45:11 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:11 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:11 INFO    opendrift.models.basemodel: 2021-09-25 11:43:50.655992 - step 23 of 48 - 2000 active elements (0 deactivated)
13:45:13 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:13 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:13 INFO    opendrift.models.basemodel: 2021-09-25 12:43:50.655992 - step 24 of 48 - 2000 active elements (0 deactivated)
13:45:16 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:16 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:16 INFO    opendrift.models.basemodel: 2021-09-25 13:43:50.655992 - step 25 of 48 - 2000 active elements (0 deactivated)
13:45:18 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:18 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:18 INFO    opendrift.models.basemodel: 2021-09-25 14:43:50.655992 - step 26 of 48 - 2000 active elements (0 deactivated)
13:45:23 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:23 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:23 INFO    opendrift.models.basemodel: 2021-09-25 15:43:50.655992 - step 27 of 48 - 2000 active elements (0 deactivated)
13:45:26 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:26 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:26 INFO    opendrift.models.basemodel: 2021-09-25 16:43:50.655992 - step 28 of 48 - 2000 active elements (0 deactivated)
13:45:29 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:29 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:29 INFO    opendrift.models.basemodel: 2021-09-25 17:43:50.655992 - step 29 of 48 - 2000 active elements (0 deactivated)
13:45:32 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:32 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:32 INFO    opendrift.models.basemodel: 2021-09-25 18:43:50.655992 - step 30 of 48 - 2000 active elements (0 deactivated)
13:45:34 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:34 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:34 INFO    opendrift.models.basemodel: 2021-09-25 19:43:50.655992 - step 31 of 48 - 2000 active elements (0 deactivated)
13:45:37 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:37 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:37 INFO    opendrift.models.basemodel: 2021-09-25 20:43:50.655992 - step 32 of 48 - 2000 active elements (0 deactivated)
13:45:42 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:42 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:42 INFO    opendrift.models.basemodel: 2021-09-25 21:43:50.655992 - step 33 of 48 - 2000 active elements (0 deactivated)
13:45:45 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:45 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:45 INFO    opendrift.models.basemodel: 2021-09-25 22:43:50.655992 - step 34 of 48 - 2000 active elements (0 deactivated)
13:45:48 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:48 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:48 INFO    opendrift.models.basemodel: 2021-09-25 23:43:50.655992 - step 35 of 48 - 2000 active elements (0 deactivated)
13:45:51 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:51 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:51 INFO    opendrift.models.basemodel: 2021-09-26 00:43:50.655992 - step 36 of 48 - 2000 active elements (0 deactivated)
13:45:54 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:54 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:54 INFO    opendrift.models.basemodel: 2021-09-26 01:43:50.655992 - step 37 of 48 - 2000 active elements (0 deactivated)
13:45:57 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:57 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:45:57 INFO    opendrift.models.basemodel: 2021-09-26 02:43:50.655992 - step 38 of 48 - 2000 active elements (0 deactivated)
13:46:00 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:46:00 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:46:00 INFO    opendrift.models.basemodel: 2021-09-26 03:43:50.655992 - step 39 of 48 - 2000 active elements (0 deactivated)
13:46:03 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:46:03 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:46:03 INFO    opendrift.models.basemodel: 2021-09-26 04:43:50.655992 - step 40 of 48 - 2000 active elements (0 deactivated)
13:46:06 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:46:06 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:46:07 INFO    opendrift.models.basemodel: 2021-09-26 05:43:50.655992 - step 41 of 48 - 2000 active elements (0 deactivated)
13:46:09 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:46:09 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:46:09 INFO    opendrift.models.basemodel: 2021-09-26 06:43:50.655992 - step 42 of 48 - 2000 active elements (0 deactivated)
13:46:12 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:46:12 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:46:12 INFO    opendrift.models.basemodel: 2021-09-26 07:43:50.655992 - step 43 of 48 - 2000 active elements (0 deactivated)
13:46:15 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:46:15 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:46:15 INFO    opendrift.models.basemodel: 2021-09-26 08:43:50.655992 - step 44 of 48 - 2000 active elements (0 deactivated)
13:46:17 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:46:18 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:46:18 INFO    opendrift.models.basemodel: 2021-09-26 09:43:50.655992 - step 45 of 48 - 2000 active elements (0 deactivated)
13:46:20 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:46:20 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:46:20 INFO    opendrift.models.basemodel: 2021-09-26 10:43:50.655992 - step 46 of 48 - 2000 active elements (0 deactivated)
13:46:23 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:46:23 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:46:23 INFO    opendrift.models.basemodel: 2021-09-26 11:43:50.655992 - step 47 of 48 - 2000 active elements (0 deactivated)
13:46:26 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:46:26 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:46:26 INFO    opendrift.models.basemodel: 2021-09-26 12:43:50.655992 - step 48 of 48 - 2000 active elements (0 deactivated)
13:46:29 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor
13:46:29 WARNING opendrift.readers.interpolation.structured: Ensemble data currently not extrapolated towards seafloor

Print and plot results. At the end the wind vanishes, and eggs come to surface

print(o)

o.plot(fast=True)
o.animation(fast=True, color='z')
OpenDrift - PelagicEggDrift 2021-09-24 13:43 to 2021-09-26 13:43 UTC (49 steps)

Out:

===========================
--------------------
Reader performance:
--------------------
global_landmask
 0:00:00.2  total
 0:00:00.0  preparing
 0:00:00.2  reading
 0:00:00.0  masking
--------------------
https://thredds.met.no/thredds/dodsC/cmems/topaz6/dataset-topaz6-arc-15min-3km-be.ncml
 0:00:50.7  total
 0:00:00.0  preparing
 0:00:49.8  reading
 0:00:00.1  interpolation
 0:00:00.0  interpolation_time
 0:00:00.8  rotating vectors
 0:00:00.0  masking
--------------------
https://thredds.met.no/thredds/dodsC/mepslatest/meps_lagged_6_h_latest_2_5km_latest.nc
 0:01:13.7  total
 0:00:00.0  preparing
 0:01:12.9  reading
 0:00:00.9  interpolation
 0:00:00.0  interpolation_time
 0:00:00.8  rotating vectors
 0:00:00.0  masking
--------------------
Performance:
 2:39.0 total time
    0.3 configuration
   21.9 preparing main loop
     21.9 making dynamical landmask
      0.0 moving elements to ocean
   2:11.6 readers
        0.2 global_landmask
        0.1 postprocessing
 2:16.6 main loop
       50.7 https://thredds.met.no/thredds/dodsC/cmems/topaz6/dataset-topaz6-arc-15min-3km-be.ncml
     1:13.7 https://thredds.met.no/thredds/dodsC/mepslatest/meps_lagged_6_h_latest_2_5km_latest.nc
      4.3 updating elements
        4.2 vertical mixing
    0.0 cleaning up
--------------------
===========================
Model:  PelagicEggDrift     (OpenDrift version 1.7.1)
        2000 active PelagicEgg particles  (0 deactivated, 0 scheduled)
-------------------
Environment variables:
  -----
  land_binary_mask
     1) global_landmask
  -----
  sea_floor_depth_below_sea_level
  x_sea_water_velocity
  y_sea_water_velocity
     1) https://thredds.met.no/thredds/dodsC/cmems/topaz6/dataset-topaz6-arc-15min-3km-be.ncml
  -----
  x_wind
  y_wind
     1) https://thredds.met.no/thredds/dodsC/mepslatest/meps_lagged_6_h_latest_2_5km_latest.nc
  -----
Readers not added for the following variables:
  ocean_vertical_diffusivity
  sea_ice_area_fraction
  sea_surface_wave_significant_height
  sea_water_salinity
  sea_water_temperature
  surface_downward_x_stress
  surface_downward_y_stress
  turbulent_generic_length_scale
  turbulent_kinetic_energy
  upward_sea_water_velocity

Time:
        Start: 2021-09-24 13:43:50.655992
        Present: 2021-09-26 13:43:50.655992
        Calculation steps: 48 * 1:00:00 - total time: 2 days, 0:00:00
        Output steps: 49 * 1:00:00
===========================

13:46:29 WARNING opendrift.models.basemodel: Plotting fast. This will make your plots less accurate.
13:46:39 WARNING opendrift.models.basemodel: Plotting fast. This will make your plots less accurate.
13:46:41 INFO    opendrift.models.basemodel: Saving animation to /root/project/docs/source/gallery/animations/example_codegg_0.gif...
13:46:41 INFO    opendrift.models.basemodel: Making animated gif...
MovieWriter imagemagick unavailable; using Pillow instead.
../_images/example_codegg_0.gif
o.animate_vertical_distribution()

Out:

13:46:59 INFO    opendrift.models.basemodel: Saving animation to /root/project/docs/source/gallery/animations/example_codegg_1.gif...
13:46:59 INFO    opendrift.models.basemodel: Making animated gif...
MovieWriter imagemagick unavailable; using Pillow instead.
../_images/example_codegg_1.gif

Total running time of the script: ( 3 minutes 41.283 seconds)

Gallery generated by Sphinx-Gallery