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
08:44:44 INFO    opendrift.models.basemodel:510: OpenDriftSimulation initialised (version 1.12.0 / v1.12.0-59-g6dfb0d2)

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)

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)
08:44:44 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...
08:44:48 INFO    opendrift.models.basemodel.environment:245: Fallback values will be used for the following variables which have no readers:
08:44:48 INFO    opendrift.models.basemodel.environment:248:    sea_surface_height: 0.000000
08:44:48 INFO    opendrift.models.basemodel.environment:248:    upward_sea_water_velocity: 0.000000
08:44:48 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_significant_height: 0.000000
08:44:48 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_stokes_drift_x_velocity: 0.000000
08:44:48 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_stokes_drift_y_velocity: 0.000000
08:44:48 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_period_at_variance_spectral_density_maximum: 0.000000
08:44:48 INFO    opendrift.models.basemodel.environment:248:    sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment: 0.000000
08:44:48 INFO    opendrift.models.basemodel.environment:248:    sea_ice_area_fraction: 0.000000
08:44:48 INFO    opendrift.models.basemodel.environment:248:    sea_ice_x_velocity: 0.000000
08:44:48 INFO    opendrift.models.basemodel.environment:248:    sea_ice_y_velocity: 0.000000
08:44:48 INFO    opendrift.models.basemodel.environment:248:    sea_water_temperature: 10.000000
08:44:48 INFO    opendrift.models.basemodel.environment:248:    sea_water_salinity: 34.000000
08:44:48 INFO    opendrift.models.basemodel.environment:248:    sea_floor_depth_below_sea_level: 10000.000000
08:44:48 INFO    opendrift.models.basemodel.environment:248:    ocean_vertical_diffusivity: 0.020000
08:44:48 INFO    opendrift.models.basemodel.environment:248:    ocean_mixed_layer_thickness: 50.000000
08:44:48 INFO    opendrift.models.openoil.adios.dirjs:86: Querying ADIOS database for oil: EKOFISK
08:44:48 WARNING opendrift.models.openoil.adios.dirjs:90: Several oils found with name: EKOFISK: ['AD00328', 'AD00329', 'AD00332', 'AD00333', 'AD01944', 'AD02094', 'AD02463', 'AD02558', 'NO00013', 'NO00014', 'NO00015', 'NO00016'], using first.
08:44:48 INFO    opendrift.models.openoil.openoil:1715: Using density 809.002835 and viscosity 3.3498550728972226e-06 of oiltype EKOFISK
===========================
Model:  OpenOil     (OpenDrift version 1.12.0)
        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)
08:44:49 INFO    opendrift.models.basemodel:930: Using existing reader for land_binary_mask
08:44:49 INFO    opendrift.models.basemodel:941: All points are in ocean
08:44:49 INFO    opendrift.models.openoil.openoil:684: Oil-water surface tension is 0.027884 Nm
08:44:49 INFO    opendrift.models.openoil.openoil:697: Max water fraction not available for EKOFISK, using default
08:44:49 INFO    opendrift.models.basemodel:2030: 2025-01-23 08:44:44.729542 - step 1 of 48 - 417 active elements (0 deactivated)
08:44:49 INFO    opendrift.readers:58: Opening file with xr.open_dataset
08:44:55 INFO    opendrift.readers.reader_netCDF_CF_generic:338: Detected dimensions: {'x': 'X', 'y': 'Y', 'z': 'depth', 'time': 'time'}
08:44:59 INFO    opendrift.models.basemodel:2030: 2025-01-23 09:14:44.729542 - step 2 of 48 - 834 active elements (0 deactivated)
08:44:59 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:01 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:01 INFO    opendrift.models.basemodel:2030: 2025-01-23 09:44:44.729542 - step 3 of 48 - 1250 active elements (0 deactivated)
08:45:01 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:02 INFO    opendrift.models.basemodel:2030: 2025-01-23 10:14:44.729542 - step 4 of 48 - 1667 active elements (0 deactivated)
08:45:02 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:03 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:03 INFO    opendrift.models.basemodel:2030: 2025-01-23 10:44:44.729542 - step 5 of 48 - 2084 active elements (0 deactivated)
08:45:03 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:05 INFO    opendrift.models.basemodel:2030: 2025-01-23 11:14:44.729542 - step 6 of 48 - 2500 active elements (0 deactivated)
08:45:05 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:06 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:06 INFO    opendrift.models.basemodel:2030: 2025-01-23 11:44:44.729542 - step 7 of 48 - 2917 active elements (0 deactivated)
08:45:06 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:08 INFO    opendrift.models.basemodel:2030: 2025-01-23 12:14:44.729542 - step 8 of 48 - 3334 active elements (0 deactivated)
08:45:08 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:09 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:09 INFO    opendrift.models.basemodel:2030: 2025-01-23 12:44:44.729542 - step 9 of 48 - 3750 active elements (0 deactivated)
08:45:09 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:11 INFO    opendrift.models.basemodel:2030: 2025-01-23 13:14:44.729542 - step 10 of 48 - 4167 active elements (0 deactivated)
08:45:11 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:12 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:12 INFO    opendrift.models.basemodel:2030: 2025-01-23 13:44:44.729542 - step 11 of 48 - 4583 active elements (0 deactivated)
08:45:12 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:14 INFO    opendrift.models.basemodel:2030: 2025-01-23 14:14:44.729542 - step 12 of 48 - 5000 active elements (0 deactivated)
08:45:14 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:16 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:16 INFO    opendrift.models.basemodel:2030: 2025-01-23 14:44:44.729542 - step 13 of 48 - 5417 active elements (0 deactivated)
08:45:16 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:17 INFO    opendrift.models.basemodel:2030: 2025-01-23 15:14:44.729542 - step 14 of 48 - 5833 active elements (0 deactivated)
08:45:18 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:19 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:19 INFO    opendrift.models.basemodel:2030: 2025-01-23 15:44:44.729542 - step 15 of 48 - 6250 active elements (0 deactivated)
08:45:19 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:20 INFO    opendrift.models.basemodel:2030: 2025-01-23 16:14:44.729542 - step 16 of 48 - 6667 active elements (0 deactivated)
08:45:21 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:22 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:22 INFO    opendrift.models.basemodel:2030: 2025-01-23 16:44:44.729542 - step 17 of 48 - 7083 active elements (0 deactivated)
08:45:22 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:24 INFO    opendrift.models.basemodel:2030: 2025-01-23 17:14:44.729542 - step 18 of 48 - 7500 active elements (0 deactivated)
08:45:24 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:25 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:25 INFO    opendrift.models.basemodel:2030: 2025-01-23 17:44:44.729542 - step 19 of 48 - 7916 active elements (0 deactivated)
08:45:25 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:27 INFO    opendrift.models.basemodel:2030: 2025-01-23 18:14:44.729542 - step 20 of 48 - 8333 active elements (0 deactivated)
08:45:27 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:29 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:29 INFO    opendrift.models.basemodel:2030: 2025-01-23 18:44:44.729542 - step 21 of 48 - 8750 active elements (0 deactivated)
08:45:29 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:31 INFO    opendrift.models.basemodel:2030: 2025-01-23 19:14:44.729542 - step 22 of 48 - 9166 active elements (0 deactivated)
08:45:31 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:32 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:32 INFO    opendrift.models.basemodel:2030: 2025-01-23 19:44:44.729542 - step 23 of 48 - 9583 active elements (0 deactivated)
08:45:32 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:32 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:34 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:34 INFO    opendrift.models.basemodel:2030: 2025-01-23 20:14:44.729542 - step 24 of 48 - 10000 active elements (0 deactivated)
08:45:34 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:34 INFO    opendrift.models.basemodel:2030: 2025-01-23 20:44:44.729542 - step 25 of 48 - 10000 active elements (0 deactivated)
08:45:36 WARNING opendrift.readers.basereader.structured:326: 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`.
08:45:38 INFO    opendrift.models.basemodel:2030: 2025-01-23 21:14:44.729542 - step 26 of 48 - 9999 active elements (1 deactivated)
08:45:40 INFO    opendrift.models.basemodel:2030: 2025-01-23 21:44:44.729542 - step 27 of 48 - 9995 active elements (5 deactivated)
08:45:41 INFO    opendrift.models.basemodel:2030: 2025-01-23 22:14:44.729542 - step 28 of 48 - 9991 active elements (9 deactivated)
08:45:43 INFO    opendrift.models.basemodel:2030: 2025-01-23 22:44:44.729542 - step 29 of 48 - 9981 active elements (19 deactivated)
08:45:43 INFO    opendrift.models.basemodel:2030: 2025-01-23 23:14:44.729542 - step 30 of 48 - 9974 active elements (26 deactivated)
08:45:46 INFO    opendrift.models.basemodel:2030: 2025-01-23 23:44:44.729542 - step 31 of 48 - 9961 active elements (39 deactivated)
08:45:47 INFO    opendrift.models.basemodel:2030: 2025-01-24 00:14:44.729542 - step 32 of 48 - 9950 active elements (50 deactivated)
08:45:49 INFO    opendrift.models.basemodel:2030: 2025-01-24 00:44:44.729542 - step 33 of 48 - 9936 active elements (64 deactivated)
08:45:49 INFO    opendrift.models.basemodel:2030: 2025-01-24 01:14:44.729542 - step 34 of 48 - 9921 active elements (79 deactivated)
08:45:51 INFO    opendrift.models.basemodel:2030: 2025-01-24 01:44:44.729542 - step 35 of 48 - 9908 active elements (92 deactivated)
08:45:52 INFO    opendrift.models.basemodel:2030: 2025-01-24 02:14:44.729542 - step 36 of 48 - 9903 active elements (97 deactivated)
08:45:54 INFO    opendrift.models.basemodel:2030: 2025-01-24 02:44:44.729542 - step 37 of 48 - 9894 active elements (106 deactivated)
08:45:54 INFO    opendrift.models.basemodel:2030: 2025-01-24 03:14:44.729542 - step 38 of 48 - 9889 active elements (111 deactivated)
08:45:57 INFO    opendrift.models.basemodel:2030: 2025-01-24 03:44:44.729542 - step 39 of 48 - 9884 active elements (116 deactivated)
08:45:57 INFO    opendrift.models.basemodel:2030: 2025-01-24 04:14:44.729542 - step 40 of 48 - 9879 active elements (121 deactivated)
08:46:00 INFO    opendrift.models.basemodel:2030: 2025-01-24 04:44:44.729542 - step 41 of 48 - 9873 active elements (127 deactivated)
08:46:01 INFO    opendrift.models.basemodel:2030: 2025-01-24 05:14:44.729542 - step 42 of 48 - 9866 active elements (134 deactivated)
08:46:03 INFO    opendrift.models.basemodel:2030: 2025-01-24 05:44:44.729542 - step 43 of 48 - 9857 active elements (143 deactivated)
08:46:03 INFO    opendrift.models.basemodel:2030: 2025-01-24 06:14:44.729542 - step 44 of 48 - 9849 active elements (151 deactivated)
08:46:05 INFO    opendrift.models.basemodel:2030: 2025-01-24 06:44:44.729542 - step 45 of 48 - 9846 active elements (154 deactivated)
08:46:06 INFO    opendrift.models.basemodel:2030: 2025-01-24 07:14:44.729542 - step 46 of 48 - 9840 active elements (160 deactivated)
08:46:08 INFO    opendrift.models.basemodel:2030: 2025-01-24 07:44:44.729542 - step 47 of 48 - 9833 active elements (167 deactivated)
08:46:08 INFO    opendrift.models.basemodel:2030: 2025-01-24 08:14:44.729542 - step 48 of 48 - 9833 active elements (167 deactivated)

Print and plot results

print(o)
===========================
--------------------
Reader performance:
--------------------
global_landmask
 0:00:01.6  total
 0:00:00.0  preparing
 0:00:01.6  reading
 0:00:00.0  masking
--------------------
https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be
 0:01:03.1  total
 0:00:00.0  preparing
 0:01:01.0  reading
 0:00:03.1  interpolation
 0:00:00.0  interpolation_time
 0:00:02.0  rotating vectors
 0:00:00.0  masking
--------------------
Performance:
 1:26.9 total time
    4.3 configuration
    0.2 preparing main loop
      0.0 moving elements to ocean
 1:22.2 main loop
      7.1 updating elements
        0.0 oil weathering
          0.0 updating viscosities
          0.0 updating densities
          0.0 emulsification
          0.0 dispersion
        6.4 vertical mixing
    0.0 cleaning up
--------------------
===========================
Model:  OpenOil     (OpenDrift version 1.12.0)
        9829 active Oil particles  (171 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: 2025-01-23 08:44:44.729542 UTC
        Present: 2025-01-24 08:44:44.729542 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:1692: UserWarning: No data for colormapping provided via 'c'. Parameters 'cmap' will be ignored
  result = super().scatter(*args, **kwargs)
08:46:26 INFO    opendrift.models.basemodel:4606: Saving animation to /root/project/docs/source/gallery/animations/example_cone_0.gif...
08:46:42 INFO    opendrift.models.basemodel:3034: Time to make animation: 0:00:31.099782
../_images/example_cone_0.gif
o.plot(fast=True, ocean_color='skyblue', land_color='dimgray', text=text)
OpenDrift - OpenOil (EKOFISK) 2025-01-23 08:44 to 2025-01-24 08:44 UTC (25 steps)
08:46:42 WARNING opendrift.models.basemodel:2405: Plotting fast. This will make your plots less accurate.

(<GeoAxes: title={'center': 'OpenDrift - OpenOil (EKOFISK)\n2025-01-23 08:44 to 2025-01-24 08:44 UTC (25 steps)'}>, <Figure size 664.449x1100 with 1 Axes>)

Total running time of the script: (2 minutes 31.919 seconds)

Gallery generated by Sphinx-Gallery