Cone seeding

from datetime import datetime, timedelta
from opendrift.readers import reader_netCDF_CF_generic
from opendrift.models.openoil import OpenOil

o = OpenOil(loglevel=20)  # Set loglevel to 0 for debug information
09:39:46 INFO    opendrift.models.basemodel:515: OpenDriftSimulation initialised (version 1.11.13 / v1.11.13-48-g5bea84b)

Using live data from Thredds

o.add_readers_from_list([
    'https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be'])

Adjusting some configuration

o.set_config('processes:dispersion', True)
o.set_config('processes:evaporation', False)
o.set_config('processes:emulsification', True)
o.disable_vertical_motion()
#o.set_config('drift:vertical_mixing', False)
#o.set_config('drift:vertical_mixing', False)
09:39:46 INFO    opendrift.models.oceandrift:377: Setting config: drift:vertical_advection -> False
09:39:46 INFO    opendrift.models.oceandrift:377: Setting config: drift:vertical_mixing -> False

Seed elements along cone, e.g. ship track with increasing uncertainty in position

latstart = 68.988911
lonstart = 16.040701
latend = 69.991446
lonend = 17.760061
time = [datetime.utcnow(), datetime.utcnow() + timedelta(hours=12)]
o.seed_cone(lon=[lonstart, lonend], lat=[latstart, latend],
            oil_type='EKOFISK', radius=[100, 800], number=10000, time=[time])

print(o)
09:39:46 INFO    opendrift.models.basemodel.environment:218: Adding a dynamical landmask with max. priority based on assumed maximum speed of 1.3 m/s. Adding a customised landmask may be faster...
09:39:52 INFO    opendrift.models.basemodel.environment:245: Fallback values will be used for the following variables which have no readers:
09:39:52 INFO    opendrift.models.basemodel.environment:248:    sea_surface_height: 0.000000
09:39:52 INFO    opendrift.models.basemodel.environment:248:    upward_sea_water_velocity: 0.000000
09:39:52 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_significant_height: 0.000000
09:39:52 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_stokes_drift_x_velocity: 0.000000
09:39:52 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_stokes_drift_y_velocity: 0.000000
09:39:52 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_period_at_variance_spectral_density_maximum: 0.000000
09:39:52 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment: 0.000000
09:39:52 INFO    opendrift.models.basemodel.environment:248:    sea_ice_area_fraction: 0.000000
09:39:52 INFO    opendrift.models.basemodel.environment:248:    sea_ice_x_velocity: 0.000000
09:39:52 INFO    opendrift.models.basemodel.environment:248:    sea_ice_y_velocity: 0.000000
09:39:52 INFO    opendrift.models.basemodel.environment:248:    sea_water_temperature: 10.000000
09:39:52 INFO    opendrift.models.basemodel.environment:248:    sea_water_salinity: 34.000000
09:39:52 INFO    opendrift.models.basemodel.environment:248:    sea_floor_depth_below_sea_level: 10000.000000
09:39:52 INFO    opendrift.models.basemodel.environment:248:    ocean_vertical_diffusivity: 0.020000
09:39:52 INFO    opendrift.models.basemodel.environment:248:    ocean_mixed_layer_thickness: 50.000000
09:39:52 INFO    opendrift.models.openoil.adios.dirjs:90: Querying ADIOS database for oil: EKOFISK
09:39:52 WARNING opendrift.models.openoil.adios.dirjs:94: Several oils found with name: EKOFISK: ['AD00328', 'AD00329', 'AD00332', 'AD00333', 'AD01944', 'AD02094', 'AD02463', 'AD02558', 'NO00013', 'NO00014', 'NO00015', 'NO00016'], using first.
09:39:52 INFO    opendrift.models.openoil.openoil:1719: Using density 809.002835 and viscosity 3.3498550728972226e-06 of oiltype EKOFISK
===========================
Model:  OpenOil     (OpenDrift version 1.11.13)
        0 active Oil particles  (0 deactivated, 10000 scheduled)
-------------------
Environment variables:
  -----
  land_binary_mask
     1) global_landmask
  -----
Readers not added for the following variables:
  ocean_mixed_layer_thickness
  ocean_vertical_diffusivity
  sea_floor_depth_below_sea_level
  sea_ice_area_fraction
  sea_ice_x_velocity
  sea_ice_y_velocity
  sea_surface_height
  sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment
  sea_surface_wave_period_at_variance_spectral_density_maximum
  sea_surface_wave_significant_height
  sea_surface_wave_stokes_drift_x_velocity
  sea_surface_wave_stokes_drift_y_velocity
  sea_water_salinity
  sea_water_temperature
  upward_sea_water_velocity
  x_sea_water_velocity
  x_wind
  y_sea_water_velocity
  y_wind
---
Lazy readers:
  LazyReader: https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be

Discarded readers:
===========================

Running model for 24 hours

o.run(steps=24*2, time_step=1800, time_step_output=3600)
09:39:53 INFO    opendrift.models.basemodel:936: Using existing reader for land_binary_mask
09:39:53 INFO    opendrift.models.basemodel:947: All points are in ocean
09:39:53 INFO    opendrift.models.openoil.openoil:687: Oil-water surface tension is 0.027884 Nm
09:39:53 INFO    opendrift.models.openoil.openoil:700: Max water fraction not available for EKOFISK, using default
09:39:53 INFO    opendrift.models.basemodel:2038: 2024-10-01 09:39:46.676045 - step 1 of 48 - 417 active elements (0 deactivated)
09:39:53 INFO    opendrift.readers.reader_netCDF_CF_generic:102: Opening dataset: https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be
/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)
09:40:01 INFO    opendrift.readers.reader_netCDF_CF_generic:325: Detected dimensions: {'x': 'X', 'y': 'Y', 'z': 'depth', 'time': 'time'}
09:40:06 INFO    opendrift.models.basemodel:2038: 2024-10-01 10:09:46.676045 - step 2 of 48 - 834 active elements (0 deactivated)
09:40:06 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
/root/project/opendrift/readers/interpolation/interpolators.py:17: RuntimeWarning: overflow encountered in cast
  data[mask] = np.finfo(np.float64).min
09:40:07 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:07 INFO    opendrift.models.basemodel:2038: 2024-10-01 10:39:46.676045 - step 3 of 48 - 1250 active elements (0 deactivated)
09:40:07 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:07 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:08 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:08 INFO    opendrift.models.basemodel:2038: 2024-10-01 11:09:46.676045 - step 4 of 48 - 1667 active elements (0 deactivated)
09:40:08 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:08 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:10 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:10 INFO    opendrift.models.basemodel:2038: 2024-10-01 11:39:46.676045 - step 5 of 48 - 2084 active elements (0 deactivated)
09:40:10 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:10 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:11 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:11 INFO    opendrift.models.basemodel:2038: 2024-10-01 12:09:46.676045 - step 6 of 48 - 2500 active elements (0 deactivated)
09:40:11 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:11 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:13 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:13 INFO    opendrift.models.basemodel:2038: 2024-10-01 12:39:46.676045 - step 7 of 48 - 2917 active elements (0 deactivated)
09:40:13 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:13 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:14 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:14 INFO    opendrift.models.basemodel:2038: 2024-10-01 13:09:46.676045 - step 8 of 48 - 3332 active elements (2 deactivated)
09:40:14 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:14 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:15 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:15 INFO    opendrift.models.basemodel:2038: 2024-10-01 13:39:46.676045 - step 9 of 48 - 3746 active elements (4 deactivated)
09:40:15 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:16 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:17 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:17 INFO    opendrift.models.basemodel:2038: 2024-10-01 14:09:46.676045 - step 10 of 48 - 4151 active elements (16 deactivated)
09:40:17 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:17 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:18 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:18 INFO    opendrift.models.basemodel:2038: 2024-10-01 14:39:46.676045 - step 11 of 48 - 4512 active elements (71 deactivated)
09:40:18 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:18 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:20 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:20 INFO    opendrift.models.basemodel:2038: 2024-10-01 15:09:46.676045 - step 12 of 48 - 4898 active elements (102 deactivated)
09:40:20 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:20 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:21 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:21 INFO    opendrift.models.basemodel:2038: 2024-10-01 15:39:46.676045 - step 13 of 48 - 5279 active elements (138 deactivated)
09:40:21 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:23 INFO    opendrift.models.basemodel:2038: 2024-10-01 16:09:46.676045 - step 14 of 48 - 5561 active elements (272 deactivated)
09:40:23 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:24 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:24 INFO    opendrift.models.basemodel:2038: 2024-10-01 16:39:46.676045 - step 15 of 48 - 5847 active elements (403 deactivated)
09:40:24 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:25 INFO    opendrift.models.basemodel:2038: 2024-10-01 17:09:46.676045 - step 16 of 48 - 6166 active elements (501 deactivated)
09:40:25 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:27 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:27 INFO    opendrift.models.basemodel:2038: 2024-10-01 17:39:46.676045 - step 17 of 48 - 6490 active elements (593 deactivated)
09:40:27 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:27 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:28 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:28 INFO    opendrift.models.basemodel:2038: 2024-10-01 18:09:46.676045 - step 18 of 48 - 6849 active elements (651 deactivated)
09:40:28 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:28 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:30 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:30 INFO    opendrift.models.basemodel:2038: 2024-10-01 18:39:46.676045 - step 19 of 48 - 7192 active elements (724 deactivated)
09:40:30 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:30 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:31 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:31 INFO    opendrift.models.basemodel:2038: 2024-10-01 19:09:46.676045 - step 20 of 48 - 7474 active elements (859 deactivated)
09:40:31 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:31 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:33 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:33 INFO    opendrift.models.basemodel:2038: 2024-10-01 19:39:46.676045 - step 21 of 48 - 7667 active elements (1083 deactivated)
09:40:33 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:35 INFO    opendrift.models.basemodel:2038: 2024-10-01 20:09:46.676045 - step 22 of 48 - 7864 active elements (1302 deactivated)
09:40:35 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:36 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:36 INFO    opendrift.models.basemodel:2038: 2024-10-01 20:39:46.676045 - step 23 of 48 - 8027 active elements (1556 deactivated)
09:40:36 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:36 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:37 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:37 INFO    opendrift.models.basemodel:2038: 2024-10-01 21:09:46.676045 - step 24 of 48 - 8100 active elements (1900 deactivated)
09:40:37 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:38 INFO    opendrift.models.basemodel:2038: 2024-10-01 21:39:46.676045 - step 25 of 48 - 7853 active elements (2147 deactivated)
09:40:38 WARNING opendrift.readers.basereader.structured:324: Data block from https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be not large enough to cover element positions within timestep. Buffer size (8) must be increased. See `Variables.set_buffer_size`.
09:40:38 INFO    opendrift.models.basemodel:2038: 2024-10-01 22:09:46.676045 - step 26 of 48 - 7600 active elements (2400 deactivated)
09:40:40 INFO    opendrift.models.basemodel:2038: 2024-10-01 22:39:46.676045 - step 27 of 48 - 7333 active elements (2667 deactivated)
09:40:40 INFO    opendrift.models.basemodel:2038: 2024-10-01 23:09:46.676045 - step 28 of 48 - 7078 active elements (2922 deactivated)
09:40:42 INFO    opendrift.models.basemodel:2038: 2024-10-01 23:39:46.676045 - step 29 of 48 - 6912 active elements (3088 deactivated)
09:40:42 INFO    opendrift.models.basemodel:2038: 2024-10-02 00:09:46.676045 - step 30 of 48 - 6841 active elements (3159 deactivated)
09:40:45 INFO    opendrift.models.basemodel:2038: 2024-10-02 00:39:46.676045 - step 31 of 48 - 6771 active elements (3229 deactivated)
09:40:45 INFO    opendrift.models.basemodel:2038: 2024-10-02 01:09:46.676045 - step 32 of 48 - 6651 active elements (3349 deactivated)
09:40:47 INFO    opendrift.models.basemodel:2038: 2024-10-02 01:39:46.676045 - step 33 of 48 - 6515 active elements (3485 deactivated)
09:40:48 INFO    opendrift.models.basemodel:2038: 2024-10-02 02:09:46.676045 - step 34 of 48 - 6359 active elements (3641 deactivated)
09:40:50 INFO    opendrift.models.basemodel:2038: 2024-10-02 02:39:46.676045 - step 35 of 48 - 6230 active elements (3770 deactivated)
09:40:50 INFO    opendrift.models.basemodel:2038: 2024-10-02 03:09:46.676045 - step 36 of 48 - 6183 active elements (3817 deactivated)
09:40:53 INFO    opendrift.models.basemodel:2038: 2024-10-02 03:39:46.676045 - step 37 of 48 - 6137 active elements (3863 deactivated)
09:40:53 INFO    opendrift.models.basemodel:2038: 2024-10-02 04:09:46.676045 - step 38 of 48 - 6087 active elements (3913 deactivated)
09:40:55 INFO    opendrift.models.basemodel:2038: 2024-10-02 04:39:46.676045 - step 39 of 48 - 6040 active elements (3960 deactivated)
09:40:55 INFO    opendrift.models.basemodel:2038: 2024-10-02 05:09:46.676045 - step 40 of 48 - 5988 active elements (4012 deactivated)
09:40:58 INFO    opendrift.models.basemodel:2038: 2024-10-02 05:39:46.676045 - step 41 of 48 - 5944 active elements (4056 deactivated)
09:40:58 INFO    opendrift.models.basemodel:2038: 2024-10-02 06:09:46.676045 - step 42 of 48 - 5860 active elements (4140 deactivated)
09:41:00 INFO    opendrift.models.basemodel:2038: 2024-10-02 06:39:46.676045 - step 43 of 48 - 5781 active elements (4219 deactivated)
09:41:00 INFO    opendrift.models.basemodel:2038: 2024-10-02 07:09:46.676045 - step 44 of 48 - 5695 active elements (4305 deactivated)
09:41:02 INFO    opendrift.models.basemodel:2038: 2024-10-02 07:39:46.676045 - step 45 of 48 - 5602 active elements (4398 deactivated)
09:41:03 INFO    opendrift.models.basemodel:2038: 2024-10-02 08:09:46.676045 - step 46 of 48 - 5461 active elements (4539 deactivated)
09:41:05 INFO    opendrift.models.basemodel:2038: 2024-10-02 08:39:46.676045 - step 47 of 48 - 5286 active elements (4714 deactivated)
09:41:05 INFO    opendrift.models.basemodel:2038: 2024-10-02 09:09:46.676045 - step 48 of 48 - 5152 active elements (4848 deactivated)

Print and plot results

print(o)
===========================
--------------------
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/sea/norkyst800m/1h/aggregate_be
 0:01:02.6  total
 0:00:00.0  preparing
 0:01:01.2  reading
 0:00:02.4  interpolation
 0:00:00.0  interpolation_time
 0:00:01.4  rotating vectors
 0:00:00.0  masking
--------------------
Performance:
 1:20.6 total time
    6.4 configuration
    0.1 preparing main loop
      0.0 moving elements to ocean
 1:14.0 main loop
      0.4 updating elements
        0.0 oil weathering
          0.0 updating viscosities
          0.0 updating densities
          0.0 emulsification
          0.0 dispersion
    0.0 cleaning up
--------------------
===========================
Model:  OpenOil     (OpenDrift version 1.11.13)
        4918 active Oil particles  (5082 deactivated, 0 scheduled)
-------------------
Environment variables:
  -----
  land_binary_mask
     1) global_landmask
  -----
  sea_floor_depth_below_sea_level
  sea_surface_height
  sea_water_salinity
  sea_water_temperature
  upward_sea_water_velocity
  x_sea_water_velocity
  x_wind
  y_sea_water_velocity
  y_wind
     1) https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be
  -----
Readers not added for the following variables:
  ocean_mixed_layer_thickness
  ocean_vertical_diffusivity
  sea_ice_area_fraction
  sea_ice_x_velocity
  sea_ice_y_velocity
  sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment
  sea_surface_wave_period_at_variance_spectral_density_maximum
  sea_surface_wave_significant_height
  sea_surface_wave_stokes_drift_x_velocity
  sea_surface_wave_stokes_drift_y_velocity

Discarded readers:

Time:
        Start: 2024-10-01 09:39:46.676045 UTC
        Present: 2024-10-02 09:39:46.676045 UTC
        Calculation steps: 48 * 0:30:00 - total time: 1 day, 0:00:00
        Output steps: 25 * 1:00:00
===========================

Add text label on the map

text = [{'s': 'Senja', 'x': 17.3, 'y': 69.3, 'fontsize': 20, 'color': 'g',
         'backgroundcolor': 'white', 'bbox': dict(facecolor='white', alpha=0.8), 'zorder': 1000}]

o.animation(fast=False, ocean_color='skyblue', land_color='burlywood', text=text)
/opt/conda/envs/opendrift/lib/python3.11/site-packages/cartopy/mpl/geoaxes.py:1683: UserWarning: No data for colormapping provided via 'c'. Parameters 'cmap' will be ignored
  result = super().scatter(*args, **kwargs)
09:41:27 INFO    opendrift.models.basemodel:4608: Saving animation to /root/project/docs/source/gallery/animations/example_cone_0.gif...
09:42:36 INFO    opendrift.models.basemodel:3037: Time to make animation: 0:01:29.472548
../_images/example_cone_0.gif
o.plot(fast=True, ocean_color='skyblue', land_color='dimgray', text=text)
OpenDrift - OpenOil (EKOFISK) 2024-10-01 09:39 to 2024-10-02 09:39 UTC (25 steps)
09:42:36 WARNING opendrift.models.basemodel:2411: Plotting fast. This will make your plots less accurate.

(<GeoAxes: title={'center': 'OpenDrift - OpenOil (EKOFISK)\n2024-10-01 09:39 to 2024-10-02 09:39 UTC (25 steps)'}>, <Figure size 811.438x1100 with 1 Axes>)

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

Gallery generated by Sphinx-Gallery