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

Out:

13:48:43 INFO    opendrift.models.basemodel: OpenDriftSimulation initialised (version 1.7.1 / v1.7.1-87-g074c1d2)

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)

Out:

querying DB:
Oil.name ==  'EKOFISK'
13:48:43 INFO    opendrift.models.openoil: Using density 830.5084745762713 and viscosity 7.399976110944501e-06 of oiltype EKOFISK
===========================
Model:  OpenOil     (OpenDrift version 1.7.1)
        0 active Oil particles  (0 deactivated, 10000 scheduled)
-------------------
Environment variables:
  -----
Readers not added for the following variables:
  land_binary_mask
  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)

Out:

13:48:43 INFO    opendrift.models.oceandrift: Setting config: drift:vertical_advection -> False
13:48:43 INFO    opendrift.models.oceandrift: Setting config: drift:vertical_mixing -> False

Running model for 24 hours

o.run(steps=24*2, time_step=1800, time_step_output=3600)

Out:

13:48:43 INFO    opendrift.models.basemodel: Fallback values will be used for the following variables which have no readers:
13:48:43 INFO    opendrift.models.basemodel:    upward_sea_water_velocity: 0.000000
13:48:43 INFO    opendrift.models.basemodel:    sea_surface_wave_significant_height: 0.000000
13:48:43 INFO    opendrift.models.basemodel:    sea_surface_wave_stokes_drift_x_velocity: 0.000000
13:48:43 INFO    opendrift.models.basemodel:    sea_surface_wave_stokes_drift_y_velocity: 0.000000
13:48:43 INFO    opendrift.models.basemodel:    sea_surface_wave_period_at_variance_spectral_density_maximum: 0.000000
13:48:43 INFO    opendrift.models.basemodel:    sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment: 0.000000
13:48:43 INFO    opendrift.models.basemodel:    sea_ice_area_fraction: 0.000000
13:48:43 INFO    opendrift.models.basemodel:    sea_ice_x_velocity: 0.000000
13:48:43 INFO    opendrift.models.basemodel:    sea_ice_y_velocity: 0.000000
13:48:43 INFO    opendrift.models.basemodel:    sea_water_temperature: 10.000000
13:48:43 INFO    opendrift.models.basemodel:    sea_water_salinity: 34.000000
13:48:43 INFO    opendrift.models.basemodel:    sea_floor_depth_below_sea_level: 10000.000000
13:48:43 INFO    opendrift.models.basemodel:    ocean_vertical_diffusivity: 0.020000
13:48:43 INFO    opendrift.models.basemodel: Adding a dynamical landmask with max. priority based on assumed maximum speed of 1.3 m/s. Adding a customised landmask may be faster...
13:48:45 INFO    opendrift.models.basemodel: Using existing reader for land_binary_mask
13:48:45 INFO    opendrift.models.basemodel: All points are in ocean
13:48:46 INFO    opendrift.models.openoil: Oil-water surface tension is 0.019800 Nm
13:48:46 INFO    opendrift.models.basemodel: 2021-09-24 13:48:43.213043 - step 1 of 48 - 417 active elements (0 deactivated)
13:48:46 INFO    opendrift.readers.reader_netCDF_CF_generic: Opening dataset: https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be
13:48:51 INFO    opendrift.models.basemodel: 2021-09-24 14:18:43.213043 - step 2 of 48 - 834 active elements (0 deactivated)
13:48:52 WARNING opendrift.readers.basereader.structured: 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`.
13:48:52 INFO    opendrift.models.basemodel: 2021-09-24 14:48:43.213043 - step 3 of 48 - 1250 active elements (0 deactivated)
13:48:53 WARNING opendrift.readers.basereader.structured: 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`.
13:48:53 WARNING opendrift.readers.basereader.structured: 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`.
13:48:53 INFO    opendrift.models.basemodel: 2021-09-24 15:18:43.213043 - step 4 of 48 - 1667 active elements (0 deactivated)
13:48:54 WARNING opendrift.readers.basereader.structured: 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`.
13:48:54 WARNING opendrift.readers.basereader.structured: 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`.
13:48:54 INFO    opendrift.models.basemodel: 2021-09-24 15:48:43.213043 - step 5 of 48 - 2084 active elements (0 deactivated)
13:48:55 WARNING opendrift.readers.basereader.structured: 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`.
13:48:56 WARNING opendrift.readers.basereader.structured: 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`.
13:48:56 INFO    opendrift.models.basemodel: 2021-09-24 16:18:43.213043 - step 6 of 48 - 2500 active elements (0 deactivated)
13:48:57 WARNING opendrift.readers.basereader.structured: 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`.
13:48:57 WARNING opendrift.readers.basereader.structured: 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`.
13:48:57 INFO    opendrift.models.basemodel: 2021-09-24 16:48:43.213043 - step 7 of 48 - 2917 active elements (0 deactivated)
13:48:58 WARNING opendrift.readers.basereader.structured: 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`.
13:48:58 WARNING opendrift.readers.basereader.structured: 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`.
13:48:58 INFO    opendrift.models.basemodel: 2021-09-24 17:18:43.213043 - step 8 of 48 - 3334 active elements (0 deactivated)
13:48:59 WARNING opendrift.readers.basereader.structured: 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`.
13:49:00 WARNING opendrift.readers.basereader.structured: 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`.
13:49:00 INFO    opendrift.models.basemodel: 2021-09-24 17:48:43.213043 - step 9 of 48 - 3750 active elements (0 deactivated)
13:49:01 WARNING opendrift.readers.basereader.structured: 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`.
13:49:01 WARNING opendrift.readers.basereader.structured: 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`.
13:49:01 INFO    opendrift.models.basemodel: 2021-09-24 18:18:43.213043 - step 10 of 48 - 4167 active elements (0 deactivated)
13:49:02 WARNING opendrift.readers.basereader.structured: 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`.
13:49:02 WARNING opendrift.readers.basereader.structured: 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`.
13:49:02 INFO    opendrift.models.basemodel: 2021-09-24 18:48:43.213043 - step 11 of 48 - 4583 active elements (0 deactivated)
13:49:04 WARNING opendrift.readers.basereader.structured: 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`.
13:49:04 WARNING opendrift.readers.basereader.structured: 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`.
13:49:04 INFO    opendrift.models.basemodel: 2021-09-24 19:18:43.213043 - step 12 of 48 - 5000 active elements (0 deactivated)
13:49:05 WARNING opendrift.readers.basereader.structured: 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`.
13:49:05 WARNING opendrift.readers.basereader.structured: 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`.
13:49:05 INFO    opendrift.models.basemodel: 2021-09-24 19:48:43.213043 - step 13 of 48 - 5417 active elements (0 deactivated)
13:49:07 WARNING opendrift.readers.basereader.structured: 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`.
13:49:07 INFO    opendrift.models.basemodel: 2021-09-24 20:18:43.213043 - step 14 of 48 - 5833 active elements (0 deactivated)
13:49:08 WARNING opendrift.readers.basereader.structured: 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`.
13:49:08 INFO    opendrift.models.basemodel: 2021-09-24 20:48:43.213043 - step 15 of 48 - 6250 active elements (0 deactivated)
13:49:10 WARNING opendrift.readers.basereader.structured: 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`.
13:49:10 INFO    opendrift.models.basemodel: 2021-09-24 21:18:43.213043 - step 16 of 48 - 6667 active elements (0 deactivated)
13:49:11 WARNING opendrift.readers.basereader.structured: 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`.
13:49:11 INFO    opendrift.models.basemodel: 2021-09-24 21:48:43.213043 - step 17 of 48 - 7083 active elements (0 deactivated)
13:49:13 WARNING opendrift.readers.basereader.structured: 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`.
13:49:13 WARNING opendrift.readers.basereader.structured: 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`.
13:49:13 INFO    opendrift.models.basemodel: 2021-09-24 22:18:43.213043 - step 18 of 48 - 7500 active elements (0 deactivated)
13:49:14 WARNING opendrift.readers.basereader.structured: 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`.
13:49:15 WARNING opendrift.readers.basereader.structured: 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`.
13:49:15 INFO    opendrift.models.basemodel: 2021-09-24 22:48:43.213043 - step 19 of 48 - 7916 active elements (0 deactivated)
13:49:16 WARNING opendrift.readers.basereader.structured: 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`.
13:49:16 WARNING opendrift.readers.basereader.structured: 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`.
13:49:16 INFO    opendrift.models.basemodel: 2021-09-24 23:18:43.213043 - step 20 of 48 - 8333 active elements (0 deactivated)
13:49:17 WARNING opendrift.readers.basereader.structured: 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`.
13:49:18 WARNING opendrift.readers.basereader.structured: 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`.
13:49:18 INFO    opendrift.models.basemodel: 2021-09-24 23:48:43.213043 - step 21 of 48 - 8750 active elements (0 deactivated)
13:49:19 WARNING opendrift.readers.basereader.structured: 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`.
13:49:20 INFO    opendrift.models.basemodel: 2021-09-25 00:18:43.213043 - step 22 of 48 - 9165 active elements (1 deactivated)
13:49:22 WARNING opendrift.readers.basereader.structured: 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`.
13:49:22 INFO    opendrift.models.basemodel: 2021-09-25 00:48:43.213043 - step 23 of 48 - 9578 active elements (5 deactivated)
13:49:23 WARNING opendrift.readers.basereader.structured: 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`.
13:49:23 WARNING opendrift.readers.basereader.structured: 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`.
13:49:23 INFO    opendrift.models.basemodel: 2021-09-25 01:18:43.213043 - step 24 of 48 - 9992 active elements (8 deactivated)
13:49:26 WARNING opendrift.readers.basereader.structured: 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`.
13:49:26 INFO    opendrift.models.basemodel: 2021-09-25 01:48:43.213043 - step 25 of 48 - 9992 active elements (8 deactivated)
13:49:26 WARNING opendrift.readers.basereader.structured: 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`.
13:49:27 INFO    opendrift.models.basemodel: 2021-09-25 02:18:43.213043 - step 26 of 48 - 9962 active elements (38 deactivated)
13:49:29 INFO    opendrift.models.basemodel: 2021-09-25 02:48:43.213043 - step 27 of 48 - 9885 active elements (115 deactivated)
13:49:30 INFO    opendrift.models.basemodel: 2021-09-25 03:18:43.213043 - step 28 of 48 - 9775 active elements (225 deactivated)
13:49:32 INFO    opendrift.models.basemodel: 2021-09-25 03:48:43.213043 - step 29 of 48 - 9669 active elements (331 deactivated)
13:49:32 INFO    opendrift.models.basemodel: 2021-09-25 04:18:43.213043 - step 30 of 48 - 9603 active elements (397 deactivated)
13:49:35 INFO    opendrift.models.basemodel: 2021-09-25 04:48:43.213043 - step 31 of 48 - 9555 active elements (445 deactivated)
13:49:35 INFO    opendrift.models.basemodel: 2021-09-25 05:18:43.213043 - step 32 of 48 - 9522 active elements (478 deactivated)
13:49:37 INFO    opendrift.models.basemodel: 2021-09-25 05:48:43.213043 - step 33 of 48 - 9494 active elements (506 deactivated)
13:49:38 INFO    opendrift.models.basemodel: 2021-09-25 06:18:43.213043 - step 34 of 48 - 9476 active elements (524 deactivated)
13:49:40 INFO    opendrift.models.basemodel: 2021-09-25 06:48:43.213043 - step 35 of 48 - 9467 active elements (533 deactivated)
13:49:40 INFO    opendrift.models.basemodel: 2021-09-25 07:18:43.213043 - step 36 of 48 - 9460 active elements (540 deactivated)
13:49:43 INFO    opendrift.models.basemodel: 2021-09-25 07:48:43.213043 - step 37 of 48 - 9451 active elements (549 deactivated)
13:49:43 INFO    opendrift.models.basemodel: 2021-09-25 08:18:43.213043 - step 38 of 48 - 9446 active elements (554 deactivated)
13:49:45 INFO    opendrift.models.basemodel: 2021-09-25 08:48:43.213043 - step 39 of 48 - 9441 active elements (559 deactivated)
13:49:46 INFO    opendrift.models.basemodel: 2021-09-25 09:18:43.213043 - step 40 of 48 - 9439 active elements (561 deactivated)
13:49:48 INFO    opendrift.models.basemodel: 2021-09-25 09:48:43.213043 - step 41 of 48 - 9436 active elements (564 deactivated)
13:49:48 INFO    opendrift.models.basemodel: 2021-09-25 10:18:43.213043 - step 42 of 48 - 9433 active elements (567 deactivated)
13:49:51 INFO    opendrift.models.basemodel: 2021-09-25 10:48:43.213043 - step 43 of 48 - 9429 active elements (571 deactivated)
13:49:51 INFO    opendrift.models.basemodel: 2021-09-25 11:18:43.213043 - step 44 of 48 - 9422 active elements (578 deactivated)
13:49:53 INFO    opendrift.models.basemodel: 2021-09-25 11:48:43.213043 - step 45 of 48 - 9419 active elements (581 deactivated)
13:49:54 INFO    opendrift.models.basemodel: 2021-09-25 12:18:43.213043 - step 46 of 48 - 9414 active elements (586 deactivated)
13:49:56 INFO    opendrift.models.basemodel: 2021-09-25 12:48:43.213043 - step 47 of 48 - 9412 active elements (588 deactivated)
13:49:56 INFO    opendrift.models.basemodel: 2021-09-25 13:18:43.213043 - step 48 of 48 - 9408 active elements (592 deactivated)

Print and plot results

print(o)

Out:

===========================
--------------------
Reader performance:
--------------------
global_landmask
 0:00:00.1  total
 0:00:00.0  preparing
 0:00:00.1  reading
 0:00:00.0  masking
--------------------
https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be
 0:01:02.0  total
 0:00:00.0  preparing
 0:00:59.1  reading
 0:00:02.9  interpolation
 0:00:00.0  interpolation_time
 0:00:02.8  rotating vectors
 0:00:00.0  masking
--------------------
Performance:
 1:16.7 total time
    0.1 configuration
    2.7 preparing main loop
      2.5 making dynamical landmask
      0.0 moving elements to ocean
   1:05.0 readers
        0.1 global_landmask
        0.4 postprocessing
 1:13.6 main loop
     1:02.2 https://thredds.met.no/thredds/dodsC/sea/norkyst800m/1h/aggregate_be
      7.3 updating elements
        6.7 oil weathering
          1.5 updating viscosities
          5.0 updating densities
          0.0 emulsification
          0.0 dispersion
    0.1 cleaning up
--------------------
===========================
Model:  OpenOil     (OpenDrift version 1.7.1)
        9406 active Oil particles  (594 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_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: 2021-09-24 13:48:43.213043
        Present: 2021-09-25 13:48:43.213043
        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)

Out:

13:50:17 INFO    opendrift.models.basemodel: Saving animation to /root/project/docs/source/gallery/animations/example_cone_0.gif...
13:50:17 INFO    opendrift.models.basemodel: Making animated gif...
MovieWriter imagemagick unavailable; using Pillow instead.
../_images/example_cone_0.gif
o.plot(fast=True, ocean_color='skyblue', land_color='dimgray', text=text)
OpenDrift - OpenOil (EKOFISK) 2021-09-24 13:48 to 2021-09-25 13:48 UTC (25 steps)

Out:

13:50:38 WARNING opendrift.models.basemodel: Plotting fast. This will make your plots less accurate.

(<GeoAxesSubplot:title={'center':'OpenDrift - OpenOil (EKOFISK)\n2021-09-24 13:48 to 2021-09-25 13:48 UTC (25 steps)'}>, <module 'matplotlib.pyplot' from '/opt/conda/envs/opendrift/lib/python3.9/site-packages/matplotlib/pyplot.py'>)

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

Gallery generated by Sphinx-Gallery