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
15:00:34 INFO    opendrift.models.basemodel:519: OpenDriftSimulation initialised (version 1.11.10 / v1.11.10-15-g65004d9)

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)
15:00:34 INFO    opendrift.models.oceandrift:377: Setting config: drift:vertical_advection -> False
15:00:34 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)
15:00:34 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...
15:00:40 INFO    opendrift.models.basemodel.environment:245: Fallback values will be used for the following variables which have no readers:
15:00:40 INFO    opendrift.models.basemodel.environment:248:    sea_surface_height: 0.000000
15:00:40 INFO    opendrift.models.basemodel.environment:248:    upward_sea_water_velocity: 0.000000
15:00:40 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_significant_height: 0.000000
15:00:40 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_stokes_drift_x_velocity: 0.000000
15:00:40 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_stokes_drift_y_velocity: 0.000000
15:00:40 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_period_at_variance_spectral_density_maximum: 0.000000
15:00:40 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment: 0.000000
15:00:40 INFO    opendrift.models.basemodel.environment:248:    sea_ice_area_fraction: 0.000000
15:00:40 INFO    opendrift.models.basemodel.environment:248:    sea_ice_x_velocity: 0.000000
15:00:40 INFO    opendrift.models.basemodel.environment:248:    sea_ice_y_velocity: 0.000000
15:00:40 INFO    opendrift.models.basemodel.environment:248:    sea_water_temperature: 10.000000
15:00:40 INFO    opendrift.models.basemodel.environment:248:    sea_water_salinity: 34.000000
15:00:40 INFO    opendrift.models.basemodel.environment:248:    sea_floor_depth_below_sea_level: 10000.000000
15:00:40 INFO    opendrift.models.basemodel.environment:248:    ocean_vertical_diffusivity: 0.020000
15:00:40 INFO    opendrift.models.basemodel.environment:248:    ocean_mixed_layer_thickness: 50.000000
15:00:40 INFO    opendrift.models.openoil.adios.dirjs:90: Querying ADIOS database for oil: EKOFISK
15:00:40 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.
15:00:40 INFO    opendrift.models.openoil.openoil:1719: Using density 809.002835 and viscosity 3.3498550728972226e-06 of oiltype EKOFISK
===========================
Model:  OpenOil     (OpenDrift version 1.11.10)
        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)
15:00:40 INFO    opendrift.models.basemodel:940: Using existing reader for land_binary_mask
15:00:40 INFO    opendrift.models.basemodel:951: All points are in ocean
15:00:40 INFO    opendrift.models.openoil.openoil:687: Oil-water surface tension is 0.027884 Nm
15:00:40 INFO    opendrift.models.openoil.openoil:700: Max water fraction not available for EKOFISK, using default
15:00:40 INFO    opendrift.models.basemodel:2042: 2024-07-01 15:00:34.691512 - step 1 of 48 - 417 active elements (0 deactivated)
15:00:41 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)
15:00:47 INFO    opendrift.readers.reader_netCDF_CF_generic:314: Detected dimensions: {'x': 'X', 'y': 'Y', 'z': 'depth', 'time': 'time'}
15:00:50 INFO    opendrift.models.basemodel:2042: 2024-07-01 15:30:34.691512 - step 2 of 48 - 834 active elements (0 deactivated)
15:00:51 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
15:00:51 INFO    opendrift.models.basemodel:2042: 2024-07-01 16:00:34.691512 - step 3 of 48 - 1250 active elements (0 deactivated)
15:00:53 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`.
15:00:53 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`.
15:00:53 INFO    opendrift.models.basemodel:2042: 2024-07-01 16:30:34.691512 - step 4 of 48 - 1667 active elements (0 deactivated)
15:00:54 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`.
15:00:54 INFO    opendrift.models.basemodel:2042: 2024-07-01 17:00:34.691512 - step 5 of 48 - 2084 active elements (0 deactivated)
15:00:55 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`.
15:00:55 INFO    opendrift.models.basemodel:2042: 2024-07-01 17:30:34.691512 - step 6 of 48 - 2500 active elements (0 deactivated)
15:00:57 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`.
15:00:57 INFO    opendrift.models.basemodel:2042: 2024-07-01 18:00:34.691512 - step 7 of 48 - 2917 active elements (0 deactivated)
15:00:58 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`.
15:00:58 INFO    opendrift.models.basemodel:2042: 2024-07-01 18:30:34.691512 - step 8 of 48 - 3334 active elements (0 deactivated)
15:01:00 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`.
15:01:00 INFO    opendrift.models.basemodel:2042: 2024-07-01 19:00:34.691512 - step 9 of 48 - 3750 active elements (0 deactivated)
15:01:02 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`.
15:01:02 INFO    opendrift.models.basemodel:2042: 2024-07-01 19:30:34.691512 - step 10 of 48 - 4167 active elements (0 deactivated)
15:01:03 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`.
15:01:03 INFO    opendrift.models.basemodel:2042: 2024-07-01 20:00:34.691512 - step 11 of 48 - 4583 active elements (0 deactivated)
15:01:05 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`.
15:01:05 INFO    opendrift.models.basemodel:2042: 2024-07-01 20:30:34.691512 - step 12 of 48 - 5000 active elements (0 deactivated)
15:01: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`.
15:01: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`.
15:01:07 INFO    opendrift.models.basemodel:2042: 2024-07-01 21:00:34.691512 - step 13 of 48 - 5417 active elements (0 deactivated)
15:01: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`.
15:01: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`.
15:01:08 INFO    opendrift.models.basemodel:2042: 2024-07-01 21:30:34.691512 - step 14 of 48 - 5833 active elements (0 deactivated)
15:01:09 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`.
15:01: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`.
15:01:10 INFO    opendrift.models.basemodel:2042: 2024-07-01 22:00:34.691512 - step 15 of 48 - 6250 active elements (0 deactivated)
15:01: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`.
15:01: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`.
15:01:11 INFO    opendrift.models.basemodel:2042: 2024-07-01 22:30:34.691512 - step 16 of 48 - 6667 active elements (0 deactivated)
15:01: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`.
15:01: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`.
15:01:13 INFO    opendrift.models.basemodel:2042: 2024-07-01 23:00:34.691512 - step 17 of 48 - 7074 active elements (9 deactivated)
15:01: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`.
15:01: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`.
15:01:15 INFO    opendrift.models.basemodel:2042: 2024-07-01 23:30:34.691512 - step 18 of 48 - 7473 active elements (27 deactivated)
15:01: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`.
15:01:17 INFO    opendrift.models.basemodel:2042: 2024-07-02 00:00:34.691512 - step 19 of 48 - 7868 active elements (48 deactivated)
15:01: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`.
15:01:18 INFO    opendrift.models.basemodel:2042: 2024-07-02 00:30:34.691512 - step 20 of 48 - 8271 active elements (62 deactivated)
15:01: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`.
15:01: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`.
15:01:20 INFO    opendrift.models.basemodel:2042: 2024-07-02 01:00:34.691512 - step 21 of 48 - 8672 active elements (78 deactivated)
15:01: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`.
15:01:22 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`.
15:01:22 INFO    opendrift.models.basemodel:2042: 2024-07-02 01:30:34.691512 - step 22 of 48 - 9066 active elements (100 deactivated)
15:01: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`.
15:01: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`.
15:01:23 INFO    opendrift.models.basemodel:2042: 2024-07-02 02:00:34.691512 - step 23 of 48 - 9476 active elements (107 deactivated)
15:01: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`.
15:01: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`.
15:01:25 INFO    opendrift.models.basemodel:2042: 2024-07-02 02:30:34.691512 - step 24 of 48 - 9881 active elements (119 deactivated)
15:01: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`.
15:01:27 INFO    opendrift.models.basemodel:2042: 2024-07-02 03:00:34.691512 - step 25 of 48 - 9872 active elements (128 deactivated)
15:01:29 INFO    opendrift.models.basemodel:2042: 2024-07-02 03:30:34.691512 - step 26 of 48 - 9858 active elements (142 deactivated)
15:01:29 INFO    opendrift.models.basemodel:2042: 2024-07-02 04:00:34.691512 - step 27 of 48 - 9834 active elements (166 deactivated)
15:01:31 INFO    opendrift.models.basemodel:2042: 2024-07-02 04:30:34.691512 - step 28 of 48 - 9802 active elements (198 deactivated)
15:01:32 INFO    opendrift.models.basemodel:2042: 2024-07-02 05:00:34.691512 - step 29 of 48 - 9788 active elements (212 deactivated)
15:01:34 INFO    opendrift.models.basemodel:2042: 2024-07-02 05:30:34.691512 - step 30 of 48 - 9770 active elements (230 deactivated)
15:01:34 INFO    opendrift.models.basemodel:2042: 2024-07-02 06:00:34.691512 - step 31 of 48 - 9750 active elements (250 deactivated)
15:01:36 INFO    opendrift.models.basemodel:2042: 2024-07-02 06:30:34.691512 - step 32 of 48 - 9724 active elements (276 deactivated)
15:01:36 INFO    opendrift.models.basemodel:2042: 2024-07-02 07:00:34.691512 - step 33 of 48 - 9678 active elements (322 deactivated)
15:01:38 INFO    opendrift.models.basemodel:2042: 2024-07-02 07:30:34.691512 - step 34 of 48 - 9640 active elements (360 deactivated)
15:01:38 INFO    opendrift.models.basemodel:2042: 2024-07-02 08:00:34.691512 - step 35 of 48 - 9596 active elements (404 deactivated)
15:01:40 INFO    opendrift.models.basemodel:2042: 2024-07-02 08:30:34.691512 - step 36 of 48 - 9546 active elements (454 deactivated)
15:01:40 INFO    opendrift.models.basemodel:2042: 2024-07-02 09:00:34.691512 - step 37 of 48 - 9500 active elements (500 deactivated)
15:01:42 INFO    opendrift.models.basemodel:2042: 2024-07-02 09:30:34.691512 - step 38 of 48 - 9443 active elements (557 deactivated)
15:01:42 INFO    opendrift.models.basemodel:2042: 2024-07-02 10:00:34.691512 - step 39 of 48 - 9373 active elements (627 deactivated)
15:01:44 INFO    opendrift.models.basemodel:2042: 2024-07-02 10:30:34.691512 - step 40 of 48 - 9283 active elements (717 deactivated)
15:01:44 INFO    opendrift.models.basemodel:2042: 2024-07-02 11:00:34.691512 - step 41 of 48 - 9210 active elements (790 deactivated)
15:01:46 INFO    opendrift.models.basemodel:2042: 2024-07-02 11:30:34.691512 - step 42 of 48 - 9131 active elements (869 deactivated)
15:01:47 INFO    opendrift.models.basemodel:2042: 2024-07-02 12:00:34.691512 - step 43 of 48 - 9036 active elements (964 deactivated)
15:01:48 INFO    opendrift.models.basemodel:2042: 2024-07-02 12:30:34.691512 - step 44 of 48 - 8961 active elements (1039 deactivated)
15:01:49 INFO    opendrift.models.basemodel:2042: 2024-07-02 13:00:34.691512 - step 45 of 48 - 8886 active elements (1114 deactivated)
15:01:51 INFO    opendrift.models.basemodel:2042: 2024-07-02 13:30:34.691512 - step 46 of 48 - 8778 active elements (1222 deactivated)
15:01:51 INFO    opendrift.models.basemodel:2042: 2024-07-02 14:00:34.691512 - step 47 of 48 - 8686 active elements (1314 deactivated)
15:01:54 INFO    opendrift.models.basemodel:2042: 2024-07-02 14:30:34.691512 - step 48 of 48 - 8590 active elements (1410 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:03.7  total
 0:00:00.0  preparing
 0:01:01.9  reading
 0:00:03.2  interpolation
 0:00:00.0  interpolation_time
 0:00:01.8  rotating vectors
 0:00:00.0  masking
--------------------
Performance:
 1:19.8 total time
    6.0 configuration
    0.2 preparing main loop
      0.0 moving elements to ocean
 1:13.5 main loop
      0.6 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.10)
        8490 active Oil particles  (1510 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-07-01 15:00:34.691512 UTC
        Present: 2024-07-02 15:00:34.691512 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)
15:02:16 INFO    opendrift.models.basemodel:4612: Saving animation to /root/project/docs/source/gallery/animations/example_cone_0.gif...
15:03:30 INFO    opendrift.models.basemodel:3041: Time to make animation: 0:01:35.208764
../_images/example_cone_0.gif
o.plot(fast=True, ocean_color='skyblue', land_color='dimgray', text=text)
OpenDrift - OpenOil (EKOFISK) 2024-07-01 15:00 to 2024-07-02 15:00 UTC (25 steps)
15:03:30 WARNING opendrift.models.basemodel:2415: Plotting fast. This will make your plots less accurate.

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

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

Gallery generated by Sphinx-Gallery