Fjord

from datetime import timedelta
from opendrift.readers import reader_global_landmask
from opendrift.readers import reader_netCDF_CF_generic
from opendrift.models.leeway import Leeway

o = Leeway(loglevel=20)  # Set loglevel to 0 for debug information

Out:

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

Add readers for wind and current

reader_arome = reader_netCDF_CF_generic.Reader(o.test_data_folder() +
    '16Nov2015_NorKyst_z_surface/arome_subset_16Nov2015.nc')
reader_norkyst = reader_netCDF_CF_generic.Reader(o.test_data_folder() +
    '16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc')
o.add_reader([reader_norkyst, reader_arome])

Out:

13:44:38 INFO    opendrift.readers.reader_netCDF_CF_generic: Opening dataset: /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/arome_subset_16Nov2015.nc
13:44:38 INFO    opendrift.readers.reader_netCDF_CF_generic: Opening dataset: /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc

Seed elements time = [reader_arome.start_time,

reader_arome.start_time + timedelta(hours=5)]

time = reader_arome.start_time
object_type = 1  # 1: Person-in-water (PIW), unknown state (mean values)
o.seed_elements(lon=6.55, lat=61.117594, radius=50, number=5000, time=time, object_type=object_type)

Out:

13:44:38 INFO    opendrift.models.leeway: Seeding elements of object type 1: PIW-1 (Person-in-water (PIW), unknown state (mean values))

Running model for 12 hours, using small time step due to high resolution coastline

o.run(duration=timedelta(hours=12), time_step=300, time_step_output=3600)

Out:

13:44:38 INFO    opendrift.models.basemodel: Adding a dynamical landmask with max. priority based on assumed maximum speed of 1.5 m/s. Adding a customised landmask may be faster...
13:44:41 INFO    opendrift.models.basemodel: Using existing reader for land_binary_mask
13:44:41 INFO    opendrift.models.basemodel: All points are in ocean
13:44:41 INFO    opendrift.models.basemodel: 2015-11-16 00:00:00 - step 1 of 144 - 5000 active elements (0 deactivated)
13:44:41 INFO    opendrift.models.basemodel: 2015-11-16 00:05:00 - step 2 of 144 - 5000 active elements (0 deactivated)
13:44:41 INFO    opendrift.models.basemodel: 2015-11-16 00:10:00 - step 3 of 144 - 5000 active elements (0 deactivated)
13:44:41 INFO    opendrift.models.basemodel: 2015-11-16 00:15:00 - step 4 of 144 - 5000 active elements (0 deactivated)
13:44:41 INFO    opendrift.models.basemodel: 2015-11-16 00:20:00 - step 5 of 144 - 5000 active elements (0 deactivated)
13:44:41 INFO    opendrift.models.basemodel: 2015-11-16 00:25:00 - step 6 of 144 - 5000 active elements (0 deactivated)
13:44:41 INFO    opendrift.models.basemodel: 2015-11-16 00:30:00 - step 7 of 144 - 5000 active elements (0 deactivated)
13:44:41 INFO    opendrift.models.basemodel: 2015-11-16 00:35:00 - step 8 of 144 - 5000 active elements (0 deactivated)
13:44:41 INFO    opendrift.models.basemodel: 2015-11-16 00:40:00 - step 9 of 144 - 5000 active elements (0 deactivated)
13:44:41 INFO    opendrift.models.basemodel: 2015-11-16 00:45:00 - step 10 of 144 - 5000 active elements (0 deactivated)
13:44:41 INFO    opendrift.models.basemodel: 2015-11-16 00:50:00 - step 11 of 144 - 5000 active elements (0 deactivated)
13:44:41 INFO    opendrift.models.basemodel: 2015-11-16 00:55:00 - step 12 of 144 - 5000 active elements (0 deactivated)
13:44:41 INFO    opendrift.models.basemodel: 2015-11-16 01:00:00 - step 13 of 144 - 5000 active elements (0 deactivated)
13:44:42 INFO    opendrift.models.basemodel: 2015-11-16 01:05:00 - step 14 of 144 - 5000 active elements (0 deactivated)
13:44:42 INFO    opendrift.models.basemodel: 2015-11-16 01:10:00 - step 15 of 144 - 5000 active elements (0 deactivated)
13:44:42 INFO    opendrift.models.basemodel: 2015-11-16 01:15:00 - step 16 of 144 - 5000 active elements (0 deactivated)
13:44:42 INFO    opendrift.models.basemodel: 2015-11-16 01:20:00 - step 17 of 144 - 5000 active elements (0 deactivated)
13:44:42 INFO    opendrift.models.basemodel: 2015-11-16 01:25:00 - step 18 of 144 - 5000 active elements (0 deactivated)
13:44:42 INFO    opendrift.models.basemodel: 2015-11-16 01:30:00 - step 19 of 144 - 5000 active elements (0 deactivated)
13:44:42 INFO    opendrift.models.basemodel: 2015-11-16 01:35:00 - step 20 of 144 - 5000 active elements (0 deactivated)
13:44:42 INFO    opendrift.models.basemodel: 2015-11-16 01:40:00 - step 21 of 144 - 5000 active elements (0 deactivated)
13:44:42 INFO    opendrift.models.basemodel: 2015-11-16 01:45:00 - step 22 of 144 - 4999 active elements (1 deactivated)
13:44:42 INFO    opendrift.models.basemodel: 2015-11-16 01:50:00 - step 23 of 144 - 4999 active elements (1 deactivated)
13:44:42 INFO    opendrift.models.basemodel: 2015-11-16 01:55:00 - step 24 of 144 - 4998 active elements (2 deactivated)
13:44:42 INFO    opendrift.models.basemodel: 2015-11-16 02:00:00 - step 25 of 144 - 4996 active elements (4 deactivated)
13:44:42 INFO    opendrift.models.basemodel: 2015-11-16 02:05:00 - step 26 of 144 - 4991 active elements (9 deactivated)
13:44:42 INFO    opendrift.models.basemodel: 2015-11-16 02:10:00 - step 27 of 144 - 4983 active elements (17 deactivated)
13:44:43 INFO    opendrift.models.basemodel: 2015-11-16 02:15:00 - step 28 of 144 - 4966 active elements (34 deactivated)
13:44:43 INFO    opendrift.models.basemodel: 2015-11-16 02:20:00 - step 29 of 144 - 4948 active elements (52 deactivated)
13:44:43 INFO    opendrift.models.basemodel: 2015-11-16 02:25:00 - step 30 of 144 - 4911 active elements (89 deactivated)
13:44:43 INFO    opendrift.models.basemodel: 2015-11-16 02:30:00 - step 31 of 144 - 4872 active elements (128 deactivated)
13:44:43 INFO    opendrift.models.basemodel: 2015-11-16 02:35:00 - step 32 of 144 - 4825 active elements (175 deactivated)
13:44:43 INFO    opendrift.models.basemodel: 2015-11-16 02:40:00 - step 33 of 144 - 4777 active elements (223 deactivated)
13:44:43 INFO    opendrift.models.basemodel: 2015-11-16 02:45:00 - step 34 of 144 - 4698 active elements (302 deactivated)
13:44:43 INFO    opendrift.models.basemodel: 2015-11-16 02:50:00 - step 35 of 144 - 4627 active elements (373 deactivated)
13:44:43 INFO    opendrift.models.basemodel: 2015-11-16 02:55:00 - step 36 of 144 - 4556 active elements (444 deactivated)
13:44:43 INFO    opendrift.models.basemodel: 2015-11-16 03:00:00 - step 37 of 144 - 4480 active elements (520 deactivated)
13:44:43 INFO    opendrift.models.basemodel: 2015-11-16 03:05:00 - step 38 of 144 - 4393 active elements (607 deactivated)
13:44:43 INFO    opendrift.models.basemodel: 2015-11-16 03:10:00 - step 39 of 144 - 4296 active elements (704 deactivated)
13:44:43 INFO    opendrift.models.basemodel: 2015-11-16 03:15:00 - step 40 of 144 - 4216 active elements (784 deactivated)
13:44:43 INFO    opendrift.models.basemodel: 2015-11-16 03:20:00 - step 41 of 144 - 4127 active elements (873 deactivated)
13:44:43 INFO    opendrift.models.basemodel: 2015-11-16 03:25:00 - step 42 of 144 - 4041 active elements (959 deactivated)
13:44:43 INFO    opendrift.models.basemodel: 2015-11-16 03:30:00 - step 43 of 144 - 3964 active elements (1036 deactivated)
13:44:43 INFO    opendrift.models.basemodel: 2015-11-16 03:35:00 - step 44 of 144 - 3864 active elements (1136 deactivated)
13:44:44 INFO    opendrift.models.basemodel: 2015-11-16 03:40:00 - step 45 of 144 - 3792 active elements (1208 deactivated)
13:44:44 INFO    opendrift.models.basemodel: 2015-11-16 03:45:00 - step 46 of 144 - 3719 active elements (1281 deactivated)
13:44:44 INFO    opendrift.models.basemodel: 2015-11-16 03:50:00 - step 47 of 144 - 3656 active elements (1344 deactivated)
13:44:44 INFO    opendrift.models.basemodel: 2015-11-16 03:55:00 - step 48 of 144 - 3606 active elements (1394 deactivated)
13:44:44 INFO    opendrift.models.basemodel: 2015-11-16 04:00:00 - step 49 of 144 - 3553 active elements (1447 deactivated)
13:44:44 INFO    opendrift.models.basemodel: 2015-11-16 04:05:00 - step 50 of 144 - 3521 active elements (1479 deactivated)
13:44:44 INFO    opendrift.models.basemodel: 2015-11-16 04:10:00 - step 51 of 144 - 3481 active elements (1519 deactivated)
13:44:44 INFO    opendrift.models.basemodel: 2015-11-16 04:15:00 - step 52 of 144 - 3447 active elements (1553 deactivated)
13:44:44 INFO    opendrift.models.basemodel: 2015-11-16 04:20:00 - step 53 of 144 - 3419 active elements (1581 deactivated)
13:44:44 INFO    opendrift.models.basemodel: 2015-11-16 04:25:00 - step 54 of 144 - 3393 active elements (1607 deactivated)
13:44:44 INFO    opendrift.models.basemodel: 2015-11-16 04:30:00 - step 55 of 144 - 3376 active elements (1624 deactivated)
13:44:44 INFO    opendrift.models.basemodel: 2015-11-16 04:35:00 - step 56 of 144 - 3359 active elements (1641 deactivated)
13:44:44 INFO    opendrift.models.basemodel: 2015-11-16 04:40:00 - step 57 of 144 - 3341 active elements (1659 deactivated)
13:44:44 INFO    opendrift.models.basemodel: 2015-11-16 04:45:00 - step 58 of 144 - 3323 active elements (1677 deactivated)
13:44:44 INFO    opendrift.models.basemodel: 2015-11-16 04:50:00 - step 59 of 144 - 3308 active elements (1692 deactivated)
13:44:44 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (9) must be increased. See `Variables.set_buffer_size`.
13:44:44 INFO    opendrift.models.basemodel: 2015-11-16 04:55:00 - step 60 of 144 - 3300 active elements (1700 deactivated)
13:44:44 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (9) must be increased. See `Variables.set_buffer_size`.
13:44:44 INFO    opendrift.models.basemodel: 2015-11-16 05:00:00 - step 61 of 144 - 3286 active elements (1714 deactivated)
13:44:44 INFO    opendrift.models.basemodel: 2015-11-16 05:05:00 - step 62 of 144 - 3274 active elements (1726 deactivated)
13:44:45 INFO    opendrift.models.basemodel: 2015-11-16 05:10:00 - step 63 of 144 - 3258 active elements (1742 deactivated)
13:44:45 INFO    opendrift.models.basemodel: 2015-11-16 05:15:00 - step 64 of 144 - 3248 active elements (1752 deactivated)
13:44:45 INFO    opendrift.models.basemodel: 2015-11-16 05:20:00 - step 65 of 144 - 3231 active elements (1769 deactivated)
13:44:45 INFO    opendrift.models.basemodel: 2015-11-16 05:25:00 - step 66 of 144 - 3219 active elements (1781 deactivated)
13:44:45 INFO    opendrift.models.basemodel: 2015-11-16 05:30:00 - step 67 of 144 - 3204 active elements (1796 deactivated)
13:44:45 INFO    opendrift.models.basemodel: 2015-11-16 05:35:00 - step 68 of 144 - 3188 active elements (1812 deactivated)
13:44:45 INFO    opendrift.models.basemodel: 2015-11-16 05:40:00 - step 69 of 144 - 3174 active elements (1826 deactivated)
13:44:45 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (9) must be increased. See `Variables.set_buffer_size`.
13:44:45 INFO    opendrift.models.basemodel: 2015-11-16 05:45:00 - step 70 of 144 - 3159 active elements (1841 deactivated)
13:44:45 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (9) must be increased. See `Variables.set_buffer_size`.
13:44:45 INFO    opendrift.models.basemodel: 2015-11-16 05:50:00 - step 71 of 144 - 3150 active elements (1850 deactivated)
13:44:45 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (9) must be increased. See `Variables.set_buffer_size`.
13:44:45 INFO    opendrift.models.basemodel: 2015-11-16 05:55:00 - step 72 of 144 - 3138 active elements (1862 deactivated)
13:44:45 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (9) must be increased. See `Variables.set_buffer_size`.
13:44:45 INFO    opendrift.models.basemodel: 2015-11-16 06:00:00 - step 73 of 144 - 3121 active elements (1879 deactivated)
13:44:45 INFO    opendrift.models.basemodel: 2015-11-16 06:05:00 - step 74 of 144 - 3113 active elements (1887 deactivated)
13:44:45 INFO    opendrift.models.basemodel: 2015-11-16 06:10:00 - step 75 of 144 - 3100 active elements (1900 deactivated)
13:44:45 INFO    opendrift.models.basemodel: 2015-11-16 06:15:00 - step 76 of 144 - 3082 active elements (1918 deactivated)
13:44:45 INFO    opendrift.models.basemodel: 2015-11-16 06:20:00 - step 77 of 144 - 3072 active elements (1928 deactivated)
13:44:45 INFO    opendrift.models.basemodel: 2015-11-16 06:25:00 - step 78 of 144 - 3058 active elements (1942 deactivated)
13:44:45 INFO    opendrift.models.basemodel: 2015-11-16 06:30:00 - step 79 of 144 - 3046 active elements (1954 deactivated)
13:44:45 INFO    opendrift.models.basemodel: 2015-11-16 06:35:00 - step 80 of 144 - 3034 active elements (1966 deactivated)
13:44:45 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (9) must be increased. See `Variables.set_buffer_size`.
13:44:46 INFO    opendrift.models.basemodel: 2015-11-16 06:40:00 - step 81 of 144 - 3016 active elements (1984 deactivated)
13:44:46 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (9) must be increased. See `Variables.set_buffer_size`.
13:44:46 INFO    opendrift.models.basemodel: 2015-11-16 06:45:00 - step 82 of 144 - 2992 active elements (2008 deactivated)
13:44:46 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (9) must be increased. See `Variables.set_buffer_size`.
13:44:46 INFO    opendrift.models.basemodel: 2015-11-16 06:50:00 - step 83 of 144 - 2966 active elements (2034 deactivated)
13:44:46 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (9) must be increased. See `Variables.set_buffer_size`.
13:44:46 INFO    opendrift.models.basemodel: 2015-11-16 06:55:00 - step 84 of 144 - 2935 active elements (2065 deactivated)
13:44:46 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (9) must be increased. See `Variables.set_buffer_size`.
13:44:46 INFO    opendrift.models.basemodel: 2015-11-16 07:00:00 - step 85 of 144 - 2914 active elements (2086 deactivated)
13:44:46 INFO    opendrift.models.basemodel: 2015-11-16 07:05:00 - step 86 of 144 - 2891 active elements (2109 deactivated)
13:44:46 INFO    opendrift.models.basemodel: 2015-11-16 07:10:00 - step 87 of 144 - 2861 active elements (2139 deactivated)
13:44:46 INFO    opendrift.models.basemodel: 2015-11-16 07:15:00 - step 88 of 144 - 2830 active elements (2170 deactivated)
13:44:46 INFO    opendrift.models.basemodel: 2015-11-16 07:20:00 - step 89 of 144 - 2801 active elements (2199 deactivated)
13:44:46 INFO    opendrift.models.basemodel: 2015-11-16 07:25:00 - step 90 of 144 - 2766 active elements (2234 deactivated)
13:44:46 INFO    opendrift.models.basemodel: 2015-11-16 07:30:00 - step 91 of 144 - 2721 active elements (2279 deactivated)
13:44:46 INFO    opendrift.models.basemodel: 2015-11-16 07:35:00 - step 92 of 144 - 2693 active elements (2307 deactivated)
13:44:46 INFO    opendrift.models.basemodel: 2015-11-16 07:40:00 - step 93 of 144 - 2666 active elements (2334 deactivated)
13:44:46 INFO    opendrift.models.basemodel: 2015-11-16 07:45:00 - step 94 of 144 - 2626 active elements (2374 deactivated)
13:44:46 INFO    opendrift.models.basemodel: 2015-11-16 07:50:00 - step 95 of 144 - 2595 active elements (2405 deactivated)
13:44:46 INFO    opendrift.models.basemodel: 2015-11-16 07:55:00 - step 96 of 144 - 2564 active elements (2436 deactivated)
13:44:46 INFO    opendrift.models.basemodel: 2015-11-16 08:00:00 - step 97 of 144 - 2525 active elements (2475 deactivated)
13:44:46 INFO    opendrift.models.basemodel: 2015-11-16 08:05:00 - step 98 of 144 - 2492 active elements (2508 deactivated)
13:44:46 INFO    opendrift.models.basemodel: 2015-11-16 08:10:00 - step 99 of 144 - 2461 active elements (2539 deactivated)
13:44:47 INFO    opendrift.models.basemodel: 2015-11-16 08:15:00 - step 100 of 144 - 2429 active elements (2571 deactivated)
13:44:47 INFO    opendrift.models.basemodel: 2015-11-16 08:20:00 - step 101 of 144 - 2400 active elements (2600 deactivated)
13:44:47 INFO    opendrift.models.basemodel: 2015-11-16 08:25:00 - step 102 of 144 - 2364 active elements (2636 deactivated)
13:44:47 INFO    opendrift.models.basemodel: 2015-11-16 08:30:00 - step 103 of 144 - 2324 active elements (2676 deactivated)
13:44:47 INFO    opendrift.models.basemodel: 2015-11-16 08:35:00 - step 104 of 144 - 2290 active elements (2710 deactivated)
13:44:47 INFO    opendrift.models.basemodel: 2015-11-16 08:40:00 - step 105 of 144 - 2251 active elements (2749 deactivated)
13:44:47 INFO    opendrift.models.basemodel: 2015-11-16 08:45:00 - step 106 of 144 - 2216 active elements (2784 deactivated)
13:44:47 INFO    opendrift.models.basemodel: 2015-11-16 08:50:00 - step 107 of 144 - 2183 active elements (2817 deactivated)
13:44:47 INFO    opendrift.models.basemodel: 2015-11-16 08:55:00 - step 108 of 144 - 2153 active elements (2847 deactivated)
13:44:47 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (9) must be increased. See `Variables.set_buffer_size`.
13:44:47 INFO    opendrift.models.basemodel: 2015-11-16 09:00:00 - step 109 of 144 - 2117 active elements (2883 deactivated)
13:44:47 INFO    opendrift.models.basemodel: 2015-11-16 09:05:00 - step 110 of 144 - 2077 active elements (2923 deactivated)
13:44:47 INFO    opendrift.models.basemodel: 2015-11-16 09:10:00 - step 111 of 144 - 2039 active elements (2961 deactivated)
13:44:47 INFO    opendrift.models.basemodel: 2015-11-16 09:15:00 - step 112 of 144 - 2001 active elements (2999 deactivated)
13:44:47 INFO    opendrift.models.basemodel: 2015-11-16 09:20:00 - step 113 of 144 - 1952 active elements (3048 deactivated)
13:44:47 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (9) must be increased. See `Variables.set_buffer_size`.
13:44:47 INFO    opendrift.models.basemodel: 2015-11-16 09:25:00 - step 114 of 144 - 1915 active elements (3085 deactivated)
13:44:47 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (9) must be increased. See `Variables.set_buffer_size`.
13:44:47 INFO    opendrift.models.basemodel: 2015-11-16 09:30:00 - step 115 of 144 - 1877 active elements (3123 deactivated)
13:44:47 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (9) must be increased. See `Variables.set_buffer_size`.
13:44:47 INFO    opendrift.models.basemodel: 2015-11-16 09:35:00 - step 116 of 144 - 1846 active elements (3154 deactivated)
13:44:47 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (9) must be increased. See `Variables.set_buffer_size`.
13:44:47 INFO    opendrift.models.basemodel: 2015-11-16 09:40:00 - step 117 of 144 - 1811 active elements (3189 deactivated)
13:44:47 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (9) must be increased. See `Variables.set_buffer_size`.
13:44:47 INFO    opendrift.models.basemodel: 2015-11-16 09:45:00 - step 118 of 144 - 1774 active elements (3226 deactivated)
13:44:47 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (9) must be increased. See `Variables.set_buffer_size`.
13:44:47 INFO    opendrift.models.basemodel: 2015-11-16 09:50:00 - step 119 of 144 - 1749 active elements (3251 deactivated)
13:44:47 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (9) must be increased. See `Variables.set_buffer_size`.
13:44:47 INFO    opendrift.models.basemodel: 2015-11-16 09:55:00 - step 120 of 144 - 1715 active elements (3285 deactivated)
13:44:48 WARNING opendrift.readers.basereader.structured: Data block from /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc not large enough to cover element positions within timestep. Buffer size (9) must be increased. See `Variables.set_buffer_size`.
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 10:00:00 - step 121 of 144 - 1681 active elements (3319 deactivated)
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 10:05:00 - step 122 of 144 - 1652 active elements (3348 deactivated)
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 10:10:00 - step 123 of 144 - 1621 active elements (3379 deactivated)
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 10:15:00 - step 124 of 144 - 1601 active elements (3399 deactivated)
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 10:20:00 - step 125 of 144 - 1566 active elements (3434 deactivated)
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 10:25:00 - step 126 of 144 - 1547 active elements (3453 deactivated)
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 10:30:00 - step 127 of 144 - 1521 active elements (3479 deactivated)
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 10:35:00 - step 128 of 144 - 1488 active elements (3512 deactivated)
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 10:40:00 - step 129 of 144 - 1456 active elements (3544 deactivated)
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 10:45:00 - step 130 of 144 - 1429 active elements (3571 deactivated)
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 10:50:00 - step 131 of 144 - 1409 active elements (3591 deactivated)
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 10:55:00 - step 132 of 144 - 1385 active elements (3615 deactivated)
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 11:00:00 - step 133 of 144 - 1363 active elements (3637 deactivated)
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 11:05:00 - step 134 of 144 - 1343 active elements (3657 deactivated)
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 11:10:00 - step 135 of 144 - 1325 active elements (3675 deactivated)
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 11:15:00 - step 136 of 144 - 1307 active elements (3693 deactivated)
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 11:20:00 - step 137 of 144 - 1291 active elements (3709 deactivated)
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 11:25:00 - step 138 of 144 - 1268 active elements (3732 deactivated)
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 11:30:00 - step 139 of 144 - 1247 active elements (3753 deactivated)
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 11:35:00 - step 140 of 144 - 1231 active elements (3769 deactivated)
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 11:40:00 - step 141 of 144 - 1207 active elements (3793 deactivated)
13:44:48 INFO    opendrift.models.basemodel: 2015-11-16 11:45:00 - step 142 of 144 - 1187 active elements (3813 deactivated)
13:44:49 INFO    opendrift.models.basemodel: 2015-11-16 11:50:00 - step 143 of 144 - 1168 active elements (3832 deactivated)
13:44:49 INFO    opendrift.models.basemodel: 2015-11-16 11:55:00 - step 144 of 144 - 1153 active elements (3847 deactivated)

Print and plot results

print(o)
o.animation()

Out:

===========================
--------------------
Reader performance:
--------------------
/root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc
 0:00:02.8  total
 0:00:00.0  preparing
 0:00:00.2  reading
 0:00:00.1  interpolation
 0:00:00.0  interpolation_time
 0:00:02.6  rotating vectors
 0:00:00.0  masking
--------------------
/root/project/tests/test_data/16Nov2015_NorKyst_z_surface/arome_subset_16Nov2015.nc
 0:00:02.8  total
 0:00:00.0  preparing
 0:00:00.2  reading
 0:00:00.1  interpolation
 0:00:00.0  interpolation_time
 0:00:02.5  rotating vectors
 0:00:00.0  masking
--------------------
global_landmask
 0:00:00.2  total
 0:00:00.0  preparing
 0:00:00.2  reading
 0:00:00.0  masking
--------------------
Performance:
   11.2 total time
    0.5 configuration
    2.7 preparing main loop
      2.7 making dynamical landmask
      0.0 moving elements to ocean
      6.6 readers
        0.2 global_landmask
        0.1 postprocessing
    7.9 main loop
        3.0 /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc
        3.0 /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/arome_subset_16Nov2015.nc
      0.6 updating elements
    0.0 cleaning up
--------------------
===========================
Model:  Leeway     (OpenDrift version 1.7.1)
        1129 active LeewayObj particles  (3871 deactivated, 0 scheduled)
-------------------
Environment variables:
  -----
  x_sea_water_velocity
  y_sea_water_velocity
     1) /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc
  -----
  x_wind
  y_wind
     1) /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/arome_subset_16Nov2015.nc
  -----
  land_binary_mask
     1) global_landmask

Time:
        Start: 2015-11-16 00:00:00
        Present: 2015-11-16 12:00:00
        Calculation steps: 144 * 0:05:00 - total time: 12:00:00
        Output steps: 13 * 1:00:00
===========================

13:45:15 INFO    opendrift.models.basemodel: Saving animation to /root/project/docs/source/gallery/animations/example_fjord_0.gif...
13:45:15 INFO    opendrift.models.basemodel: Making animated gif...
MovieWriter imagemagick unavailable; using Pillow instead.
../_images/example_fjord_0.gif
o.plot()
OpenDrift - Leeway (PIW-1) 2015-11-16 00:00 to 2015-11-16 12:00 UTC (13 steps)

Out:

(<GeoAxesSubplot:title={'center':'OpenDrift - Leeway (PIW-1)\n2015-11-16 00:00 to 2015-11-16 12:00 UTC (13 steps)'}>, <module 'matplotlib.pyplot' from '/opt/conda/envs/opendrift/lib/python3.9/site-packages/matplotlib/pyplot.py'>)

Total running time of the script: ( 1 minutes 18.280 seconds)

Gallery generated by Sphinx-Gallery