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'])
14:14:51 INFO    opendrift.models.basemodel:533: OpenDriftSimulation initialised (version 1.11.2 / v1.11.2-43-gce9f6bb)

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)
14:14:51 INFO    opendrift.models.basemodel.environment:218: Adding a dynamical landmask with max. priority based on assumed maximum speed of 2.0 m/s. Adding a customised landmask may be faster...
14:14:57 INFO    opendrift.models.basemodel.environment:245: Fallback values will be used for the following variables which have no readers:
14:14:57 INFO    opendrift.models.basemodel.environment:248:    x_sea_water_velocity: 0.000000
14:14:57 INFO    opendrift.models.basemodel.environment:248:    y_sea_water_velocity: 0.000000
14:14:57 INFO    opendrift.models.basemodel.environment:248:    sea_surface_height: 0.000000
14:14:57 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_significant_height: 0.000000
14:14:57 INFO    opendrift.models.basemodel.environment:248:    sea_ice_area_fraction: 0.000000
14:14:57 INFO    opendrift.models.basemodel.environment:248:    x_wind: 0.000000
14:14:57 INFO    opendrift.models.basemodel.environment:248:    y_wind: 0.000000
14:14:57 INFO    opendrift.models.basemodel.environment:248:    sea_floor_depth_below_sea_level: 100.000000
14:14:57 INFO    opendrift.models.basemodel.environment:248:    ocean_vertical_diffusivity: 0.020000
14:14:57 INFO    opendrift.models.basemodel.environment:248:    ocean_mixed_layer_thickness: 50.000000
14:14:57 INFO    opendrift.models.basemodel.environment:248:    sea_water_temperature: 10.000000
14:14:57 INFO    opendrift.models.basemodel.environment:248:    sea_water_salinity: 34.000000
14:14:57 INFO    opendrift.models.basemodel.environment:248:    surface_downward_x_stress: 0.000000
14:14:57 INFO    opendrift.models.basemodel.environment:248:    surface_downward_y_stress: 0.000000
14:14:57 INFO    opendrift.models.basemodel.environment:248:    turbulent_kinetic_energy: 0.000000
14:14:57 INFO    opendrift.models.basemodel.environment:248:    turbulent_generic_length_scale: 0.000000
14:14:57 INFO    opendrift.models.basemodel.environment:248:    upward_sea_water_velocity: 0.000000

Running model

o.run(duration=timedelta(hours=48), time_step=3600)
14:14:58 INFO    opendrift.models.basemodel:911: Using existing reader for land_binary_mask
14:14:58 INFO    opendrift.models.basemodel:922: All points are in ocean
14:14:58 INFO    opendrift.models.basemodel:2011: 2024-05-14 14:14:51.996543 - step 1 of 48 - 2000 active elements (0 deactivated)
14:14:58 INFO    opendrift.readers.reader_netCDF_CF_generic:102: Opening dataset: https://thredds.met.no/thredds/dodsC/cmems/topaz6/dataset-topaz6-arc-15min-3km-be.ncml
/opt/conda/envs/opendrift/lib/python3.11/site-packages/pyproj/crs/crs.py:1286: UserWarning: You will likely lose important projection information when converting to a PROJ string from another format. See: https://proj.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems
  proj = self._crs.to_proj4(version=version)
14:15:03 INFO    opendrift.readers.reader_netCDF_CF_generic:314: Detected dimensions: {'x': 'x', 'y': 'y', 'time': 'time'}
14:15:04 INFO    opendrift.readers.reader_netCDF_CF_generic:102: Opening dataset: https://thredds.met.no/thredds/dodsC/mepslatest/meps_lagged_6_h_latest_2_5km_latest.nc
/opt/conda/envs/opendrift/lib/python3.11/site-packages/pyproj/crs/crs.py:1286: UserWarning: You will likely lose important projection information when converting to a PROJ string from another format. See: https://proj.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems
  proj = self._crs.to_proj4(version=version)
14:15:05 INFO    opendrift.readers.reader_netCDF_CF_generic:314: Detected dimensions: {'time': 'time', 'x': 'x', 'y': 'y'}
14:15:07 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:07 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:08 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:08 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:08 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:08 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:08 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:08 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:08 INFO    opendrift.models.basemodel:2011: 2024-05-14 15:14:51.996543 - step 2 of 48 - 2000 active elements (0 deactivated)
14:15:10 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:10 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:10 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:10 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:10 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:10 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:10 INFO    opendrift.models.basemodel:2011: 2024-05-14 16:14:51.996543 - step 3 of 48 - 2000 active elements (0 deactivated)
14:15:12 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:12 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:12 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:12 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:12 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:12 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:13 INFO    opendrift.models.basemodel:2011: 2024-05-14 17:14:51.996543 - step 4 of 48 - 2000 active elements (0 deactivated)
14:15:14 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:14 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:14 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:14 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:14 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:14 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:14 INFO    opendrift.models.basemodel:2011: 2024-05-14 18:14:51.996543 - step 5 of 48 - 2000 active elements (0 deactivated)
14:15:18 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:18 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:18 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:18 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:18 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:18 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:18 INFO    opendrift.models.basemodel:2011: 2024-05-14 19:14:51.996543 - step 6 of 48 - 2000 active elements (0 deactivated)
14:15:20 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:20 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:20 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:20 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:20 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:20 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:20 INFO    opendrift.models.basemodel:2011: 2024-05-14 20:14:51.996543 - step 7 of 48 - 2000 active elements (0 deactivated)
14:15:23 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:23 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:23 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:23 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:23 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:23 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:23 INFO    opendrift.models.basemodel:2011: 2024-05-14 21:14:51.996543 - step 8 of 48 - 2000 active elements (0 deactivated)
14:15:27 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:27 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:27 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:27 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:27 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:27 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:27 INFO    opendrift.models.basemodel:2011: 2024-05-14 22:14:51.996543 - step 9 of 48 - 2000 active elements (0 deactivated)
14:15:29 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:29 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:29 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:29 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:29 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:29 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:29 INFO    opendrift.models.basemodel:2011: 2024-05-14 23:14:51.996543 - step 10 of 48 - 2000 active elements (0 deactivated)
14:15:32 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:32 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:32 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:32 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:32 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:32 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:32 INFO    opendrift.models.basemodel:2011: 2024-05-15 00:14:51.996543 - step 11 of 48 - 2000 active elements (0 deactivated)
14:15:35 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:35 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:35 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:35 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:35 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:35 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:35 INFO    opendrift.models.basemodel:2011: 2024-05-15 01:14:51.996543 - step 12 of 48 - 2000 active elements (0 deactivated)
14:15:47 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:47 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:47 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:47 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:47 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:47 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:47 INFO    opendrift.models.basemodel:2011: 2024-05-15 02:14:51.996543 - step 13 of 48 - 2000 active elements (0 deactivated)
14:15:50 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:50 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:50 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:50 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:50 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:50 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:50 INFO    opendrift.models.basemodel:2011: 2024-05-15 03:14:51.996543 - step 14 of 48 - 2000 active elements (0 deactivated)
14:15:54 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:54 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:54 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:54 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:54 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:54 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:54 INFO    opendrift.models.basemodel:2011: 2024-05-15 04:14:51.996543 - step 15 of 48 - 2000 active elements (0 deactivated)
14:15:59 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:59 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:15:59 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:59 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:59 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:59 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:15:59 INFO    opendrift.models.basemodel:2011: 2024-05-15 05:14:51.996543 - step 16 of 48 - 2000 active elements (0 deactivated)
14:16:04 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:04 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:04 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:04 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:04 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:04 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:05 INFO    opendrift.models.basemodel:2011: 2024-05-15 06:14:51.996543 - step 17 of 48 - 2000 active elements (0 deactivated)
14:16:08 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:08 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:08 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:08 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:08 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:08 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:08 INFO    opendrift.models.basemodel:2011: 2024-05-15 07:14:51.996543 - step 18 of 48 - 2000 active elements (0 deactivated)
14:16:12 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:12 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:12 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:12 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:12 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:12 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:12 INFO    opendrift.models.basemodel:2011: 2024-05-15 08:14:51.996543 - step 19 of 48 - 2000 active elements (0 deactivated)
14:16:13 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:13 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:13 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:13 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:13 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:13 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:13 INFO    opendrift.models.basemodel:2011: 2024-05-15 09:14:51.996543 - step 20 of 48 - 2000 active elements (0 deactivated)
14:16:15 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:15 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:15 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:15 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:15 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:15 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:15 INFO    opendrift.models.basemodel:2011: 2024-05-15 10:14:51.996543 - step 21 of 48 - 2000 active elements (0 deactivated)
14:16:21 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:21 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:21 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:21 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:21 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:21 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:21 INFO    opendrift.models.basemodel:2011: 2024-05-15 11:14:51.996543 - step 22 of 48 - 2000 active elements (0 deactivated)
14:16:23 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:23 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:23 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:23 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:23 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:23 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:24 INFO    opendrift.models.basemodel:2011: 2024-05-15 12:14:51.996543 - step 23 of 48 - 2000 active elements (0 deactivated)
14:16:27 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:27 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:27 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:27 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:27 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:27 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:27 INFO    opendrift.models.basemodel:2011: 2024-05-15 13:14:51.996543 - step 24 of 48 - 2000 active elements (0 deactivated)
14:16:32 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:32 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:32 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:32 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:32 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:32 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:32 INFO    opendrift.models.basemodel:2011: 2024-05-15 14:14:51.996543 - step 25 of 48 - 2000 active elements (0 deactivated)
14:16:34 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:34 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:34 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:34 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:34 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:34 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:34 INFO    opendrift.models.basemodel:2011: 2024-05-15 15:14:51.996543 - step 26 of 48 - 2000 active elements (0 deactivated)
14:16:36 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:36 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:36 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:36 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:36 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:36 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:36 INFO    opendrift.models.basemodel:2011: 2024-05-15 16:14:51.996543 - step 27 of 48 - 2000 active elements (0 deactivated)
14:16:38 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:38 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:38 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:38 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:38 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:38 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:39 INFO    opendrift.models.basemodel:2011: 2024-05-15 17:14:51.996543 - step 28 of 48 - 2000 active elements (0 deactivated)
14:16:40 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:40 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:40 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:40 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:40 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:40 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:40 INFO    opendrift.models.basemodel:2011: 2024-05-15 18:14:51.996543 - step 29 of 48 - 2000 active elements (0 deactivated)
14:16:42 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:42 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:42 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:42 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:42 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:42 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:43 INFO    opendrift.models.basemodel:2011: 2024-05-15 19:14:51.996543 - step 30 of 48 - 2000 active elements (0 deactivated)
14:16:45 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:45 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:45 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:45 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:45 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:45 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:45 INFO    opendrift.models.basemodel:2011: 2024-05-15 20:14:51.996543 - step 31 of 48 - 2000 active elements (0 deactivated)
14:16:46 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:46 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:46 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:46 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:46 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:46 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:47 INFO    opendrift.models.basemodel:2011: 2024-05-15 21:14:51.996543 - step 32 of 48 - 2000 active elements (0 deactivated)
14:16:48 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:48 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:48 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:48 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:48 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:48 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:48 INFO    opendrift.models.basemodel:2011: 2024-05-15 22:14:51.996543 - step 33 of 48 - 2000 active elements (0 deactivated)
14:16:50 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:50 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:50 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:50 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:50 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:50 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:50 INFO    opendrift.models.basemodel:2011: 2024-05-15 23:14:51.996543 - step 34 of 48 - 2000 active elements (0 deactivated)
14:16:52 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:52 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:52 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:52 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:52 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:52 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:52 INFO    opendrift.models.basemodel:2011: 2024-05-16 00:14:51.996543 - step 35 of 48 - 2000 active elements (0 deactivated)
14:16:54 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:54 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:54 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:54 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:54 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:54 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:54 INFO    opendrift.models.basemodel:2011: 2024-05-16 01:14:51.996543 - step 36 of 48 - 2000 active elements (0 deactivated)
14:16:56 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:56 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:56 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:56 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:56 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:56 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:56 INFO    opendrift.models.basemodel:2011: 2024-05-16 02:14:51.996543 - step 37 of 48 - 2000 active elements (0 deactivated)
14:16:58 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:58 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:16:58 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:58 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:58 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:58 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:16:58 INFO    opendrift.models.basemodel:2011: 2024-05-16 03:14:51.996543 - step 38 of 48 - 2000 active elements (0 deactivated)
14:17:00 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:00 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:00 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:00 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:00 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:00 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:00 INFO    opendrift.models.basemodel:2011: 2024-05-16 04:14:51.996543 - step 39 of 48 - 2000 active elements (0 deactivated)
14:17:02 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:02 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:02 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:02 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:02 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:02 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:02 INFO    opendrift.models.basemodel:2011: 2024-05-16 05:14:51.996543 - step 40 of 48 - 2000 active elements (0 deactivated)
14:17:04 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:04 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:04 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:04 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:04 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:04 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:04 INFO    opendrift.models.basemodel:2011: 2024-05-16 06:14:51.996543 - step 41 of 48 - 2000 active elements (0 deactivated)
14:17:05 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:05 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:05 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:05 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:05 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:05 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:05 INFO    opendrift.models.basemodel:2011: 2024-05-16 07:14:51.996543 - step 42 of 48 - 2000 active elements (0 deactivated)
14:17:07 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:07 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:07 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:07 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:07 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:07 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:07 INFO    opendrift.models.basemodel:2011: 2024-05-16 08:14:51.996543 - step 43 of 48 - 2000 active elements (0 deactivated)
14:17:09 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:09 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:09 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:09 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:09 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:09 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:09 INFO    opendrift.models.basemodel:2011: 2024-05-16 09:14:51.996543 - step 44 of 48 - 2000 active elements (0 deactivated)
14:17:10 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:10 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:10 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:10 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:10 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:10 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:10 INFO    opendrift.models.basemodel:2011: 2024-05-16 10:14:51.996543 - step 45 of 48 - 2000 active elements (0 deactivated)
14:17:12 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:12 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:12 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:12 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:12 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:12 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:12 INFO    opendrift.models.basemodel:2011: 2024-05-16 11:14:51.996543 - step 46 of 48 - 2000 active elements (0 deactivated)
14:17:14 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:14 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:14 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:14 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:14 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:14 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:14 INFO    opendrift.models.basemodel:2011: 2024-05-16 12:14:51.996543 - step 47 of 48 - 2000 active elements (0 deactivated)
14:17:16 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:16 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:16 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:16 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:16 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:16 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:16 INFO    opendrift.models.basemodel:2011: 2024-05-16 13:14:51.996543 - step 48 of 48 - 2000 active elements (0 deactivated)
14:17:19 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:19 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:19 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:19 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:19 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:19 WARNING opendrift:122: Only NaNs input to linearNDFast - returning

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 2024-05-14 14:14 to 2024-05-16 14:14 UTC (49 steps)
===========================
--------------------
Reader performance:
--------------------
global_landmask
 0:00:00.0  total
 0:00:00.0  preparing
 0:00:00.0  reading
 0:00:00.0  masking
--------------------
https://thredds.met.no/thredds/dodsC/cmems/topaz6/dataset-topaz6-arc-15min-3km-be.ncml
 0:00:42.6  total
 0:00:00.0  preparing
 0:00:42.3  reading
 0:00:00.0  interpolation
 0:00:00.0  interpolation_time
 0:00:00.2  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:26.8  total
 0:00:00.0  preparing
 0:01:26.3  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:27.4 total time
    6.0 configuration
    0.0 preparing main loop
      0.0 moving elements to ocean
 2:21.3 main loop
      3.5 updating elements
        3.4 vertical mixing
    0.0 cleaning up
--------------------
===========================
Model:  PelagicEggDrift     (OpenDrift version 1.11.2)
        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_mixed_layer_thickness
  ocean_vertical_diffusivity
  sea_ice_area_fraction
  sea_surface_height
  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: 2024-05-14 14:14:51.996543 UTC
        Present: 2024-05-16 14:14:51.996543 UTC
        Calculation steps: 48 * 1:00:00 - total time: 2 days, 0:00:00
        Output steps: 49 * 1:00:00
===========================

14:17:19 WARNING opendrift.models.basemodel:2379: Plotting fast. This will make your plots less accurate.
14:17:28 WARNING opendrift.models.basemodel:2379: Plotting fast. This will make your plots less accurate.
14:17:30 INFO    opendrift.models.basemodel:4570: Saving animation to /root/project/docs/source/gallery/animations/example_codegg_0.gif...
14:17:59 INFO    opendrift.models.basemodel:3003: Time to make animation: 0:00:30.669845
../_images/example_codegg_0.gif
o.animate_vertical_distribution()
14:18:01 INFO    opendrift.models.basemodel:4570: Saving animation to /root/project/docs/source/gallery/animations/example_codegg_1.gif...
14:18:27 INFO    opendrift.models.oceandrift:722: Time to make animation: 0:00:26.756660
../_images/example_codegg_1.gif

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

Gallery generated by Sphinx-Gallery