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'])
10:42:06 INFO    opendrift:509: OpenDriftSimulation initialised (version 1.13.1 / v1.13.1-25-g5021161)

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

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)
10:42:06 INFO    opendrift.models.basemodel.environment:206: Adding a global landmask from GSHHG
10:42:11 INFO    opendrift.models.basemodel.environment:229: Fallback values will be used for the following variables which have no readers:
10:42:11 INFO    opendrift.models.basemodel.environment:232:    x_sea_water_velocity: 0.000000
10:42:11 INFO    opendrift.models.basemodel.environment:232:    y_sea_water_velocity: 0.000000
10:42:11 INFO    opendrift.models.basemodel.environment:232:    sea_surface_height: 0.000000
10:42:11 INFO    opendrift.models.basemodel.environment:232:    sea_surface_wave_significant_height: 0.000000
10:42:11 INFO    opendrift.models.basemodel.environment:232:    sea_ice_area_fraction: 0.000000
10:42:11 INFO    opendrift.models.basemodel.environment:232:    x_wind: 0.000000
10:42:11 INFO    opendrift.models.basemodel.environment:232:    y_wind: 0.000000
10:42:11 INFO    opendrift.models.basemodel.environment:232:    sea_floor_depth_below_sea_level: 100.000000
10:42:11 INFO    opendrift.models.basemodel.environment:232:    ocean_vertical_diffusivity: 0.020000
10:42:11 INFO    opendrift.models.basemodel.environment:232:    ocean_mixed_layer_thickness: 50.000000
10:42:11 INFO    opendrift.models.basemodel.environment:232:    sea_water_temperature: 10.000000
10:42:11 INFO    opendrift.models.basemodel.environment:232:    sea_water_salinity: 34.000000
10:42:11 INFO    opendrift.models.basemodel.environment:232:    surface_downward_x_stress: 0.000000
10:42:11 INFO    opendrift.models.basemodel.environment:232:    surface_downward_y_stress: 0.000000
10:42:11 INFO    opendrift.models.basemodel.environment:232:    turbulent_kinetic_energy: 0.000000
10:42:11 INFO    opendrift.models.basemodel.environment:232:    turbulent_generic_length_scale: 0.000000
10:42:11 INFO    opendrift.models.basemodel.environment:232:    upward_sea_water_velocity: 0.000000

Running model

o.run(duration=timedelta(hours=48), time_step=3600)
10:42:11 INFO    opendrift:923: Using existing reader for land_binary_mask
10:42:11 INFO    opendrift:934: All points are in ocean
10:42:11 INFO    opendrift:2060: 2025-04-22 10:42:06.953793 - step 1 of 48 - 2000 active elements (0 deactivated)
10:42:11 INFO    opendrift.readers:61: Opening file with xr.open_dataset
10:42:34 INFO    opendrift.readers.reader_netCDF_CF_generic:332: Detected dimensions: {'x': 'x', 'y': 'y', 'time': 'time'}
10:42:34 INFO    opendrift.readers:61: Opening file with xr.open_dataset
10:42:35 INFO    opendrift.readers.reader_netCDF_CF_generic:332: Detected dimensions: {'time': 'time', 'x': 'x', 'y': 'y'}
10:42:37 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:42:37 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:42:38 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:42:38 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:42:38 INFO    opendrift:2060: 2025-04-22 11:42:06.953793 - step 2 of 48 - 2000 active elements (0 deactivated)
10:42:41 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:42:41 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:42:41 INFO    opendrift:2060: 2025-04-22 12:42:06.953793 - step 3 of 48 - 2000 active elements (0 deactivated)
10:42:45 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:42:45 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:42:45 INFO    opendrift:2060: 2025-04-22 13:42:06.953793 - step 4 of 48 - 2000 active elements (0 deactivated)
10:42:47 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:42:47 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:42:47 INFO    opendrift:2060: 2025-04-22 14:42:06.953793 - step 5 of 48 - 2000 active elements (0 deactivated)
10:42:49 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:42:49 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:42:50 INFO    opendrift:2060: 2025-04-22 15:42:06.953793 - step 6 of 48 - 2000 active elements (0 deactivated)
10:42:52 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:42:52 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:42:52 INFO    opendrift:2060: 2025-04-22 16:42:06.953793 - step 7 of 48 - 2000 active elements (0 deactivated)
10:42:54 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:42:54 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:42:54 INFO    opendrift:2060: 2025-04-22 17:42:06.953793 - step 8 of 48 - 2000 active elements (0 deactivated)
10:42:56 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:42:56 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:42:56 INFO    opendrift:2060: 2025-04-22 18:42:06.953793 - step 9 of 48 - 2000 active elements (0 deactivated)
10:42:59 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:42:59 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:42:59 INFO    opendrift:2060: 2025-04-22 19:42:06.953793 - step 10 of 48 - 2000 active elements (0 deactivated)
10:43:01 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:01 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:01 INFO    opendrift:2060: 2025-04-22 20:42:06.953793 - step 11 of 48 - 2000 active elements (0 deactivated)
10:43:03 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:03 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:03 INFO    opendrift:2060: 2025-04-22 21:42:06.953793 - step 12 of 48 - 2000 active elements (0 deactivated)
10:43:05 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:05 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:05 INFO    opendrift:2060: 2025-04-22 22:42:06.953793 - step 13 of 48 - 2000 active elements (0 deactivated)
10:43:08 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:08 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:08 INFO    opendrift:2060: 2025-04-22 23:42:06.953793 - step 14 of 48 - 2000 active elements (0 deactivated)
10:43:11 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:11 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:11 INFO    opendrift:2060: 2025-04-23 00:42:06.953793 - step 15 of 48 - 2000 active elements (0 deactivated)
10:43:13 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:13 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:14 INFO    opendrift:2060: 2025-04-23 01:42:06.953793 - step 16 of 48 - 2000 active elements (0 deactivated)
10:43:16 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:16 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:16 INFO    opendrift:2060: 2025-04-23 02:42:06.953793 - step 17 of 48 - 2000 active elements (0 deactivated)
10:43:19 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:19 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:19 INFO    opendrift:2060: 2025-04-23 03:42:06.953793 - step 18 of 48 - 2000 active elements (0 deactivated)
10:43:22 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:22 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:22 INFO    opendrift:2060: 2025-04-23 04:42:06.953793 - step 19 of 48 - 2000 active elements (0 deactivated)
10:43:25 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:25 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:25 INFO    opendrift:2060: 2025-04-23 05:42:06.953793 - step 20 of 48 - 2000 active elements (0 deactivated)
10:43:28 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:28 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:28 INFO    opendrift:2060: 2025-04-23 06:42:06.953793 - step 21 of 48 - 2000 active elements (0 deactivated)
10:43:30 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:30 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:31 INFO    opendrift:2060: 2025-04-23 07:42:06.953793 - step 22 of 48 - 2000 active elements (0 deactivated)
10:43:33 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:33 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:33 INFO    opendrift:2060: 2025-04-23 08:42:06.953793 - step 23 of 48 - 2000 active elements (0 deactivated)
10:43:36 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:36 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:36 INFO    opendrift:2060: 2025-04-23 09:42:06.953793 - step 24 of 48 - 2000 active elements (0 deactivated)
10:43:39 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:39 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:39 INFO    opendrift:2060: 2025-04-23 10:42:06.953793 - step 25 of 48 - 2000 active elements (0 deactivated)
10:43:41 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:41 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:41 INFO    opendrift:2060: 2025-04-23 11:42:06.953793 - step 26 of 48 - 2000 active elements (0 deactivated)
10:43:44 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:44 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:44 INFO    opendrift:2060: 2025-04-23 12:42:06.953793 - step 27 of 48 - 2000 active elements (0 deactivated)
10:43:47 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:47 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:47 INFO    opendrift:2060: 2025-04-23 13:42:06.953793 - step 28 of 48 - 2000 active elements (0 deactivated)
10:43:50 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:50 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:50 INFO    opendrift:2060: 2025-04-23 14:42:06.953793 - step 29 of 48 - 2000 active elements (0 deactivated)
10:43:53 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:53 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:53 INFO    opendrift:2060: 2025-04-23 15:42:06.953793 - step 30 of 48 - 2000 active elements (0 deactivated)
10:43:56 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:56 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:56 INFO    opendrift:2060: 2025-04-23 16:42:06.953793 - step 31 of 48 - 2000 active elements (0 deactivated)
10:43:58 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:58 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:43:59 INFO    opendrift:2060: 2025-04-23 17:42:06.953793 - step 32 of 48 - 2000 active elements (0 deactivated)
10:44:01 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:01 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:01 INFO    opendrift:2060: 2025-04-23 18:42:06.953793 - step 33 of 48 - 2000 active elements (0 deactivated)
10:44:05 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:05 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:05 INFO    opendrift:2060: 2025-04-23 19:42:06.953793 - step 34 of 48 - 2000 active elements (0 deactivated)
10:44:08 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:08 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:08 INFO    opendrift:2060: 2025-04-23 20:42:06.953793 - step 35 of 48 - 2000 active elements (0 deactivated)
10:44:11 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:11 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:11 INFO    opendrift:2060: 2025-04-23 21:42:06.953793 - step 36 of 48 - 2000 active elements (0 deactivated)
10:44:14 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:14 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:14 INFO    opendrift:2060: 2025-04-23 22:42:06.953793 - step 37 of 48 - 2000 active elements (0 deactivated)
10:44:16 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:16 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:17 INFO    opendrift:2060: 2025-04-23 23:42:06.953793 - step 38 of 48 - 2000 active elements (0 deactivated)
10:44:19 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:19 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:19 INFO    opendrift:2060: 2025-04-24 00:42:06.953793 - step 39 of 48 - 2000 active elements (0 deactivated)
10:44:23 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:23 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:23 INFO    opendrift:2060: 2025-04-24 01:42:06.953793 - step 40 of 48 - 2000 active elements (0 deactivated)
10:44:26 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:26 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:26 INFO    opendrift:2060: 2025-04-24 02:42:06.953793 - step 41 of 48 - 2000 active elements (0 deactivated)
10:44:29 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:29 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:29 INFO    opendrift:2060: 2025-04-24 03:42:06.953793 - step 42 of 48 - 2000 active elements (0 deactivated)
10:44:32 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:32 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:32 INFO    opendrift:2060: 2025-04-24 04:42:06.953793 - step 43 of 48 - 2000 active elements (0 deactivated)
10:44:34 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:34 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:34 INFO    opendrift:2060: 2025-04-24 05:42:06.953793 - step 44 of 48 - 2000 active elements (0 deactivated)
10:44:37 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:37 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:37 INFO    opendrift:2060: 2025-04-24 06:42:06.953793 - step 45 of 48 - 2000 active elements (0 deactivated)
10:44:40 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:40 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:40 INFO    opendrift:2060: 2025-04-24 07:42:06.953793 - step 46 of 48 - 2000 active elements (0 deactivated)
10:44:43 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:43 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:43 INFO    opendrift:2060: 2025-04-24 08:42:06.953793 - step 47 of 48 - 2000 active elements (0 deactivated)
10:44:45 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:45 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:45 INFO    opendrift:2060: 2025-04-24 09:42:06.953793 - step 48 of 48 - 2000 active elements (0 deactivated)
10:44:48 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
10:44:48 WARNING opendrift.readers.interpolation.structured:63: Ensemble data currently not extrapolated towards seafloor
<xarray.Dataset> Size: 13MB
Dimensions:                              (trajectory: 2000, time: 49)
Coordinates:
  * trajectory                           (trajectory) int64 16kB 0 1 ... 1999
  * time                                 (time) datetime64[ns] 392B 2025-04-2...
Data variables: (12/32)
    status                               (trajectory, time) float32 392kB 0.0...
    moving                               (trajectory, time) float32 392kB 1.0...
    age_seconds                          (trajectory, time) float32 392kB 0.0...
    origin_marker                        (trajectory, time) float32 392kB 0.0...
    lon                                  (trajectory, time) float32 392kB 14....
    lat                                  (trajectory, time) float32 392kB 68....
    ...                                   ...
    sea_water_salinity                   (trajectory, time) float32 392kB 34....
    surface_downward_x_stress            (trajectory, time) float32 392kB 0.0...
    surface_downward_y_stress            (trajectory, time) float32 392kB 0.0...
    turbulent_kinetic_energy             (trajectory, time) float32 392kB 0.0...
    turbulent_generic_length_scale       (trajectory, time) float32 392kB 0.0...
    upward_sea_water_velocity            (trajectory, time) float32 392kB 0.0...
Attributes: (12/136)
    Conventions:                                                      CF-1.11...
    standard_name_vocabulary:                                         CF Stan...
    featureType:                                                      trajectory
    title:                                                            OpenDri...
    summary:                                                          Output ...
    keywords:                                                         traject...
    ...                                                               ...
    geospatial_lon_units:                                             degrees...
    geospatial_lon_resolution:                                        point
    runtime:                                                          0:02:42...
    geospatial_vertical_min:                                          -52.32173
    geospatial_vertical_max:                                          -5.4472...
    geospatial_vertical_positive:                                     up


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 2025-04-22 10:42 to 2025-04-24 10:42 UTC (49 steps)
===========================
--------------------
Reader performance:
--------------------
global_landmask
 0:00:01.5  total
 0:00:00.0  preparing
 0:00:01.5  reading
 0:00:00.0  masking
--------------------
https://thredds.met.no/thredds/dodsC/cmems/topaz6/dataset-topaz6-arc-15min-3km-be.ncml
 0:01:02.7  total
 0:00:00.0  preparing
 0:01:02.3  reading
 0:00:00.0  interpolation
 0:00:00.0  interpolation_time
 0:00:00.4  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:04.2  total
 0:00:00.0  preparing
 0:01:03.8  reading
 0:00:00.9  interpolation
 0:00:00.0  interpolation_time
 0:00:00.4  rotating vectors
 0:00:00.0  masking
--------------------
Performance:
 2:42.2 total time
    4.3 configuration
    0.1 preparing main loop
      0.0 moving elements to ocean
 2:37.7 main loop
      3.1 updating elements
        3.0 vertical mixing
    0.0 cleaning up
--------------------
===========================
Model:  PelagicEggDrift     (OpenDrift version 1.13.1)
        2000 active PelagicEgg particles  (0 deactivated, 0 scheduled)
-------------------
Environment variables:
  -----
  land_binary_mask
     1) global_landmask
  -----
  sea_floor_depth_below_sea_level
  sea_surface_height
  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_mixed_layer_thickness
  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

Discarded readers:

Time:
        Start: 2025-04-22 10:42:06.953793 UTC
        Present: 2025-04-24 10:42:06.953793 UTC
        Calculation steps: 48 * 1:00:00 - total time: 2 days, 0:00:00
        Output steps: 49 * 1:00:00
===========================

10:44:49 WARNING opendrift:2436: Plotting fast. This will make your plots less accurate.
10:44:55 WARNING opendrift:2436: Plotting fast. This will make your plots less accurate.
10:44:56 INFO    opendrift:4607: Saving animation to /root/project/docs/source/gallery/animations/example_codegg_0.gif...
10:45:26 INFO    opendrift:3043: Time to make animation: 0:00:30.857598
../_images/example_codegg_0.gif
o.animate_vertical_distribution()
10:45:27 INFO    opendrift:4607: Saving animation to /root/project/docs/source/gallery/animations/example_codegg_1.gif...
10:45:38 INFO    opendrift.models.oceandrift:619: Time to make animation: 0:00:10.266492
../_images/example_codegg_1.gif

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

Gallery generated by Sphinx-Gallery