Runge-Kutta scheme on Norkyst model

Illustrating the difference between Euler and Runge-Kutta propagation schemes, using a “real” current fields from the NorKyst800 model

from opendrift.readers import reader_global_landmask
from opendrift.readers import reader_netCDF_CF_generic
from opendrift.models.oceandrift import OceanDrift

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

reader_norkyst = reader_netCDF_CF_generic.Reader(o.test_data_folder() +
    '16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc')
time = reader_norkyst.start_time

reader_landmask = reader_global_landmask.Reader()

o.add_reader([reader_norkyst, reader_landmask])
lon = 4.5; lat = 60.0;
13:13:56 INFO    opendrift.models.basemodel:529: OpenDriftSimulation initialised (version 1.11.2 / v1.11.2-11-g21e4c60)
13:13:56 INFO    opendrift.readers.reader_netCDF_CF_generic:102: Opening dataset: /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc
13:13:57 INFO    opendrift.readers.reader_netCDF_CF_generic:314: Detected dimensions: {'x': 'X', 'y': 'Y', 'z': 'depth', 'time': 'time'}

First run, with Euler scheme:

o.set_config('drift:advection_scheme', 'euler')
o.seed_elements(lon, lat, radius=0, number=1, time=time)
o.run(steps=66*2, time_step=1800)
13:14:03 INFO    opendrift.models.basemodel.environment:247: Fallback values will be used for the following variables which have no readers:
13:14:03 INFO    opendrift.models.basemodel.environment:250:    sea_surface_height: 0.000000
13:14:03 INFO    opendrift.models.basemodel.environment:250:    x_wind: 0.000000
13:14:03 INFO    opendrift.models.basemodel.environment:250:    y_wind: 0.000000
13:14:03 INFO    opendrift.models.basemodel.environment:250:    upward_sea_water_velocity: 0.000000
13:14:03 INFO    opendrift.models.basemodel.environment:250:    ocean_vertical_diffusivity: 0.000000
13:14:03 INFO    opendrift.models.basemodel.environment:250:    sea_surface_wave_significant_height: 0.000000
13:14:03 INFO    opendrift.models.basemodel.environment:250:    sea_surface_wave_stokes_drift_x_velocity: 0.000000
13:14:03 INFO    opendrift.models.basemodel.environment:250:    sea_surface_wave_stokes_drift_y_velocity: 0.000000
13:14:03 INFO    opendrift.models.basemodel.environment:250:    sea_surface_wave_period_at_variance_spectral_density_maximum: 0.000000
13:14:03 INFO    opendrift.models.basemodel.environment:250:    sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment: 0.000000
13:14:03 INFO    opendrift.models.basemodel.environment:250:    sea_surface_swell_wave_to_direction: 0.000000
13:14:03 INFO    opendrift.models.basemodel.environment:250:    sea_surface_swell_wave_peak_period_from_variance_spectral_density: 0.000000
13:14:03 INFO    opendrift.models.basemodel.environment:250:    sea_surface_swell_wave_significant_height: 0.000000
13:14:03 INFO    opendrift.models.basemodel.environment:250:    sea_surface_wind_wave_to_direction: 0.000000
13:14:03 INFO    opendrift.models.basemodel.environment:250:    sea_surface_wind_wave_mean_period: 0.000000
13:14:03 INFO    opendrift.models.basemodel.environment:250:    sea_surface_wind_wave_significant_height: 0.000000
13:14:03 INFO    opendrift.models.basemodel.environment:250:    surface_downward_x_stress: 0.000000
13:14:03 INFO    opendrift.models.basemodel.environment:250:    surface_downward_y_stress: 0.000000
13:14:03 INFO    opendrift.models.basemodel.environment:250:    turbulent_kinetic_energy: 0.000000
13:14:03 INFO    opendrift.models.basemodel.environment:250:    turbulent_generic_length_scale: 0.000000
13:14:03 INFO    opendrift.models.basemodel.environment:250:    ocean_mixed_layer_thickness: 50.000000
13:14:03 INFO    opendrift.models.basemodel.environment:250:    sea_floor_depth_below_sea_level: 10000.000000
13:14:03 INFO    opendrift.models.basemodel:908: Using existing reader for land_binary_mask
13:14:03 INFO    opendrift.models.basemodel:920: All points are in ocean
13:14:03 INFO    opendrift.models.basemodel:2011: 2015-11-16 00:00:00 - step 1 of 132 - 1 active elements (0 deactivated)
13:14:03 INFO    opendrift.models.basemodel:2011: 2015-11-16 00:30:00 - step 2 of 132 - 1 active elements (0 deactivated)
13:14:03 INFO    opendrift.models.basemodel:2011: 2015-11-16 01:00:00 - step 3 of 132 - 1 active elements (0 deactivated)
13:14:03 INFO    opendrift.models.basemodel:2011: 2015-11-16 01:30:00 - step 4 of 132 - 1 active elements (0 deactivated)
13:14:03 INFO    opendrift.models.basemodel:2011: 2015-11-16 02:00:00 - step 5 of 132 - 1 active elements (0 deactivated)
13:14:03 INFO    opendrift.models.basemodel:2011: 2015-11-16 02:30:00 - step 6 of 132 - 1 active elements (0 deactivated)
13:14:03 INFO    opendrift.models.basemodel:2011: 2015-11-16 03:00:00 - step 7 of 132 - 1 active elements (0 deactivated)
13:14:03 INFO    opendrift.models.basemodel:2011: 2015-11-16 03:30:00 - step 8 of 132 - 1 active elements (0 deactivated)
13:14:03 INFO    opendrift.models.basemodel:2011: 2015-11-16 04:00:00 - step 9 of 132 - 1 active elements (0 deactivated)
13:14:03 INFO    opendrift.models.basemodel:2011: 2015-11-16 04:30:00 - step 10 of 132 - 1 active elements (0 deactivated)
13:14:03 INFO    opendrift.models.basemodel:2011: 2015-11-16 05:00:00 - step 11 of 132 - 1 active elements (0 deactivated)
13:14:03 INFO    opendrift.models.basemodel:2011: 2015-11-16 05:30:00 - step 12 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 06:00:00 - step 13 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 06:30:00 - step 14 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 07:00:00 - step 15 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 07:30:00 - step 16 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 08:00:00 - step 17 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 08:30:00 - step 18 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 09:00:00 - step 19 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 09:30:00 - step 20 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 10:00:00 - step 21 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 10:30:00 - step 22 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 11:00:00 - step 23 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 11:30:00 - step 24 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 12:00:00 - step 25 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 12:30:00 - step 26 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 13:00:00 - step 27 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 13:30:00 - step 28 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 14:00:00 - step 29 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 14:30:00 - step 30 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 15:00:00 - step 31 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 15:30:00 - step 32 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 16:00:00 - step 33 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 16:30:00 - step 34 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 17:00:00 - step 35 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 17:30:00 - step 36 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 18:00:00 - step 37 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 18:30:00 - step 38 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 19:00:00 - step 39 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 19:30:00 - step 40 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 20:00:00 - step 41 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 20:30:00 - step 42 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 21:00:00 - step 43 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 21:30:00 - step 44 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 22:00:00 - step 45 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 22:30:00 - step 46 of 132 - 1 active elements (0 deactivated)
13:14:04 INFO    opendrift.models.basemodel:2011: 2015-11-16 23:00:00 - step 47 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-16 23:30:00 - step 48 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 00:00:00 - step 49 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 00:30:00 - step 50 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 01:00:00 - step 51 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 01:30:00 - step 52 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 02:00:00 - step 53 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 02:30:00 - step 54 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 03:00:00 - step 55 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 03:30:00 - step 56 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 04:00:00 - step 57 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 04:30:00 - step 58 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 05:00:00 - step 59 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 05:30:00 - step 60 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 06:00:00 - step 61 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 06:30:00 - step 62 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 07:00:00 - step 63 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 07:30:00 - step 64 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 08:00:00 - step 65 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 08:30:00 - step 66 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 09:00:00 - step 67 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 09:30:00 - step 68 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 10:00:00 - step 69 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 10:30:00 - step 70 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 11:00:00 - step 71 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 11:30:00 - step 72 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 12:00:00 - step 73 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 12:30:00 - step 74 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 13:00:00 - step 75 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 13:30:00 - step 76 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 14:00:00 - step 77 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 14:30:00 - step 78 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 15:00:00 - step 79 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 15:30:00 - step 80 of 132 - 1 active elements (0 deactivated)
13:14:05 INFO    opendrift.models.basemodel:2011: 2015-11-17 16:00:00 - step 81 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-17 16:30:00 - step 82 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-17 17:00:00 - step 83 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-17 17:30:00 - step 84 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-17 18:00:00 - step 85 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-17 18:30:00 - step 86 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-17 19:00:00 - step 87 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-17 19:30:00 - step 88 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-17 20:00:00 - step 89 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-17 20:30:00 - step 90 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-17 21:00:00 - step 91 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-17 21:30:00 - step 92 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-17 22:00:00 - step 93 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-17 22:30:00 - step 94 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-17 23:00:00 - step 95 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-17 23:30:00 - step 96 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-18 00:00:00 - step 97 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-18 00:30:00 - step 98 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-18 01:00:00 - step 99 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-18 01:30:00 - step 100 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-18 02:00:00 - step 101 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-18 02:30:00 - step 102 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-18 03:00:00 - step 103 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-18 03:30:00 - step 104 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-18 04:00:00 - step 105 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-18 04:30:00 - step 106 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-18 05:00:00 - step 107 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-18 05:30:00 - step 108 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-18 06:00:00 - step 109 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-18 06:30:00 - step 110 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-18 07:00:00 - step 111 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-18 07:30:00 - step 112 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-18 08:00:00 - step 113 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-18 08:30:00 - step 114 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-18 09:00:00 - step 115 of 132 - 1 active elements (0 deactivated)
13:14:06 INFO    opendrift.models.basemodel:2011: 2015-11-18 09:30:00 - step 116 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-18 10:00:00 - step 117 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-18 10:30:00 - step 118 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-18 11:00:00 - step 119 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-18 11:30:00 - step 120 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-18 12:00:00 - step 121 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-18 12:30:00 - step 122 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-18 13:00:00 - step 123 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-18 13:30:00 - step 124 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-18 14:00:00 - step 125 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-18 14:30:00 - step 126 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-18 15:00:00 - step 127 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-18 15:30:00 - step 128 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-18 16:00:00 - step 129 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-18 16:30:00 - step 130 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-18 17:00:00 - step 131 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-18 17:30:00 - step 132 of 132 - 1 active elements (0 deactivated)

Second run, with Runge-Kutta scheme:

o2 = OceanDrift(loglevel=20)  # Set loglevel to 0 for debug information
o2.add_reader([reader_norkyst, reader_landmask])
o2.set_config('drift:advection_scheme', 'runge-kutta')
o2.seed_elements(lon, lat, radius=0, number=1, time=time)
o2.run(steps=66*2, time_step=1800)
13:14:07 INFO    opendrift.models.basemodel:529: OpenDriftSimulation initialised (version 1.11.2 / v1.11.2-11-g21e4c60)
13:14:07 INFO    opendrift.models.basemodel.environment:247: Fallback values will be used for the following variables which have no readers:
13:14:07 INFO    opendrift.models.basemodel.environment:250:    sea_surface_height: 0.000000
13:14:07 INFO    opendrift.models.basemodel.environment:250:    x_wind: 0.000000
13:14:07 INFO    opendrift.models.basemodel.environment:250:    y_wind: 0.000000
13:14:07 INFO    opendrift.models.basemodel.environment:250:    upward_sea_water_velocity: 0.000000
13:14:07 INFO    opendrift.models.basemodel.environment:250:    ocean_vertical_diffusivity: 0.000000
13:14:07 INFO    opendrift.models.basemodel.environment:250:    sea_surface_wave_significant_height: 0.000000
13:14:07 INFO    opendrift.models.basemodel.environment:250:    sea_surface_wave_stokes_drift_x_velocity: 0.000000
13:14:07 INFO    opendrift.models.basemodel.environment:250:    sea_surface_wave_stokes_drift_y_velocity: 0.000000
13:14:07 INFO    opendrift.models.basemodel.environment:250:    sea_surface_wave_period_at_variance_spectral_density_maximum: 0.000000
13:14:07 INFO    opendrift.models.basemodel.environment:250:    sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment: 0.000000
13:14:07 INFO    opendrift.models.basemodel.environment:250:    sea_surface_swell_wave_to_direction: 0.000000
13:14:07 INFO    opendrift.models.basemodel.environment:250:    sea_surface_swell_wave_peak_period_from_variance_spectral_density: 0.000000
13:14:07 INFO    opendrift.models.basemodel.environment:250:    sea_surface_swell_wave_significant_height: 0.000000
13:14:07 INFO    opendrift.models.basemodel.environment:250:    sea_surface_wind_wave_to_direction: 0.000000
13:14:07 INFO    opendrift.models.basemodel.environment:250:    sea_surface_wind_wave_mean_period: 0.000000
13:14:07 INFO    opendrift.models.basemodel.environment:250:    sea_surface_wind_wave_significant_height: 0.000000
13:14:07 INFO    opendrift.models.basemodel.environment:250:    surface_downward_x_stress: 0.000000
13:14:07 INFO    opendrift.models.basemodel.environment:250:    surface_downward_y_stress: 0.000000
13:14:07 INFO    opendrift.models.basemodel.environment:250:    turbulent_kinetic_energy: 0.000000
13:14:07 INFO    opendrift.models.basemodel.environment:250:    turbulent_generic_length_scale: 0.000000
13:14:07 INFO    opendrift.models.basemodel.environment:250:    ocean_mixed_layer_thickness: 50.000000
13:14:07 INFO    opendrift.models.basemodel.environment:250:    sea_floor_depth_below_sea_level: 10000.000000
13:14:07 INFO    opendrift.models.basemodel:908: Using existing reader for land_binary_mask
13:14:07 INFO    opendrift.models.basemodel:920: All points are in ocean
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-16 00:00:00 - step 1 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-16 00:30:00 - step 2 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-16 01:00:00 - step 3 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-16 01:30:00 - step 4 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-16 02:00:00 - step 5 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-16 02:30:00 - step 6 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-16 03:00:00 - step 7 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-16 03:30:00 - step 8 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-16 04:00:00 - step 9 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-16 04:30:00 - step 10 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-16 05:00:00 - step 11 of 132 - 1 active elements (0 deactivated)
13:14:07 INFO    opendrift.models.basemodel:2011: 2015-11-16 05:30:00 - step 12 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 06:00:00 - step 13 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 06:30:00 - step 14 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 07:00:00 - step 15 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 07:30:00 - step 16 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 08:00:00 - step 17 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 08:30:00 - step 18 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 09:00:00 - step 19 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 09:30:00 - step 20 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 10:00:00 - step 21 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 10:30:00 - step 22 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 11:00:00 - step 23 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 11:30:00 - step 24 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 12:00:00 - step 25 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 12:30:00 - step 26 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 13:00:00 - step 27 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 13:30:00 - step 28 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 14:00:00 - step 29 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 14:30:00 - step 30 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 15:00:00 - step 31 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 15:30:00 - step 32 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 16:00:00 - step 33 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 16:30:00 - step 34 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 17:00:00 - step 35 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 17:30:00 - step 36 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 18:00:00 - step 37 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 18:30:00 - step 38 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 19:00:00 - step 39 of 132 - 1 active elements (0 deactivated)
13:14:08 INFO    opendrift.models.basemodel:2011: 2015-11-16 19:30:00 - step 40 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-16 20:00:00 - step 41 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-16 20:30:00 - step 42 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-16 21:00:00 - step 43 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-16 21:30:00 - step 44 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-16 22:00:00 - step 45 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-16 22:30:00 - step 46 of 132 - 1 active elements (0 deactivated)
13:14:09 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
/root/project/opendrift/readers/interpolation/interpolators.py:17: RuntimeWarning: overflow encountered in cast
  data[mask] = np.finfo(np.float64).min
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-16 23:00:00 - step 47 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-16 23:30:00 - step 48 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 00:00:00 - step 49 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 00:30:00 - step 50 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 01:00:00 - step 51 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 01:30:00 - step 52 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 02:00:00 - step 53 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 02:30:00 - step 54 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 03:00:00 - step 55 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 03:30:00 - step 56 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 04:00:00 - step 57 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 04:30:00 - step 58 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 05:00:00 - step 59 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 05:30:00 - step 60 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 06:00:00 - step 61 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 06:30:00 - step 62 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 07:00:00 - step 63 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 07:30:00 - step 64 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 08:00:00 - step 65 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 08:30:00 - step 66 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 09:00:00 - step 67 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 09:30:00 - step 68 of 132 - 1 active elements (0 deactivated)
13:14:09 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 10:00:00 - step 69 of 132 - 1 active elements (0 deactivated)
13:14:09 INFO    opendrift.models.basemodel:2011: 2015-11-17 10:30:00 - step 70 of 132 - 1 active elements (0 deactivated)
13:14:10 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 11:00:00 - step 71 of 132 - 1 active elements (0 deactivated)
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 11:30:00 - step 72 of 132 - 1 active elements (0 deactivated)
13:14:10 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 12:00:00 - step 73 of 132 - 1 active elements (0 deactivated)
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 12:30:00 - step 74 of 132 - 1 active elements (0 deactivated)
13:14:10 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 13:00:00 - step 75 of 132 - 1 active elements (0 deactivated)
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 13:30:00 - step 76 of 132 - 1 active elements (0 deactivated)
13:14:10 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 14:00:00 - step 77 of 132 - 1 active elements (0 deactivated)
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 14:30:00 - step 78 of 132 - 1 active elements (0 deactivated)
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 15:00:00 - step 79 of 132 - 1 active elements (0 deactivated)
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 15:30:00 - step 80 of 132 - 1 active elements (0 deactivated)
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 16:00:00 - step 81 of 132 - 1 active elements (0 deactivated)
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 16:30:00 - step 82 of 132 - 1 active elements (0 deactivated)
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 17:00:00 - step 83 of 132 - 1 active elements (0 deactivated)
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 17:30:00 - step 84 of 132 - 1 active elements (0 deactivated)
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 18:00:00 - step 85 of 132 - 1 active elements (0 deactivated)
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 18:30:00 - step 86 of 132 - 1 active elements (0 deactivated)
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 19:00:00 - step 87 of 132 - 1 active elements (0 deactivated)
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 19:30:00 - step 88 of 132 - 1 active elements (0 deactivated)
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 20:00:00 - step 89 of 132 - 1 active elements (0 deactivated)
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 20:30:00 - step 90 of 132 - 1 active elements (0 deactivated)
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 21:00:00 - step 91 of 132 - 1 active elements (0 deactivated)
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 21:30:00 - step 92 of 132 - 1 active elements (0 deactivated)
13:14:10 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 22:00:00 - step 93 of 132 - 1 active elements (0 deactivated)
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 22:30:00 - step 94 of 132 - 1 active elements (0 deactivated)
13:14:10 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:14:10 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 23:00:00 - step 95 of 132 - 1 active elements (0 deactivated)
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-17 23:30:00 - step 96 of 132 - 1 active elements (0 deactivated)
13:14:10 WARNING opendrift.readers.basereader.structured:321: 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 (7) must be increased. See `Variables.set_buffer_size`.
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-18 00:00:00 - step 97 of 132 - 1 active elements (0 deactivated)
13:14:10 INFO    opendrift.models.basemodel:2011: 2015-11-18 00:30:00 - step 98 of 132 - 1 active elements (0 deactivated)
13:14:10 WARNING opendrift.models.basemodel:2106: The simulation stopped before requested end time was reached.
13:14:10 INFO    opendrift.models.basemodel:2108: ========================
13:14:10 INFO    opendrift.models.basemodel:2109: End of simulation:
13:14:10 INFO    opendrift.models.basemodel:2110: No more active or scheduled elements, quitting.
13:14:10 INFO    opendrift.models.basemodel:2111: Traceback (most recent call last):
  File "/root/project/opendrift/models/basemodel/__init__.py", line 2073, in run
    raise ValueError(
ValueError: No more active or scheduled elements, quitting.

13:14:10 INFO    opendrift.models.basemodel:2112: 'The simulation stopped before requested end time was reached.'

13:14:10 INFO    opendrift.models.basemodel:2115: ========================

Animate and compare the two runs

o.animation(compare=o2, legend=['Euler scheme', 'Runge-Kutta scheme'], fast=True)
13:14:10 WARNING opendrift.models.basemodel:2378: Plotting fast. This will make your plots less accurate.
/opt/conda/envs/opendrift/lib/python3.11/site-packages/cartopy/mpl/geoaxes.py:1696: UserWarning: No data for colormapping provided via 'c'. Parameters 'cmap' will be ignored
  result = super().scatter(*args, **kwargs)
13:14:13 INFO    opendrift.models.basemodel:4562: Saving animation to /root/project/docs/source/gallery/animations/example_rungekutta_norkyst_0.gif...
13:14:35 INFO    opendrift.models.basemodel:3002: Time to make animation: 0:00:24.265346
../_images/example_rungekutta_norkyst_0.gif

Total running time of the script: (0 minutes 40.941 seconds)

Gallery generated by Sphinx-Gallery