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
13:19:09 INFO    opendrift.models.basemodel:529: OpenDriftSimulation initialised (version 1.11.2 / v1.11.2-11-g21e4c60)

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)
13:19:09 INFO    opendrift.models.oceandrift:383: Setting config: drift:vertical_advection -> False
13:19:09 INFO    opendrift.models.oceandrift:383: 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)
13:19:09 INFO    opendrift.models.basemodel.environment:220: Adding a dynamical landmask with max. priority based on assumed maximum speed of 1.0 m/s. Adding a customised landmask may be faster...
13:19:16 INFO    opendrift.models.basemodel.environment:247: Fallback values will be used for the following variables which have no readers:
13:19:16 INFO    opendrift.models.basemodel.environment:250:    sea_surface_height: 0.000000
13:19:16 INFO    opendrift.models.basemodel.environment:250:    upward_sea_water_velocity: 0.000000
13:19:16 INFO    opendrift.models.basemodel.environment:250:    sea_surface_wave_significant_height: 0.000000
13:19:16 INFO    opendrift.models.basemodel.environment:250:    sea_surface_wave_stokes_drift_x_velocity: 0.000000
13:19:16 INFO    opendrift.models.basemodel.environment:250:    sea_surface_wave_stokes_drift_y_velocity: 0.000000
13:19:16 INFO    opendrift.models.basemodel.environment:250:    sea_surface_wave_period_at_variance_spectral_density_maximum: 0.000000
13:19:16 INFO    opendrift.models.basemodel.environment:250:    sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment: 0.000000
13:19:16 INFO    opendrift.models.basemodel.environment:250:    sea_ice_area_fraction: 0.000000
13:19:16 INFO    opendrift.models.basemodel.environment:250:    sea_ice_x_velocity: 0.000000
13:19:16 INFO    opendrift.models.basemodel.environment:250:    sea_ice_y_velocity: 0.000000
13:19:16 INFO    opendrift.models.basemodel.environment:250:    sea_water_temperature: 10.000000
13:19:16 INFO    opendrift.models.basemodel.environment:250:    sea_water_salinity: 34.000000
13:19:16 INFO    opendrift.models.basemodel.environment:250:    sea_floor_depth_below_sea_level: 10000.000000
13:19:16 INFO    opendrift.models.basemodel.environment:250:    ocean_vertical_diffusivity: 0.020000
13:19:16 INFO    opendrift.models.basemodel.environment:250:    ocean_mixed_layer_thickness: 50.000000
13:19:16 INFO    opendrift.models.openoil.adios.dirjs:90: Querying ADIOS database for oil: EKOFISK
13:19:16 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.
13:19:16 INFO    opendrift.models.openoil.openoil:1721: Using density 809.002835 and viscosity 3.3498550728972226e-06 of oiltype EKOFISK
===========================
Model:  OpenOil     (OpenDrift version 1.11.2)
        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)
13:19:16 INFO    opendrift.models.basemodel:908: Using existing reader for land_binary_mask
13:19:16 INFO    opendrift.models.basemodel:920: All points are in ocean
13:19:16 INFO    opendrift.models.openoil.openoil:691: Oil-water surface tension is 0.027884 Nm
13:19:16 INFO    opendrift.models.openoil.openoil:704: Max water fraction not available for EKOFISK, using default
13:19:16 INFO    opendrift.models.basemodel:2011: 2024-04-12 13:19:09.974114 - step 1 of 48 - 417 active elements (0 deactivated)
13:19:16 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)
13:19:22 INFO    opendrift.readers.reader_netCDF_CF_generic:314: Detected dimensions: {'x': 'X', 'y': 'Y', 'z': 'depth', 'time': 'time'}
13:19:24 WARNING opendrift.readers.basereader.structured:321: 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 (7) 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
13:19:24 INFO    opendrift.models.basemodel:2011: 2024-04-12 13:49:09.974114 - step 2 of 48 - 834 active elements (0 deactivated)
13:19:26 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:26 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:26 INFO    opendrift.models.basemodel:2011: 2024-04-12 14:19:09.974114 - step 3 of 48 - 1250 active elements (0 deactivated)
13:19:27 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:27 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:27 INFO    opendrift.models.basemodel:2011: 2024-04-12 14:49:09.974114 - step 4 of 48 - 1667 active elements (0 deactivated)
13:19:28 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:28 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:28 INFO    opendrift.models.basemodel:2011: 2024-04-12 15:19:09.974114 - step 5 of 48 - 2084 active elements (0 deactivated)
13:19:29 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:29 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:29 INFO    opendrift.models.basemodel:2011: 2024-04-12 15:49:09.974114 - step 6 of 48 - 2500 active elements (0 deactivated)
13:19:30 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:30 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:30 INFO    opendrift.models.basemodel:2011: 2024-04-12 16:19:09.974114 - step 7 of 48 - 2917 active elements (0 deactivated)
13:19:32 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:32 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:32 INFO    opendrift.models.basemodel:2011: 2024-04-12 16:49:09.974114 - step 8 of 48 - 3334 active elements (0 deactivated)
13:19:33 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:33 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:33 INFO    opendrift.models.basemodel:2011: 2024-04-12 17:19:09.974114 - step 9 of 48 - 3750 active elements (0 deactivated)
13:19:34 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:34 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:34 INFO    opendrift.models.basemodel:2011: 2024-04-12 17:49:09.974114 - step 10 of 48 - 4167 active elements (0 deactivated)
13:19:35 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:35 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:35 INFO    opendrift.models.basemodel:2011: 2024-04-12 18:19:09.974114 - step 11 of 48 - 4583 active elements (0 deactivated)
13:19:37 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:37 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:37 INFO    opendrift.models.basemodel:2011: 2024-04-12 18:49:09.974114 - step 12 of 48 - 5000 active elements (0 deactivated)
13:19:38 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:38 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:38 INFO    opendrift.models.basemodel:2011: 2024-04-12 19:19:09.974114 - step 13 of 48 - 5417 active elements (0 deactivated)
13:19:39 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:40 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:40 INFO    opendrift.models.basemodel:2011: 2024-04-12 19:49:09.974114 - step 14 of 48 - 5833 active elements (0 deactivated)
13:19:41 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:41 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:41 INFO    opendrift.models.basemodel:2011: 2024-04-12 20:19:09.974114 - step 15 of 48 - 6250 active elements (0 deactivated)
13:19:42 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:42 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:43 INFO    opendrift.models.basemodel:2011: 2024-04-12 20:49:09.974114 - step 16 of 48 - 6667 active elements (0 deactivated)
13:19:44 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:44 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:44 INFO    opendrift.models.basemodel:2011: 2024-04-12 21:19:09.974114 - step 17 of 48 - 7083 active elements (0 deactivated)
13:19:45 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:45 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:45 INFO    opendrift.models.basemodel:2011: 2024-04-12 21:49:09.974114 - step 18 of 48 - 7500 active elements (0 deactivated)
13:19:46 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:46 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:46 INFO    opendrift.models.basemodel:2011: 2024-04-12 22:19:09.974114 - step 19 of 48 - 7916 active elements (0 deactivated)
13:19:47 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:48 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:48 INFO    opendrift.models.basemodel:2011: 2024-04-12 22:49:09.974114 - step 20 of 48 - 8333 active elements (0 deactivated)
13:19:49 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:49 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:49 INFO    opendrift.models.basemodel:2011: 2024-04-12 23:19:09.974114 - step 21 of 48 - 8750 active elements (0 deactivated)
13:19:50 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:50 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:50 INFO    opendrift.models.basemodel:2011: 2024-04-12 23:49:09.974114 - step 22 of 48 - 9166 active elements (0 deactivated)
13:19:51 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:52 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:52 INFO    opendrift.models.basemodel:2011: 2024-04-13 00:19:09.974114 - step 23 of 48 - 9583 active elements (0 deactivated)
13:19:53 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:53 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:53 INFO    opendrift.models.basemodel:2011: 2024-04-13 00:49:09.974114 - step 24 of 48 - 10000 active elements (0 deactivated)
13:19:55 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:19:55 INFO    opendrift.models.basemodel:2011: 2024-04-13 01:19:09.974114 - step 25 of 48 - 10000 active elements (0 deactivated)
13:19:56 INFO    opendrift.models.basemodel:2011: 2024-04-13 01:49:09.974114 - step 26 of 48 - 10000 active elements (0 deactivated)
13:19:56 INFO    opendrift.models.basemodel:2011: 2024-04-13 02:19:09.974114 - step 27 of 48 - 10000 active elements (0 deactivated)
13:19:58 INFO    opendrift.models.basemodel:2011: 2024-04-13 02:49:09.974114 - step 28 of 48 - 10000 active elements (0 deactivated)
13:19:58 INFO    opendrift.models.basemodel:2011: 2024-04-13 03:19:09.974114 - step 29 of 48 - 10000 active elements (0 deactivated)
13:20:00 INFO    opendrift.models.basemodel:2011: 2024-04-13 03:49:09.974114 - step 30 of 48 - 9998 active elements (2 deactivated)
13:20:00 INFO    opendrift.models.basemodel:2011: 2024-04-13 04:19:09.974114 - step 31 of 48 - 9988 active elements (12 deactivated)
13:20:01 INFO    opendrift.models.basemodel:2011: 2024-04-13 04:49:09.974114 - step 32 of 48 - 9985 active elements (15 deactivated)
13:20:02 INFO    opendrift.models.basemodel:2011: 2024-04-13 05:19:09.974114 - step 33 of 48 - 9984 active elements (16 deactivated)
13:20:03 INFO    opendrift.models.basemodel:2011: 2024-04-13 05:49:09.974114 - step 34 of 48 - 9984 active elements (16 deactivated)
13:20:03 INFO    opendrift.models.basemodel:2011: 2024-04-13 06:19:09.974114 - step 35 of 48 - 9983 active elements (17 deactivated)
13:20:05 INFO    opendrift.models.basemodel:2011: 2024-04-13 06:49:09.974114 - step 36 of 48 - 9982 active elements (18 deactivated)
13:20:05 INFO    opendrift.models.basemodel:2011: 2024-04-13 07:19:09.974114 - step 37 of 48 - 9982 active elements (18 deactivated)
13:20:06 INFO    opendrift.models.basemodel:2011: 2024-04-13 07:49:09.974114 - step 38 of 48 - 9982 active elements (18 deactivated)
13:20:07 INFO    opendrift.models.basemodel:2011: 2024-04-13 08:19:09.974114 - step 39 of 48 - 9982 active elements (18 deactivated)
13:20:08 INFO    opendrift.models.basemodel:2011: 2024-04-13 08:49:09.974114 - step 40 of 48 - 9981 active elements (19 deactivated)
13:20:08 INFO    opendrift.models.basemodel:2011: 2024-04-13 09:19:09.974114 - step 41 of 48 - 9981 active elements (19 deactivated)
13:20:10 INFO    opendrift.models.basemodel:2011: 2024-04-13 09:49:09.974114 - step 42 of 48 - 9978 active elements (22 deactivated)
13:20:10 INFO    opendrift.models.basemodel:2011: 2024-04-13 10:19:09.974114 - step 43 of 48 - 9977 active elements (23 deactivated)
13:20:11 INFO    opendrift.models.basemodel:2011: 2024-04-13 10:49:09.974114 - step 44 of 48 - 9972 active elements (28 deactivated)
13:20:11 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:20:12 INFO    opendrift.models.basemodel:2011: 2024-04-13 11:19:09.974114 - step 45 of 48 - 9961 active elements (39 deactivated)
13:20:13 INFO    opendrift.models.basemodel:2011: 2024-04-13 11:49:09.974114 - step 46 of 48 - 9945 active elements (55 deactivated)
13:20:13 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:20:13 INFO    opendrift.models.basemodel:2011: 2024-04-13 12:19:09.974114 - step 47 of 48 - 9915 active elements (85 deactivated)
13:20:15 INFO    opendrift.models.basemodel:2011: 2024-04-13 12:49:09.974114 - step 48 of 48 - 9880 active elements (120 deactivated)
13:20:15 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.

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:00:50.3  total
 0:00:00.0  preparing
 0:00:48.2  reading
 0:00:03.0  interpolation
 0:00:00.1  interpolation_time
 0:00:02.0  rotating vectors
 0:00:00.0  masking
--------------------
Performance:
 1:06.1 total time
    6.2 configuration
    0.3 preparing main loop
      0.0 moving elements to ocean
   59.4 main loop
      0.7 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.2)
        9754 active Oil particles  (246 deactivated, 0 scheduled)
-------------------
Environment variables:
  -----
  land_binary_mask
     1) global_landmask
  -----
  sea_floor_depth_below_sea_level
  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_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

Discarded readers:

Time:
        Start: 2024-04-12 13:19:09.974114 UTC
        Present: 2024-04-13 13:19:09.974114 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:1696: UserWarning: No data for colormapping provided via 'c'. Parameters 'cmap' will be ignored
  result = super().scatter(*args, **kwargs)
13:20:38 INFO    opendrift.models.basemodel:4562: Saving animation to /root/project/docs/source/gallery/animations/example_cone_0.gif...
13:21:45 INFO    opendrift.models.basemodel:3002: Time to make animation: 0:01:29.038528
../_images/example_cone_0.gif
o.plot(fast=True, ocean_color='skyblue', land_color='dimgray', text=text)
OpenDrift - OpenOil (EKOFISK) 2024-04-12 13:19 to 2024-04-13 13:19 UTC (25 steps)
13:21:45 WARNING opendrift.models.basemodel:2378: Plotting fast. This will make your plots less accurate.

(<GeoAxes: title={'center': 'OpenDrift - OpenOil (EKOFISK)\n2024-04-12 13:19 to 2024-04-13 13:19 UTC (25 steps)'}>, <Figure size 799.222x1100 with 1 Axes>)

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

Gallery generated by Sphinx-Gallery