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
14:01:07 INFO    opendrift.models.basemodel:539: OpenDriftSimulation initialised (version 1.10.7 / v1.10.6-119-g1da5bec)

Using live data from Thredds

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

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)
14:01:07 INFO    opendrift.models.openoil.openoil:1462: setting oil_type to: EKOFISK
14:01:07 INFO    opendrift.models.openoil.adios.dirjs:71: Querying ADIOS database for oil: EKOFISK
14:01:07 WARNING opendrift.models.openoil.adios.dirjs:75: Several oils found with name: EKOFISK: ['AD00329', 'AD02094', 'NO00016', 'AD02463', 'AD01944', 'AD00333', 'NO00013', 'NO00014', 'AD00328', 'AD00332', 'AD02558', 'NO00015'], using first.
14:01:07 INFO    opendrift.models.openoil.openoil:1652: Using density 816.262844 and viscosity 4.1747069628680365e-06 of oiltype EKOFISK
===========================
Model:  OpenOil     (OpenDrift version 1.10.7)
        0 active Oil particles  (0 deactivated, 10000 scheduled)
-------------------
Environment variables:
  -----
Readers not added for the following variables:
  land_binary_mask
  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_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
===========================

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)
14:01:07 INFO    opendrift.models.oceandrift:346: Setting config: drift:vertical_advection -> False
14:01:07 INFO    opendrift.models.oceandrift:346: Setting config: drift:vertical_mixing -> False

Running model for 24 hours

o.run(steps=24*2, time_step=1800, time_step_output=3600)
14:01:07 INFO    opendrift.models.basemodel:2591: Fallback values will be used for the following variables which have no readers:
14:01:07 INFO    opendrift.models.basemodel:2594:       upward_sea_water_velocity: 0.000000
14:01:07 INFO    opendrift.models.basemodel:2594:       sea_surface_wave_significant_height: 0.000000
14:01:07 INFO    opendrift.models.basemodel:2594:       sea_surface_wave_stokes_drift_x_velocity: 0.000000
14:01:07 INFO    opendrift.models.basemodel:2594:       sea_surface_wave_stokes_drift_y_velocity: 0.000000
14:01:07 INFO    opendrift.models.basemodel:2594:       sea_surface_wave_period_at_variance_spectral_density_maximum: 0.000000
14:01:07 INFO    opendrift.models.basemodel:2594:       sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment: 0.000000
14:01:07 INFO    opendrift.models.basemodel:2594:       sea_ice_area_fraction: 0.000000
14:01:07 INFO    opendrift.models.basemodel:2594:       sea_ice_x_velocity: 0.000000
14:01:07 INFO    opendrift.models.basemodel:2594:       sea_ice_y_velocity: 0.000000
14:01:07 INFO    opendrift.models.basemodel:2594:       sea_water_temperature: 10.000000
14:01:07 INFO    opendrift.models.basemodel:2594:       sea_water_salinity: 34.000000
14:01:07 INFO    opendrift.models.basemodel:2594:       sea_floor_depth_below_sea_level: 10000.000000
14:01:07 INFO    opendrift.models.basemodel:2594:       ocean_vertical_diffusivity: 0.020000
14:01:07 INFO    opendrift.models.basemodel:2594:       ocean_mixed_layer_thickness: 50.000000
14:01:07 INFO    opendrift.models.basemodel:2753: Adding a dynamical landmask with max. priority based on assumed maximum speed of 1.3 m/s. Adding a customised landmask may be faster...
14:01:13 INFO    opendrift.models.basemodel:1701: Using existing reader for land_binary_mask
14:01:13 INFO    opendrift.models.basemodel:1713: All points are in ocean
14:01:13 INFO    opendrift.models.openoil.openoil:646: Oil-water surface tension is 0.028284 Nm
14:01:13 INFO    opendrift.models.basemodel:2882: 2023-09-01 14:01:07.834076 - step 1 of 48 - 417 active elements (0 deactivated)
14:01:14 INFO    opendrift.readers.reader_netCDF_CF_generic:92: 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)
14:01:18 INFO    opendrift.models.basemodel:2882: 2023-09-01 14:31:07.834076 - step 2 of 48 - 834 active elements (0 deactivated)
14:01:19 WARNING opendrift.readers.basereader.structured:286: 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
14:01:19 INFO    opendrift.models.basemodel:2882: 2023-09-01 15:01:07.834076 - step 3 of 48 - 1250 active elements (0 deactivated)
14:01:24 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:24 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:24 INFO    opendrift.models.basemodel:2882: 2023-09-01 15:31:07.834076 - step 4 of 48 - 1667 active elements (0 deactivated)
14:01:25 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:25 INFO    opendrift.models.basemodel:2882: 2023-09-01 16:01:07.834076 - step 5 of 48 - 2084 active elements (0 deactivated)
14:01:27 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:27 INFO    opendrift.models.basemodel:2882: 2023-09-01 16:31:07.834076 - step 6 of 48 - 2500 active elements (0 deactivated)
14:01:28 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:28 INFO    opendrift.models.basemodel:2882: 2023-09-01 17:01:07.834076 - step 7 of 48 - 2917 active elements (0 deactivated)
14:01:30 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:30 INFO    opendrift.models.basemodel:2882: 2023-09-01 17:31:07.834076 - step 8 of 48 - 3334 active elements (0 deactivated)
14:01:31 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:31 INFO    opendrift.models.basemodel:2882: 2023-09-01 18:01:07.834076 - step 9 of 48 - 3750 active elements (0 deactivated)
14:01:33 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:33 INFO    opendrift.models.basemodel:2882: 2023-09-01 18:31:07.834076 - step 10 of 48 - 4167 active elements (0 deactivated)
14:01:34 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:34 INFO    opendrift.models.basemodel:2882: 2023-09-01 19:01:07.834076 - step 11 of 48 - 4583 active elements (0 deactivated)
14:01:36 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:36 INFO    opendrift.models.basemodel:2882: 2023-09-01 19:31:07.834076 - step 12 of 48 - 5000 active elements (0 deactivated)
14:01:37 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:37 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:37 INFO    opendrift.models.basemodel:2882: 2023-09-01 20:01:07.834076 - step 13 of 48 - 5417 active elements (0 deactivated)
14:01:39 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:39 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:39 INFO    opendrift.models.basemodel:2882: 2023-09-01 20:31:07.834076 - step 14 of 48 - 5833 active elements (0 deactivated)
14:01:40 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:40 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:40 INFO    opendrift.models.basemodel:2882: 2023-09-01 21:01:07.834076 - step 15 of 48 - 6250 active elements (0 deactivated)
14:01:42 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:42 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:42 INFO    opendrift.models.basemodel:2882: 2023-09-01 21:31:07.834076 - step 16 of 48 - 6667 active elements (0 deactivated)
14:01:43 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:43 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:43 INFO    opendrift.models.basemodel:2882: 2023-09-01 22:01:07.834076 - step 17 of 48 - 7082 active elements (1 deactivated)
14:01:46 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:46 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:46 INFO    opendrift.models.basemodel:2882: 2023-09-01 22:31:07.834076 - step 18 of 48 - 7498 active elements (2 deactivated)
14:01:49 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:49 INFO    opendrift.models.basemodel:2882: 2023-09-01 23:01:07.834076 - step 19 of 48 - 7914 active elements (2 deactivated)
14:01:51 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:51 INFO    opendrift.models.basemodel:2882: 2023-09-01 23:31:07.834076 - step 20 of 48 - 8331 active elements (2 deactivated)
14:01:52 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:52 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:52 INFO    opendrift.models.basemodel:2882: 2023-09-02 00:01:07.834076 - step 21 of 48 - 8748 active elements (2 deactivated)
14:01:53 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:54 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:54 INFO    opendrift.models.basemodel:2882: 2023-09-02 00:31:07.834076 - step 22 of 48 - 9164 active elements (2 deactivated)
14:01:55 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:55 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:55 INFO    opendrift.models.basemodel:2882: 2023-09-02 01:01:07.834076 - step 23 of 48 - 9579 active elements (4 deactivated)
14:01:57 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:57 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:57 INFO    opendrift.models.basemodel:2882: 2023-09-02 01:31:07.834076 - step 24 of 48 - 9994 active elements (6 deactivated)
14:01:59 WARNING opendrift.readers.basereader.structured:286: 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`.
14:01:59 INFO    opendrift.models.basemodel:2882: 2023-09-02 02:01:07.834076 - step 25 of 48 - 9992 active elements (8 deactivated)
14:02:00 INFO    opendrift.models.basemodel:2882: 2023-09-02 02:31:07.834076 - step 26 of 48 - 9986 active elements (14 deactivated)
14:02:01 INFO    opendrift.models.basemodel:2882: 2023-09-02 03:01:07.834076 - step 27 of 48 - 9975 active elements (25 deactivated)
14:02:02 INFO    opendrift.models.basemodel:2882: 2023-09-02 03:31:07.834076 - step 28 of 48 - 9973 active elements (27 deactivated)
14:02:02 INFO    opendrift.models.basemodel:2882: 2023-09-02 04:01:07.834076 - step 29 of 48 - 9973 active elements (27 deactivated)
14:02:04 INFO    opendrift.models.basemodel:2882: 2023-09-02 04:31:07.834076 - step 30 of 48 - 9972 active elements (28 deactivated)
14:02:04 INFO    opendrift.models.basemodel:2882: 2023-09-02 05:01:07.834076 - step 31 of 48 - 9972 active elements (28 deactivated)
14:02:06 INFO    opendrift.models.basemodel:2882: 2023-09-02 05:31:07.834076 - step 32 of 48 - 9970 active elements (30 deactivated)
14:02:06 INFO    opendrift.models.basemodel:2882: 2023-09-02 06:01:07.834076 - step 33 of 48 - 9967 active elements (33 deactivated)
14:02:08 INFO    opendrift.models.basemodel:2882: 2023-09-02 06:31:07.834076 - step 34 of 48 - 9966 active elements (34 deactivated)
14:02:08 INFO    opendrift.models.basemodel:2882: 2023-09-02 07:01:07.834076 - step 35 of 48 - 9962 active elements (38 deactivated)
14:02:10 INFO    opendrift.models.basemodel:2882: 2023-09-02 07:31:07.834076 - step 36 of 48 - 9950 active elements (50 deactivated)
14:02:10 INFO    opendrift.models.basemodel:2882: 2023-09-02 08:01:07.834076 - step 37 of 48 - 9923 active elements (77 deactivated)
14:02:12 INFO    opendrift.models.basemodel:2882: 2023-09-02 08:31:07.834076 - step 38 of 48 - 9893 active elements (107 deactivated)
14:02:12 INFO    opendrift.models.basemodel:2882: 2023-09-02 09:01:07.834076 - step 39 of 48 - 9848 active elements (152 deactivated)
14:02:14 INFO    opendrift.models.basemodel:2882: 2023-09-02 09:31:07.834076 - step 40 of 48 - 9829 active elements (171 deactivated)
14:02:14 INFO    opendrift.models.basemodel:2882: 2023-09-02 10:01:07.834076 - step 41 of 48 - 9812 active elements (188 deactivated)
14:02:16 INFO    opendrift.models.basemodel:2882: 2023-09-02 10:31:07.834076 - step 42 of 48 - 9799 active elements (201 deactivated)
14:02:16 INFO    opendrift.models.basemodel:2882: 2023-09-02 11:01:07.834076 - step 43 of 48 - 9783 active elements (217 deactivated)
14:02:18 INFO    opendrift.models.basemodel:2882: 2023-09-02 11:31:07.834076 - step 44 of 48 - 9774 active elements (226 deactivated)
14:02:18 INFO    opendrift.models.basemodel:2882: 2023-09-02 12:01:07.834076 - step 45 of 48 - 9747 active elements (253 deactivated)
14:02:20 INFO    opendrift.models.basemodel:2882: 2023-09-02 12:31:07.834076 - step 46 of 48 - 9730 active elements (270 deactivated)
14:02:20 INFO    opendrift.models.basemodel:2882: 2023-09-02 13:01:07.834076 - step 47 of 48 - 9709 active elements (291 deactivated)
14:02:23 INFO    opendrift.models.basemodel:2882: 2023-09-02 13:31:07.834076 - step 48 of 48 - 9689 active elements (311 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:04.4  total
 0:00:00.0  preparing
 0:01:02.4  reading
 0:00:02.9  interpolation
 0:00:00.1  interpolation_time
 0:00:01.9  rotating vectors
 0:00:00.0  masking
--------------------
Performance:
 1:15.9 total time
    0.1 configuration
    5.8 preparing main loop
      5.6 making dynamical landmask
      0.0 moving elements to ocean
   1:07.5 readers
        0.0 global_landmask
        0.5 postprocessing
 1:09.6 main loop
     1:04.8 https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be
      0.7 updating elements
        0.1 oil weathering
          0.0 updating viscosities
          0.0 updating densities
          0.0 emulsification
          0.0 dispersion
    0.3 cleaning up
--------------------
===========================
Model:  OpenOil     (OpenDrift version 1.10.7)
        9650 active Oil particles  (350 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_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

Time:
        Start: 2023-09-01 14:01:07.834076 UTC
        Present: 2023-09-02 14:01:07.834076 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)
14:02:43 INFO    opendrift.models.basemodel:5350: Saving animation to /root/project/docs/source/gallery/animations/example_cone_0.gif...
14:03:48 INFO    opendrift.models.basemodel:3848: Time to make animation: 0:01:24.970725
../_images/example_cone_0.gif
o.plot(fast=True, ocean_color='skyblue', land_color='dimgray', text=text)
OpenDrift - OpenOil (EKOFISK) 2023-09-01 14:01 to 2023-09-02 14:01 UTC (25 steps)
14:03:48 WARNING opendrift.models.basemodel:3226: Plotting fast. This will make your plots less accurate.
0.1 ALPHA

(<GeoAxes: title={'center': 'OpenDrift - OpenOil (EKOFISK)\n2023-09-01 14:01 to 2023-09-02 14:01 UTC (25 steps)'}>, <Figure size 696.68x1100 with 1 Axes>)

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

Gallery generated by Sphinx-Gallery