Note
Go to the end to download the full example code.
Combining readers using operators
It is possible to combine readers using operators, to create e.g. a mean reader from different sources, or adding a constant force term to another sources.
See also
from datetime import timedelta
from opendrift.readers import reader_netCDF_CF_generic, reader_constant
from opendrift.models.leeway import Leeway
lw = Leeway(loglevel=20) # Set loglevel to 0 for debug information
# Atmospheric model for wind
#reader_arome = reader_netCDF_CF_generic.Reader('https://thredds.met.no/thredds/dodsC/mepslatest/meps_lagged_6_h_latest_2_5km_latest.nc')
reader_arome = reader_netCDF_CF_generic.Reader(lw.test_data_folder() +
'16Nov2015_NorKyst_z_surface/arome_subset_16Nov2015.nc')
# Ocean model for current
#reader_norkyst = reader_netCDF_CF_generic.Reader('https://thredds.met.no/thredds/dodsC/mepslatest/meps_lagged_6_h_latest_2_5km_latest.nc')
reader_norkyst = reader_netCDF_CF_generic.Reader(lw.test_data_folder() +
'16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc')
12:50:53 INFO opendrift.models.basemodel:515: OpenDriftSimulation initialised (version 1.11.13 / v1.11.13-99-gd2132d3)
12:50:53 INFO opendrift.readers.reader_netCDF_CF_generic:102: Opening dataset: /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/arome_subset_16Nov2015.nc
12:50:54 INFO opendrift.readers.reader_netCDF_CF_generic:325: Detected dimensions: {'time': 'time', 'x': 'x', 'y': 'y'}
12:50:54 INFO opendrift.readers.reader_netCDF_CF_generic:102: Opening dataset: /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc
12:50:54 INFO opendrift.readers.reader_netCDF_CF_generic:325: Detected dimensions: {'x': 'X', 'y': 'Y', 'z': 'depth', 'time': 'time'}
First a regular simulation, without the added wind:
lw.add_reader([reader_arome, reader_norkyst])
object_type = 26 # 26 = Life-raft, no ballast
lw.seed_elements(lon=4.5, lat=59.6, radius=100, number=1000,
time=reader_arome.start_time, object_type=object_type)
lw.run(duration=timedelta(hours=48), time_step=900, time_step_output=3600)
lw.plot(fast=True)
12:50:54 INFO opendrift.models.leeway:319: Seeding elements of object type 26: LIFE-RAFT-NB-1 (Life-raft, no ballast (NB) system, general (mean values))
12:50:54 INFO opendrift.models.basemodel.environment:218: Adding a dynamical landmask with max. priority based on assumed maximum speed of 5.0 m/s. Adding a customised landmask may be faster...
12:50:58 INFO opendrift.models.basemodel.environment:245: Fallback values will be used for the following variables which have no readers:
12:50:58 INFO opendrift.models.basemodel.environment:248: sea_surface_wave_stokes_drift_x_velocity: 0.000000
12:50:58 INFO opendrift.models.basemodel.environment:248: sea_surface_wave_stokes_drift_y_velocity: 0.000000
12:50:58 INFO opendrift.models.basemodel:936: Using existing reader for land_binary_mask
12:50:58 INFO opendrift.models.basemodel:947: All points are in ocean
12:50:58 INFO opendrift.models.basemodel:2038: 2015-11-16 00:00:00 - step 1 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 00:15:00 - step 2 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 00:30:00 - step 3 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 00:45:00 - step 4 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 01:00:00 - step 5 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 01:15:00 - step 6 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 01:30:00 - step 7 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 01:45:00 - step 8 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 02:00:00 - step 9 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 02:15:00 - step 10 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 02:30:00 - step 11 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 02:45:00 - step 12 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 03:00:00 - step 13 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 03:15:00 - step 14 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 03:30:00 - step 15 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 03:45:00 - step 16 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 04:00:00 - step 17 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 04:15:00 - step 18 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 04:30:00 - step 19 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 04:45:00 - step 20 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 05:00:00 - step 21 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 05:15:00 - step 22 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 05:30:00 - step 23 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 05:45:00 - step 24 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 06:00:00 - step 25 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 06:15:00 - step 26 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 06:30:00 - step 27 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 06:45:00 - step 28 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 07:00:00 - step 29 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 07:15:00 - step 30 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 07:30:00 - step 31 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 07:45:00 - step 32 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 08:00:00 - step 33 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 08:15:00 - step 34 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 08:30:00 - step 35 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 08:45:00 - step 36 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 09:00:00 - step 37 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 09:15:00 - step 38 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 09:30:00 - step 39 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 09:45:00 - step 40 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 10:00:00 - step 41 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 10:15:00 - step 42 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 10:30:00 - step 43 of 192 - 1000 active elements (0 deactivated)
12:50:59 INFO opendrift.models.basemodel:2038: 2015-11-16 10:45:00 - step 44 of 192 - 1000 active elements (0 deactivated)
12:51:00 INFO opendrift.models.basemodel:2038: 2015-11-16 11:00:00 - step 45 of 192 - 1000 active elements (0 deactivated)
12:51:00 INFO opendrift.models.basemodel:2038: 2015-11-16 11:15:00 - step 46 of 192 - 1000 active elements (0 deactivated)
12:51:00 INFO opendrift.models.basemodel:2038: 2015-11-16 11:30:00 - step 47 of 192 - 1000 active elements (0 deactivated)
12:51:00 INFO opendrift.models.basemodel:2038: 2015-11-16 11:45:00 - step 48 of 192 - 1000 active elements (0 deactivated)
12:51:00 INFO opendrift.models.basemodel:2038: 2015-11-16 12:00:00 - step 49 of 192 - 1000 active elements (0 deactivated)
12:51:00 INFO opendrift.models.basemodel:2038: 2015-11-16 12:15:00 - step 50 of 192 - 1000 active elements (0 deactivated)
12:51:00 INFO opendrift.models.basemodel:2038: 2015-11-16 12:30:00 - step 51 of 192 - 1000 active elements (0 deactivated)
12:51:00 INFO opendrift.models.basemodel:2038: 2015-11-16 12:45:00 - step 52 of 192 - 1000 active elements (0 deactivated)
12:51:00 INFO opendrift.models.basemodel:2038: 2015-11-16 13:00:00 - step 53 of 192 - 1000 active elements (0 deactivated)
12:51:00 INFO opendrift.models.basemodel:2038: 2015-11-16 13:15:00 - step 54 of 192 - 1000 active elements (0 deactivated)
12:51:00 INFO opendrift.models.basemodel:2038: 2015-11-16 13:30:00 - step 55 of 192 - 1000 active elements (0 deactivated)
12:51:00 INFO opendrift.models.basemodel:2038: 2015-11-16 13:45:00 - step 56 of 192 - 1000 active elements (0 deactivated)
12:51:00 INFO opendrift.models.basemodel:2038: 2015-11-16 14:00:00 - step 57 of 192 - 1000 active elements (0 deactivated)
12:51:00 INFO opendrift.models.basemodel:2038: 2015-11-16 14:15:00 - step 58 of 192 - 1000 active elements (0 deactivated)
12:51:00 INFO opendrift.models.basemodel:2038: 2015-11-16 14:30:00 - step 59 of 192 - 1000 active elements (0 deactivated)
12:51:00 INFO opendrift.models.basemodel:2038: 2015-11-16 14:45:00 - step 60 of 192 - 1000 active elements (0 deactivated)
12:51:00 INFO opendrift.models.basemodel:2038: 2015-11-16 15:00:00 - step 61 of 192 - 1000 active elements (0 deactivated)
12:51:01 INFO opendrift.models.basemodel:2038: 2015-11-16 15:15:00 - step 62 of 192 - 1000 active elements (0 deactivated)
/root/project/opendrift/readers/interpolation/interpolators.py:17: RuntimeWarning: overflow encountered in cast
data[mask] = np.finfo(np.float64).min
12:51:01 INFO opendrift.models.basemodel:2038: 2015-11-16 15:30:00 - step 63 of 192 - 1000 active elements (0 deactivated)
12:51:01 INFO opendrift.models.basemodel:2038: 2015-11-16 15:45:00 - step 64 of 192 - 1000 active elements (0 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 16:00:00 - step 65 of 192 - 999 active elements (1 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 16:15:00 - step 66 of 192 - 999 active elements (1 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 16:30:00 - step 67 of 192 - 999 active elements (1 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 16:45:00 - step 68 of 192 - 999 active elements (1 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 17:00:00 - step 69 of 192 - 996 active elements (4 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 17:15:00 - step 70 of 192 - 996 active elements (4 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 17:30:00 - step 71 of 192 - 996 active elements (4 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 17:45:00 - step 72 of 192 - 992 active elements (8 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 18:00:00 - step 73 of 192 - 990 active elements (10 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 18:15:00 - step 74 of 192 - 985 active elements (15 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 18:30:00 - step 75 of 192 - 980 active elements (20 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 18:45:00 - step 76 of 192 - 975 active elements (25 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 19:00:00 - step 77 of 192 - 970 active elements (30 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 19:15:00 - step 78 of 192 - 966 active elements (34 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 19:30:00 - step 79 of 192 - 959 active elements (41 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 19:45:00 - step 80 of 192 - 947 active elements (53 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 20:00:00 - step 81 of 192 - 936 active elements (64 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 20:15:00 - step 82 of 192 - 923 active elements (77 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 20:30:00 - step 83 of 192 - 914 active elements (86 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 20:45:00 - step 84 of 192 - 906 active elements (94 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 21:00:00 - step 85 of 192 - 902 active elements (98 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 21:15:00 - step 86 of 192 - 891 active elements (109 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 21:30:00 - step 87 of 192 - 885 active elements (115 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 21:45:00 - step 88 of 192 - 869 active elements (131 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 22:00:00 - step 89 of 192 - 864 active elements (136 deactivated)
12:51:03 INFO opendrift.models.basemodel:2038: 2015-11-16 22:15:00 - step 90 of 192 - 854 active elements (146 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-16 22:30:00 - step 91 of 192 - 840 active elements (160 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-16 22:45:00 - step 92 of 192 - 830 active elements (170 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-16 23:00:00 - step 93 of 192 - 822 active elements (178 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-16 23:15:00 - step 94 of 192 - 802 active elements (198 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-16 23:30:00 - step 95 of 192 - 795 active elements (205 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-16 23:45:00 - step 96 of 192 - 777 active elements (223 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 00:00:00 - step 97 of 192 - 765 active elements (235 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 00:15:00 - step 98 of 192 - 758 active elements (242 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 00:30:00 - step 99 of 192 - 743 active elements (257 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 00:45:00 - step 100 of 192 - 735 active elements (265 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 01:00:00 - step 101 of 192 - 722 active elements (278 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 01:15:00 - step 102 of 192 - 713 active elements (287 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 01:30:00 - step 103 of 192 - 705 active elements (295 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 01:45:00 - step 104 of 192 - 698 active elements (302 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 02:00:00 - step 105 of 192 - 686 active elements (314 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 02:15:00 - step 106 of 192 - 672 active elements (328 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 02:30:00 - step 107 of 192 - 663 active elements (337 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 02:45:00 - step 108 of 192 - 647 active elements (353 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 03:00:00 - step 109 of 192 - 632 active elements (368 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 03:15:00 - step 110 of 192 - 621 active elements (379 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 03:30:00 - step 111 of 192 - 614 active elements (386 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 03:45:00 - step 112 of 192 - 610 active elements (390 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 04:00:00 - step 113 of 192 - 596 active elements (404 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 04:15:00 - step 114 of 192 - 591 active elements (409 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 04:30:00 - step 115 of 192 - 578 active elements (422 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 04:45:00 - step 116 of 192 - 569 active elements (431 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 05:00:00 - step 117 of 192 - 563 active elements (437 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 05:15:00 - step 118 of 192 - 554 active elements (446 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 05:30:00 - step 119 of 192 - 547 active elements (453 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 05:45:00 - step 120 of 192 - 542 active elements (458 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 06:00:00 - step 121 of 192 - 531 active elements (469 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 06:15:00 - step 122 of 192 - 521 active elements (479 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 06:30:00 - step 123 of 192 - 509 active elements (491 deactivated)
12:51:04 INFO opendrift.models.basemodel:2038: 2015-11-17 06:45:00 - step 124 of 192 - 501 active elements (499 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 07:00:00 - step 125 of 192 - 491 active elements (509 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 07:15:00 - step 126 of 192 - 484 active elements (516 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 07:30:00 - step 127 of 192 - 474 active elements (526 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 07:45:00 - step 128 of 192 - 470 active elements (530 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 08:00:00 - step 129 of 192 - 462 active elements (538 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 08:15:00 - step 130 of 192 - 454 active elements (546 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 08:30:00 - step 131 of 192 - 453 active elements (547 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 08:45:00 - step 132 of 192 - 446 active elements (554 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 09:00:00 - step 133 of 192 - 439 active elements (561 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 09:15:00 - step 134 of 192 - 430 active elements (570 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 09:30:00 - step 135 of 192 - 427 active elements (573 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 09:45:00 - step 136 of 192 - 420 active elements (580 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 10:00:00 - step 137 of 192 - 414 active elements (586 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 10:15:00 - step 138 of 192 - 406 active elements (594 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 10:30:00 - step 139 of 192 - 400 active elements (600 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 10:45:00 - step 140 of 192 - 395 active elements (605 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 11:00:00 - step 141 of 192 - 390 active elements (610 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 11:15:00 - step 142 of 192 - 388 active elements (612 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 11:30:00 - step 143 of 192 - 385 active elements (615 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 11:45:00 - step 144 of 192 - 381 active elements (619 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 12:00:00 - step 145 of 192 - 378 active elements (622 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 12:15:00 - step 146 of 192 - 374 active elements (626 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 12:30:00 - step 147 of 192 - 370 active elements (630 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 12:45:00 - step 148 of 192 - 367 active elements (633 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 13:00:00 - step 149 of 192 - 359 active elements (641 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 13:15:00 - step 150 of 192 - 354 active elements (646 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 13:30:00 - step 151 of 192 - 345 active elements (655 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 13:45:00 - step 152 of 192 - 342 active elements (658 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 14:00:00 - step 153 of 192 - 338 active elements (662 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 14:15:00 - step 154 of 192 - 334 active elements (666 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 14:30:00 - step 155 of 192 - 329 active elements (671 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 14:45:00 - step 156 of 192 - 326 active elements (674 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 15:00:00 - step 157 of 192 - 323 active elements (677 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 15:15:00 - step 158 of 192 - 318 active elements (682 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 15:30:00 - step 159 of 192 - 312 active elements (688 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 15:45:00 - step 160 of 192 - 306 active elements (694 deactivated)
12:51:05 INFO opendrift.models.basemodel:2038: 2015-11-17 16:00:00 - step 161 of 192 - 303 active elements (697 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 16:15:00 - step 162 of 192 - 298 active elements (702 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 16:30:00 - step 163 of 192 - 295 active elements (705 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 16:45:00 - step 164 of 192 - 290 active elements (710 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 17:00:00 - step 165 of 192 - 290 active elements (710 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 17:15:00 - step 166 of 192 - 285 active elements (715 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 17:30:00 - step 167 of 192 - 283 active elements (717 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 17:45:00 - step 168 of 192 - 278 active elements (722 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 18:00:00 - step 169 of 192 - 274 active elements (726 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 18:15:00 - step 170 of 192 - 273 active elements (727 deactivated)
12:51:06 WARNING opendrift.models.basemodel:2328: Missing variables: ['x_sea_water_velocity', 'y_sea_water_velocity']
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 18:30:00 - step 171 of 192 - 269 active elements (731 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 18:45:00 - step 172 of 192 - 266 active elements (734 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 19:00:00 - step 173 of 192 - 262 active elements (738 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 19:15:00 - step 174 of 192 - 257 active elements (743 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 19:30:00 - step 175 of 192 - 254 active elements (746 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 19:45:00 - step 176 of 192 - 251 active elements (749 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 20:00:00 - step 177 of 192 - 250 active elements (750 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 20:15:00 - step 178 of 192 - 248 active elements (752 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 20:30:00 - step 179 of 192 - 246 active elements (754 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 20:45:00 - step 180 of 192 - 242 active elements (758 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 21:00:00 - step 181 of 192 - 242 active elements (758 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 21:15:00 - step 182 of 192 - 238 active elements (762 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 21:30:00 - step 183 of 192 - 236 active elements (764 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 21:45:00 - step 184 of 192 - 233 active elements (767 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 22:00:00 - step 185 of 192 - 233 active elements (767 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 22:15:00 - step 186 of 192 - 231 active elements (769 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 22:30:00 - step 187 of 192 - 230 active elements (770 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 22:45:00 - step 188 of 192 - 226 active elements (774 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 23:00:00 - step 189 of 192 - 223 active elements (777 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 23:15:00 - step 190 of 192 - 221 active elements (779 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 23:30:00 - step 191 of 192 - 217 active elements (783 deactivated)
12:51:06 INFO opendrift.models.basemodel:2038: 2015-11-17 23:45:00 - step 192 of 192 - 216 active elements (784 deactivated)
12:51:06 WARNING opendrift.models.basemodel:2411: Plotting fast. This will make your plots less accurate.
(<GeoAxes: title={'center': 'OpenDrift - Leeway (LIFE-RAFT-NB-1)\n2015-11-16 00:00 to 2015-11-18 00:00 UTC (49 steps)'}>, <Figure size 480.032x1100 with 1 Axes>)
Then a simulation where we add a constant x_wind component to cause stranding.
reader_onshore = reader_constant.Reader({ 'x_wind' : 10., 'y_wind': 0 })
If we just add all readers OpenDrift will read the wind from the first available reader, so we combine the wind reader and add them in order so that the combined reader is used first, then the actual sources are used next.
r0 = reader_onshore + reader_arome
print(r0)
lw2 = Leeway(loglevel=20) # Set loglevel to 0 for debug information
lw2.add_reader([r0, reader_arome, reader_norkyst])
===========================
Reader: Combined(constant_reader | /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/arome_subset_16Nov2015.nc)
Projection:
+proj=latlong
Coverage: [degrees]
xmin: -180.000000 xmax: 180.000000
ymin: -90.000000 ymax: 90.000000
Corners (lon, lat):
(-180.00, 90.00) (180.00, 90.00)
(-180.00, -90.00) (180.00, -90.00)
Vertical levels [m]:
Not specified
Available time range:
start: 2015-11-16 00:00:00 end: 2015-11-18 18:00:00 step: None
Variables:
wind_speed
y_wind
x_wind
===========================
12:51:13 INFO opendrift.models.basemodel:515: OpenDriftSimulation initialised (version 1.11.13 / v1.11.13-99-gd2132d3)
Seed leeway elements at defined position and time
object_type = 26 # 26 = Life-raft, no ballast
lw2.seed_elements(lon=4.5, lat=59.6, radius=100, number=1000,
time=reader_arome.start_time, object_type=object_type)
12:51:13 INFO opendrift.models.leeway:319: Seeding elements of object type 26: LIFE-RAFT-NB-1 (Life-raft, no ballast (NB) system, general (mean values))
12:51:13 INFO opendrift.models.basemodel.environment:218: Adding a dynamical landmask with max. priority based on assumed maximum speed of 5.0 m/s. Adding a customised landmask may be faster...
12:51:13 INFO opendrift.models.basemodel.environment:245: Fallback values will be used for the following variables which have no readers:
12:51:13 INFO opendrift.models.basemodel.environment:248: sea_surface_wave_stokes_drift_x_velocity: 0.000000
12:51:13 INFO opendrift.models.basemodel.environment:248: sea_surface_wave_stokes_drift_y_velocity: 0.000000
Running model
lw2.run(duration=timedelta(hours=48), time_step=900, time_step_output=3600)
12:51:13 INFO opendrift.models.basemodel:936: Using existing reader for land_binary_mask
12:51:13 INFO opendrift.models.basemodel:947: All points are in ocean
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 00:00:00 - step 1 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 00:15:00 - step 2 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 00:30:00 - step 3 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 00:45:00 - step 4 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 01:00:00 - step 5 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 01:15:00 - step 6 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 01:30:00 - step 7 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 01:45:00 - step 8 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 02:00:00 - step 9 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 02:15:00 - step 10 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 02:30:00 - step 11 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 02:45:00 - step 12 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 03:00:00 - step 13 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 03:15:00 - step 14 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 03:30:00 - step 15 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 03:45:00 - step 16 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 04:00:00 - step 17 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 04:15:00 - step 18 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 04:30:00 - step 19 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 04:45:00 - step 20 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 05:00:00 - step 21 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 05:15:00 - step 22 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 05:30:00 - step 23 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 05:45:00 - step 24 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 06:00:00 - step 25 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 06:15:00 - step 26 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 06:30:00 - step 27 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 06:45:00 - step 28 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 07:00:00 - step 29 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 07:15:00 - step 30 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 07:30:00 - step 31 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 07:45:00 - step 32 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 08:00:00 - step 33 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 08:15:00 - step 34 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 08:30:00 - step 35 of 192 - 1000 active elements (0 deactivated)
12:51:13 INFO opendrift.models.basemodel:2038: 2015-11-16 08:45:00 - step 36 of 192 - 1000 active elements (0 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 09:00:00 - step 37 of 192 - 1000 active elements (0 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 09:15:00 - step 38 of 192 - 1000 active elements (0 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 09:30:00 - step 39 of 192 - 1000 active elements (0 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 09:45:00 - step 40 of 192 - 1000 active elements (0 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 10:00:00 - step 41 of 192 - 1000 active elements (0 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 10:15:00 - step 42 of 192 - 1000 active elements (0 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 10:30:00 - step 43 of 192 - 1000 active elements (0 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 10:45:00 - step 44 of 192 - 1000 active elements (0 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 11:00:00 - step 45 of 192 - 1000 active elements (0 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 11:15:00 - step 46 of 192 - 1000 active elements (0 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 11:30:00 - step 47 of 192 - 1000 active elements (0 deactivated)
/root/project/opendrift/readers/interpolation/interpolators.py:17: RuntimeWarning: overflow encountered in cast
data[mask] = np.finfo(np.float64).min
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 11:45:00 - step 48 of 192 - 1000 active elements (0 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 12:00:00 - step 49 of 192 - 1000 active elements (0 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 12:15:00 - step 50 of 192 - 1000 active elements (0 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 12:30:00 - step 51 of 192 - 1000 active elements (0 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 12:45:00 - step 52 of 192 - 999 active elements (1 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 13:00:00 - step 53 of 192 - 992 active elements (8 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 13:15:00 - step 54 of 192 - 987 active elements (13 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 13:30:00 - step 55 of 192 - 978 active elements (22 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 13:45:00 - step 56 of 192 - 965 active elements (35 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 14:00:00 - step 57 of 192 - 939 active elements (61 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 14:15:00 - step 58 of 192 - 915 active elements (85 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 14:30:00 - step 59 of 192 - 887 active elements (113 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 14:45:00 - step 60 of 192 - 847 active elements (153 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 15:00:00 - step 61 of 192 - 818 active elements (182 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 15:15:00 - step 62 of 192 - 788 active elements (212 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 15:30:00 - step 63 of 192 - 748 active elements (252 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 15:45:00 - step 64 of 192 - 707 active elements (293 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 16:00:00 - step 65 of 192 - 674 active elements (326 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 16:15:00 - step 66 of 192 - 646 active elements (354 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 16:30:00 - step 67 of 192 - 617 active elements (383 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 16:45:00 - step 68 of 192 - 585 active elements (415 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 17:00:00 - step 69 of 192 - 557 active elements (443 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 17:15:00 - step 70 of 192 - 532 active elements (468 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 17:30:00 - step 71 of 192 - 494 active elements (506 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 17:45:00 - step 72 of 192 - 468 active elements (532 deactivated)
12:51:14 INFO opendrift.models.basemodel:2038: 2015-11-16 18:00:00 - step 73 of 192 - 446 active elements (554 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 18:15:00 - step 74 of 192 - 428 active elements (572 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 18:30:00 - step 75 of 192 - 410 active elements (590 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 18:45:00 - step 76 of 192 - 385 active elements (615 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 19:00:00 - step 77 of 192 - 353 active elements (647 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 19:15:00 - step 78 of 192 - 329 active elements (671 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 19:30:00 - step 79 of 192 - 302 active elements (698 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 19:45:00 - step 80 of 192 - 276 active elements (724 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 20:00:00 - step 81 of 192 - 265 active elements (735 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 20:15:00 - step 82 of 192 - 251 active elements (749 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 20:30:00 - step 83 of 192 - 241 active elements (759 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 20:45:00 - step 84 of 192 - 229 active elements (771 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 21:00:00 - step 85 of 192 - 209 active elements (791 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 21:15:00 - step 86 of 192 - 195 active elements (805 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 21:30:00 - step 87 of 192 - 180 active elements (820 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 21:45:00 - step 88 of 192 - 173 active elements (827 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 22:00:00 - step 89 of 192 - 165 active elements (835 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 22:15:00 - step 90 of 192 - 155 active elements (845 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 22:30:00 - step 91 of 192 - 147 active elements (853 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 22:45:00 - step 92 of 192 - 143 active elements (857 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 23:00:00 - step 93 of 192 - 129 active elements (871 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 23:15:00 - step 94 of 192 - 119 active elements (881 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 23:30:00 - step 95 of 192 - 114 active elements (886 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-16 23:45:00 - step 96 of 192 - 109 active elements (891 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 00:00:00 - step 97 of 192 - 106 active elements (894 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 00:15:00 - step 98 of 192 - 98 active elements (902 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 00:30:00 - step 99 of 192 - 90 active elements (910 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 00:45:00 - step 100 of 192 - 85 active elements (915 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 01:00:00 - step 101 of 192 - 79 active elements (921 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 01:15:00 - step 102 of 192 - 69 active elements (931 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 01:30:00 - step 103 of 192 - 64 active elements (936 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 01:45:00 - step 104 of 192 - 58 active elements (942 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 02:00:00 - step 105 of 192 - 55 active elements (945 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 02:15:00 - step 106 of 192 - 52 active elements (948 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 02:30:00 - step 107 of 192 - 49 active elements (951 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 02:45:00 - step 108 of 192 - 45 active elements (955 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 03:00:00 - step 109 of 192 - 40 active elements (960 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 03:15:00 - step 110 of 192 - 38 active elements (962 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 03:30:00 - step 111 of 192 - 36 active elements (964 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 03:45:00 - step 112 of 192 - 35 active elements (965 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 04:00:00 - step 113 of 192 - 31 active elements (969 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 04:15:00 - step 114 of 192 - 30 active elements (970 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 04:30:00 - step 115 of 192 - 28 active elements (972 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 04:45:00 - step 116 of 192 - 26 active elements (974 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 05:00:00 - step 117 of 192 - 25 active elements (975 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 05:15:00 - step 118 of 192 - 22 active elements (978 deactivated)
12:51:15 INFO opendrift.models.basemodel:2038: 2015-11-17 05:30:00 - step 119 of 192 - 21 active elements (979 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 05:45:00 - step 120 of 192 - 20 active elements (980 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 06:00:00 - step 121 of 192 - 20 active elements (980 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 06:15:00 - step 122 of 192 - 19 active elements (981 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 06:30:00 - step 123 of 192 - 19 active elements (981 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 06:45:00 - step 124 of 192 - 18 active elements (982 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 07:00:00 - step 125 of 192 - 17 active elements (983 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 07:15:00 - step 126 of 192 - 16 active elements (984 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 07:30:00 - step 127 of 192 - 15 active elements (985 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 07:45:00 - step 128 of 192 - 13 active elements (987 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 08:00:00 - step 129 of 192 - 13 active elements (987 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 08:15:00 - step 130 of 192 - 12 active elements (988 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 08:30:00 - step 131 of 192 - 12 active elements (988 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 08:45:00 - step 132 of 192 - 12 active elements (988 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 09:00:00 - step 133 of 192 - 12 active elements (988 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 09:15:00 - step 134 of 192 - 12 active elements (988 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 09:30:00 - step 135 of 192 - 12 active elements (988 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 09:45:00 - step 136 of 192 - 11 active elements (989 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 10:00:00 - step 137 of 192 - 11 active elements (989 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 10:15:00 - step 138 of 192 - 10 active elements (990 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 10:30:00 - step 139 of 192 - 9 active elements (991 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 10:45:00 - step 140 of 192 - 9 active elements (991 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 11:00:00 - step 141 of 192 - 9 active elements (991 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 11:15:00 - step 142 of 192 - 7 active elements (993 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 11:30:00 - step 143 of 192 - 7 active elements (993 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 11:45:00 - step 144 of 192 - 7 active elements (993 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 12:00:00 - step 145 of 192 - 7 active elements (993 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 12:15:00 - step 146 of 192 - 7 active elements (993 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 12:30:00 - step 147 of 192 - 7 active elements (993 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 12:45:00 - step 148 of 192 - 7 active elements (993 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 13:00:00 - step 149 of 192 - 6 active elements (994 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 13:15:00 - step 150 of 192 - 6 active elements (994 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 13:30:00 - step 151 of 192 - 6 active elements (994 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 13:45:00 - step 152 of 192 - 6 active elements (994 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 14:00:00 - step 153 of 192 - 6 active elements (994 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 14:15:00 - step 154 of 192 - 6 active elements (994 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 14:30:00 - step 155 of 192 - 6 active elements (994 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 14:45:00 - step 156 of 192 - 6 active elements (994 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 15:00:00 - step 157 of 192 - 5 active elements (995 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 15:15:00 - step 158 of 192 - 3 active elements (997 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 15:30:00 - step 159 of 192 - 3 active elements (997 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 15:45:00 - step 160 of 192 - 3 active elements (997 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 16:00:00 - step 161 of 192 - 3 active elements (997 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 16:15:00 - step 162 of 192 - 3 active elements (997 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 16:30:00 - step 163 of 192 - 3 active elements (997 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 16:45:00 - step 164 of 192 - 3 active elements (997 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 17:00:00 - step 165 of 192 - 3 active elements (997 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 17:15:00 - step 166 of 192 - 3 active elements (997 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 17:30:00 - step 167 of 192 - 3 active elements (997 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 17:45:00 - step 168 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 18:00:00 - step 169 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 18:15:00 - step 170 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 18:30:00 - step 171 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 18:45:00 - step 172 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 19:00:00 - step 173 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 19:15:00 - step 174 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 19:30:00 - step 175 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 19:45:00 - step 176 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 20:00:00 - step 177 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 20:15:00 - step 178 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 20:30:00 - step 179 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 20:45:00 - step 180 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 21:00:00 - step 181 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 21:15:00 - step 182 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 21:30:00 - step 183 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 21:45:00 - step 184 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 22:00:00 - step 185 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 22:15:00 - step 186 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 22:30:00 - step 187 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 22:45:00 - step 188 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 23:00:00 - step 189 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 23:15:00 - step 190 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 23:30:00 - step 191 of 192 - 2 active elements (998 deactivated)
12:51:16 INFO opendrift.models.basemodel:2038: 2015-11-17 23:45:00 - step 192 of 192 - 2 active elements (998 deactivated)
Print and plot results
print(lw2)
lw2.plot(fast=True)
===========================
--------------------
Reader performance:
--------------------
Combined(constant_reader | /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/arome_subset_16Nov2015.nc)
--------------------
/root/project/tests/test_data/16Nov2015_NorKyst_z_surface/arome_subset_16Nov2015.nc
0:00:01.6 total
0:00:00.0 preparing
0:00:00.3 reading
0:00:00.1 interpolation
0:00:00.0 interpolation_time
0:00:01.2 rotating vectors
0:00:00.0 masking
--------------------
/root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc
0:00:03.1 total
0:00:00.0 preparing
0:00:00.5 reading
0:00:00.2 interpolation
0:00:00.0 interpolation_time
0:00:02.5 rotating vectors
0:00:00.0 masking
--------------------
global_landmask
0:00:00.1 total
0:00:00.0 preparing
0:00:00.0 reading
0:00:00.0 masking
--------------------
Performance:
3.8 total time
0.1 configuration
0.0 preparing main loop
0.0 moving elements to ocean
3.6 main loop
0.1 updating elements
0.0 cleaning up
--------------------
===========================
Model: Leeway (OpenDrift version 1.11.13)
2 active LeewayObj particles (998 deactivated, 0 scheduled)
-------------------
Environment variables:
-----
x_wind
y_wind
1) Combined(constant_reader | /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/arome_subset_16Nov2015.nc)
2) /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/arome_subset_16Nov2015.nc
-----
x_sea_water_velocity
y_sea_water_velocity
1) /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc
-----
land_binary_mask
1) global_landmask
-----
Readers not added for the following variables:
sea_surface_wave_stokes_drift_x_velocity
sea_surface_wave_stokes_drift_y_velocity
Discarded readers:
Time:
Start: 2015-11-16 00:00:00 UTC
Present: 2015-11-18 00:00:00 UTC
Calculation steps: 192 * 0:15:00 - total time: 2 days, 0:00:00
Output steps: 49 * 1:00:00
===========================
12:51:17 WARNING opendrift.models.basemodel:2411: Plotting fast. This will make your plots less accurate.
(<GeoAxes: title={'center': 'OpenDrift - Leeway (LIFE-RAFT-NB-1)\n2015-11-16 00:00 to 2015-11-18 00:00 UTC (49 steps)'}>, <Figure size 458.219x1100 with 1 Axes>)
The first simulation compared to the second with extra wind:
lw.plot(fast=True, compare=lw2)
12:51:22 WARNING opendrift.models.basemodel:2411: Plotting fast. This will make your plots less accurate.
(<GeoAxes: title={'center': 'OpenDrift - Leeway (LIFE-RAFT-NB-1)\n2015-11-16 00:00 to 2015-11-18 00:00 UTC (49 steps)'}>, <Figure size 494.554x1100 with 1 Axes>)
Total running time of the script: (0 minutes 43.382 seconds)