Compare

Comparing two oil drift simulation runs, with and without wind

from datetime import timedelta
from opendrift.readers import reader_netCDF_CF_generic
from opendrift.models.openoil import OpenOil

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

# Arome atmospheric model
reader_arome = reader_netCDF_CF_generic.Reader(o.test_data_folder() +
    '16Nov2015_NorKyst_z_surface/arome_subset_16Nov2015.nc')
# Norkyst ocean model
reader_norkyst = reader_netCDF_CF_generic.Reader(o.test_data_folder() +
    '16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc')

o.add_reader([reader_norkyst, reader_arome])

# Seeding some particles
lon = 4.4; lat = 60.0; # Outside Bergen
time = [reader_arome.start_time,
        reader_arome.start_time + timedelta(hours=30)]
o.seed_elements(lon, lat, radius=50, number=5000, time=time,
                wind_drift_factor=0.03) # 3% wind drift

# Adjusting some configuration
o.set_config('processes:dispersion', False)
o.set_config('processes:evaporation', False)
o.set_config('processes:emulsification', False)
o.set_config('drift:current_uncertainty', .1)
o.set_config('drift:wind_uncertainty', 2)

# Running model
o.run(steps=66, time_step=1800, time_step_output=3600)

# Second run, for comparison
o2 = OpenOil(loglevel=20)  # Set loglevel to 0 for debug information
o2.add_reader([reader_norkyst, reader_arome])
o2.seed_elements(lon, lat, radius=50, number=5000, time=time,
                 wind_drift_factor=0.0) # No wind drift
o2.set_config('processes:dispersion', False)
o2.set_config('processes:evaporation', False)
o2.set_config('processes:emulsification', False)
o2.set_config('drift:current_uncertainty', .1)
o2.set_config('drift:wind_uncertainty', 2)
o2.run(steps=66, time_step=1800, time_step_output=3600)

Out:

13:47:38 INFO    opendrift.models.basemodel: OpenDriftSimulation initialised (version 1.7.1 / v1.7.1-87-g074c1d2)
13:47:38 INFO    opendrift.readers.reader_netCDF_CF_generic: Opening dataset: /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/arome_subset_16Nov2015.nc
13:47:38 INFO    opendrift.readers.reader_netCDF_CF_generic: Opening dataset: /root/project/tests/test_data/16Nov2015_NorKyst_z_surface/norkyst800_subset_16Nov2015.nc
13:47:38 INFO    opendrift.models.openoil: Oil type not specified, using default: AASGARD A 2003
querying DB:
Oil.name ==  'AASGARD A 2003'
13:47:38 INFO    opendrift.models.openoil: Using density 816.6828030078809 and viscosity 3.298187589355751e-05 of oiltype AASGARD A 2003
13:47:38 INFO    opendrift.models.basemodel: Fallback values will be used for the following variables which have no readers:
13:47:38 INFO    opendrift.models.basemodel:    upward_sea_water_velocity: 0.000000
13:47:38 INFO    opendrift.models.basemodel:    sea_surface_wave_significant_height: 0.000000
13:47:38 INFO    opendrift.models.basemodel:    sea_surface_wave_stokes_drift_x_velocity: 0.000000
13:47:38 INFO    opendrift.models.basemodel:    sea_surface_wave_stokes_drift_y_velocity: 0.000000
13:47:38 INFO    opendrift.models.basemodel:    sea_surface_wave_period_at_variance_spectral_density_maximum: 0.000000
13:47:38 INFO    opendrift.models.basemodel:    sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment: 0.000000
13:47:38 INFO    opendrift.models.basemodel:    sea_ice_area_fraction: 0.000000
13:47:38 INFO    opendrift.models.basemodel:    sea_ice_x_velocity: 0.000000
13:47:38 INFO    opendrift.models.basemodel:    sea_ice_y_velocity: 0.000000
13:47:38 INFO    opendrift.models.basemodel:    sea_water_temperature: 10.000000
13:47:38 INFO    opendrift.models.basemodel:    sea_water_salinity: 34.000000
13:47:38 INFO    opendrift.models.basemodel:    sea_floor_depth_below_sea_level: 10000.000000
13:47:38 INFO    opendrift.models.basemodel:    ocean_vertical_diffusivity: 0.020000
13:47:38 INFO    opendrift.models.basemodel: Adding a dynamical landmask with max. priority based on assumed maximum speed of 1.3 m/s. Adding a customised landmask may be faster...
13:47:40 INFO    opendrift.models.basemodel: Using existing reader for land_binary_mask
13:47:40 INFO    opendrift.models.basemodel: All points are in ocean
13:47:40 INFO    opendrift.models.openoil: Oil-water surface tension is 0.028134 Nm
13:47:40 INFO    opendrift.models.basemodel: 2015-11-16 00:00:00 - step 1 of 66 - 84 active elements (0 deactivated)
13:47:41 INFO    opendrift.models.basemodel: 2015-11-16 00:30:00 - step 2 of 66 - 167 active elements (0 deactivated)
13:47:41 INFO    opendrift.models.basemodel: 2015-11-16 01:00:00 - step 3 of 66 - 250 active elements (0 deactivated)
13:47:41 INFO    opendrift.models.basemodel: 2015-11-16 01:30:00 - step 4 of 66 - 334 active elements (0 deactivated)
13:47:41 INFO    opendrift.models.basemodel: 2015-11-16 02:00:00 - step 5 of 66 - 417 active elements (0 deactivated)
13:47:41 INFO    opendrift.models.basemodel: 2015-11-16 02:30:00 - step 6 of 66 - 500 active elements (0 deactivated)
13:47:41 INFO    opendrift.models.basemodel: 2015-11-16 03:00:00 - step 7 of 66 - 584 active elements (0 deactivated)
13:47:41 INFO    opendrift.models.basemodel: 2015-11-16 03:30:00 - step 8 of 66 - 667 active elements (0 deactivated)
13:47:41 INFO    opendrift.models.basemodel: 2015-11-16 04:00:00 - step 9 of 66 - 750 active elements (0 deactivated)
13:47:41 INFO    opendrift.models.basemodel: 2015-11-16 04:30:00 - step 10 of 66 - 834 active elements (0 deactivated)
13:47:41 INFO    opendrift.models.basemodel: 2015-11-16 05:00:00 - step 11 of 66 - 917 active elements (0 deactivated)
13:47:41 INFO    opendrift.models.basemodel: 2015-11-16 05:30:00 - step 12 of 66 - 1000 active elements (0 deactivated)
13:47:42 INFO    opendrift.models.basemodel: 2015-11-16 06:00:00 - step 13 of 66 - 1084 active elements (0 deactivated)
13:47:42 INFO    opendrift.models.basemodel: 2015-11-16 06:30:00 - step 14 of 66 - 1167 active elements (0 deactivated)
13:47:42 INFO    opendrift.models.basemodel: 2015-11-16 07:00:00 - step 15 of 66 - 1250 active elements (0 deactivated)
13:47:42 INFO    opendrift.models.basemodel: 2015-11-16 07:30:00 - step 16 of 66 - 1334 active elements (0 deactivated)
13:47:42 INFO    opendrift.models.basemodel: 2015-11-16 08:00:00 - step 17 of 66 - 1417 active elements (0 deactivated)
13:47:42 INFO    opendrift.models.basemodel: 2015-11-16 08:30:00 - step 18 of 66 - 1500 active elements (0 deactivated)
13:47:42 INFO    opendrift.models.basemodel: 2015-11-16 09:00:00 - step 19 of 66 - 1584 active elements (0 deactivated)
13:47:42 INFO    opendrift.models.basemodel: 2015-11-16 09:30:00 - step 20 of 66 - 1667 active elements (0 deactivated)
13:47:43 INFO    opendrift.models.basemodel: 2015-11-16 10:00:00 - step 21 of 66 - 1750 active elements (0 deactivated)
13:47:43 INFO    opendrift.models.basemodel: 2015-11-16 10:30:00 - step 22 of 66 - 1833 active elements (0 deactivated)
13:47:43 INFO    opendrift.models.basemodel: 2015-11-16 11:00:00 - step 23 of 66 - 1917 active elements (0 deactivated)
13:47:43 INFO    opendrift.models.basemodel: 2015-11-16 11:30:00 - step 24 of 66 - 2000 active elements (0 deactivated)
13:47:43 INFO    opendrift.models.basemodel: 2015-11-16 12:00:00 - step 25 of 66 - 2083 active elements (0 deactivated)
13:47:43 INFO    opendrift.models.basemodel: 2015-11-16 12:30:00 - step 26 of 66 - 2167 active elements (0 deactivated)
13:47:43 INFO    opendrift.models.basemodel: 2015-11-16 13:00:00 - step 27 of 66 - 2250 active elements (0 deactivated)
13:47:44 INFO    opendrift.models.basemodel: 2015-11-16 13:30:00 - step 28 of 66 - 2333 active elements (0 deactivated)
13:47:44 INFO    opendrift.models.basemodel: 2015-11-16 14:00:00 - step 29 of 66 - 2417 active elements (0 deactivated)
13:47:44 INFO    opendrift.models.basemodel: 2015-11-16 14:30:00 - step 30 of 66 - 2500 active elements (0 deactivated)
13:47:44 INFO    opendrift.models.basemodel: 2015-11-16 15:00:00 - step 31 of 66 - 2583 active elements (0 deactivated)
13:47:44 INFO    opendrift.models.basemodel: 2015-11-16 15:30:00 - step 32 of 66 - 2667 active elements (0 deactivated)
13:47:44 INFO    opendrift.models.basemodel: 2015-11-16 16:00:00 - step 33 of 66 - 2750 active elements (0 deactivated)
13:47:45 INFO    opendrift.models.basemodel: 2015-11-16 16:30:00 - step 34 of 66 - 2833 active elements (0 deactivated)
13:47:45 INFO    opendrift.models.basemodel: 2015-11-16 17:00:00 - step 35 of 66 - 2917 active elements (0 deactivated)
13:47:45 INFO    opendrift.models.basemodel: 2015-11-16 17:30:00 - step 36 of 66 - 3000 active elements (0 deactivated)
13:47:45 INFO    opendrift.models.basemodel: 2015-11-16 18:00:00 - step 37 of 66 - 3083 active elements (0 deactivated)
13:47:45 INFO    opendrift.models.basemodel: 2015-11-16 18:30:00 - step 38 of 66 - 3167 active elements (0 deactivated)
13:47:45 INFO    opendrift.models.basemodel: 2015-11-16 19:00:00 - step 39 of 66 - 3250 active elements (0 deactivated)
13:47:46 INFO    opendrift.models.basemodel: 2015-11-16 19:30:00 - step 40 of 66 - 3333 active elements (0 deactivated)
13:47:46 INFO    opendrift.models.basemodel: 2015-11-16 20:00:00 - step 41 of 66 - 3416 active elements (0 deactivated)
13:47:46 INFO    opendrift.models.basemodel: 2015-11-16 20:30:00 - step 42 of 66 - 3500 active elements (0 deactivated)
13:47:46 INFO    opendrift.models.basemodel: 2015-11-16 21:00:00 - step 43 of 66 - 3583 active elements (0 deactivated)
13:47:46 INFO    opendrift.models.basemodel: 2015-11-16 21:30:00 - step 44 of 66 - 3666 active elements (0 deactivated)
13:47:47 INFO    opendrift.models.basemodel: 2015-11-16 22:00:00 - step 45 of 66 - 3750 active elements (0 deactivated)
13:47:47 INFO    opendrift.models.basemodel: 2015-11-16 22:30:00 - step 46 of 66 - 3833 active elements (0 deactivated)
13:47:47 INFO    opendrift.models.basemodel: 2015-11-16 23:00:00 - step 47 of 66 - 3916 active elements (0 deactivated)
13:47:47 INFO    opendrift.models.basemodel: 2015-11-16 23:30:00 - step 48 of 66 - 4000 active elements (0 deactivated)
13:47:47 INFO    opendrift.models.basemodel: 2015-11-17 00:00:00 - step 49 of 66 - 4083 active elements (0 deactivated)
13:47:48 INFO    opendrift.models.basemodel: 2015-11-17 00:30:00 - step 50 of 66 - 4166 active elements (0 deactivated)
13:47:48 INFO    opendrift.models.basemodel: 2015-11-17 01:00:00 - step 51 of 66 - 4250 active elements (0 deactivated)
13:47:48 INFO    opendrift.models.basemodel: 2015-11-17 01:30:00 - step 52 of 66 - 4333 active elements (0 deactivated)
13:47:48 INFO    opendrift.models.basemodel: 2015-11-17 02:00:00 - step 53 of 66 - 4416 active elements (0 deactivated)
13:47:49 INFO    opendrift.models.basemodel: 2015-11-17 02:30:00 - step 54 of 66 - 4500 active elements (0 deactivated)
13:47:49 INFO    opendrift.models.basemodel: 2015-11-17 03:00:00 - step 55 of 66 - 4583 active elements (0 deactivated)
13:47:49 INFO    opendrift.models.basemodel: 2015-11-17 03:30:00 - step 56 of 66 - 4666 active elements (0 deactivated)
13:47:50 INFO    opendrift.models.basemodel: 2015-11-17 04:00:00 - step 57 of 66 - 4750 active elements (0 deactivated)
13:47:50 INFO    opendrift.models.basemodel: 2015-11-17 04:30:00 - step 58 of 66 - 4833 active elements (0 deactivated)
13:47:50 INFO    opendrift.models.basemodel: 2015-11-17 05:00:00 - step 59 of 66 - 4916 active elements (0 deactivated)
13:47:50 INFO    opendrift.models.basemodel: 2015-11-17 05:30:00 - step 60 of 66 - 4999 active elements (0 deactivated)
13:47:51 INFO    opendrift.models.basemodel: 2015-11-17 06:00:00 - step 61 of 66 - 5000 active elements (0 deactivated)
13:47:51 INFO    opendrift.models.basemodel: 2015-11-17 06:30:00 - step 62 of 66 - 5000 active elements (0 deactivated)
13:47:51 INFO    opendrift.models.basemodel: 2015-11-17 07:00:00 - step 63 of 66 - 5000 active elements (0 deactivated)
13:47:51 INFO    opendrift.models.basemodel: 2015-11-17 07:30:00 - step 64 of 66 - 5000 active elements (0 deactivated)
13:47:52 INFO    opendrift.models.basemodel: 2015-11-17 08:00:00 - step 65 of 66 - 5000 active elements (0 deactivated)
13:47:52 INFO    opendrift.models.basemodel: 2015-11-17 08:30:00 - step 66 of 66 - 5000 active elements (0 deactivated)
13:47:52 INFO    opendrift.models.basemodel: OpenDriftSimulation initialised (version 1.7.1 / v1.7.1-87-g074c1d2)
13:47:52 INFO    opendrift.models.openoil: Oil type not specified, using default: AASGARD A 2003
querying DB:
Oil.name ==  'AASGARD A 2003'
13:47:52 INFO    opendrift.models.openoil: Using density 816.6828030078809 and viscosity 3.298187589355751e-05 of oiltype AASGARD A 2003
13:47:52 INFO    opendrift.models.basemodel: Fallback values will be used for the following variables which have no readers:
13:47:52 INFO    opendrift.models.basemodel:    upward_sea_water_velocity: 0.000000
13:47:52 INFO    opendrift.models.basemodel:    sea_surface_wave_significant_height: 0.000000
13:47:52 INFO    opendrift.models.basemodel:    sea_surface_wave_stokes_drift_x_velocity: 0.000000
13:47:52 INFO    opendrift.models.basemodel:    sea_surface_wave_stokes_drift_y_velocity: 0.000000
13:47:52 INFO    opendrift.models.basemodel:    sea_surface_wave_period_at_variance_spectral_density_maximum: 0.000000
13:47:52 INFO    opendrift.models.basemodel:    sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment: 0.000000
13:47:52 INFO    opendrift.models.basemodel:    sea_ice_area_fraction: 0.000000
13:47:52 INFO    opendrift.models.basemodel:    sea_ice_x_velocity: 0.000000
13:47:52 INFO    opendrift.models.basemodel:    sea_ice_y_velocity: 0.000000
13:47:52 INFO    opendrift.models.basemodel:    sea_water_temperature: 10.000000
13:47:52 INFO    opendrift.models.basemodel:    sea_water_salinity: 34.000000
13:47:52 INFO    opendrift.models.basemodel:    sea_floor_depth_below_sea_level: 10000.000000
13:47:52 INFO    opendrift.models.basemodel:    ocean_vertical_diffusivity: 0.020000
13:47:52 INFO    opendrift.models.basemodel: Adding a dynamical landmask with max. priority based on assumed maximum speed of 1.3 m/s. Adding a customised landmask may be faster...
13:47:55 INFO    opendrift.models.basemodel: Using existing reader for land_binary_mask
13:47:55 INFO    opendrift.models.basemodel: All points are in ocean
13:47:55 INFO    opendrift.models.openoil: Oil-water surface tension is 0.028134 Nm
13:47:55 INFO    opendrift.models.basemodel: 2015-11-16 00:00:00 - step 1 of 66 - 84 active elements (0 deactivated)
13:47:55 INFO    opendrift.models.basemodel: 2015-11-16 00:30:00 - step 2 of 66 - 167 active elements (0 deactivated)
13:47:55 INFO    opendrift.models.basemodel: 2015-11-16 01:00:00 - step 3 of 66 - 250 active elements (0 deactivated)
13:47:55 INFO    opendrift.models.basemodel: 2015-11-16 01:30:00 - step 4 of 66 - 334 active elements (0 deactivated)
13:47:55 INFO    opendrift.models.basemodel: 2015-11-16 02:00:00 - step 5 of 66 - 417 active elements (0 deactivated)
13:47:55 INFO    opendrift.models.basemodel: 2015-11-16 02:30:00 - step 6 of 66 - 500 active elements (0 deactivated)
13:47:55 INFO    opendrift.models.basemodel: 2015-11-16 03:00:00 - step 7 of 66 - 584 active elements (0 deactivated)
13:47:55 INFO    opendrift.models.basemodel: 2015-11-16 03:30:00 - step 8 of 66 - 667 active elements (0 deactivated)
13:47:55 INFO    opendrift.models.basemodel: 2015-11-16 04:00:00 - step 9 of 66 - 750 active elements (0 deactivated)
13:47:56 INFO    opendrift.models.basemodel: 2015-11-16 04:30:00 - step 10 of 66 - 834 active elements (0 deactivated)
13:47:56 INFO    opendrift.models.basemodel: 2015-11-16 05:00:00 - step 11 of 66 - 917 active elements (0 deactivated)
13:47:56 INFO    opendrift.models.basemodel: 2015-11-16 05:30:00 - step 12 of 66 - 1000 active elements (0 deactivated)
13:47:56 INFO    opendrift.models.basemodel: 2015-11-16 06:00:00 - step 13 of 66 - 1084 active elements (0 deactivated)
13:47:56 INFO    opendrift.models.basemodel: 2015-11-16 06:30:00 - step 14 of 66 - 1167 active elements (0 deactivated)
13:47:56 INFO    opendrift.models.basemodel: 2015-11-16 07:00:00 - step 15 of 66 - 1250 active elements (0 deactivated)
13:47:56 INFO    opendrift.models.basemodel: 2015-11-16 07:30:00 - step 16 of 66 - 1334 active elements (0 deactivated)
13:47:56 INFO    opendrift.models.basemodel: 2015-11-16 08:00:00 - step 17 of 66 - 1417 active elements (0 deactivated)
13:47:56 INFO    opendrift.models.basemodel: 2015-11-16 08:30:00 - step 18 of 66 - 1500 active elements (0 deactivated)
13:47:57 INFO    opendrift.models.basemodel: 2015-11-16 09:00:00 - step 19 of 66 - 1584 active elements (0 deactivated)
13:47:57 INFO    opendrift.models.basemodel: 2015-11-16 09:30:00 - step 20 of 66 - 1667 active elements (0 deactivated)
13:47:57 INFO    opendrift.models.basemodel: 2015-11-16 10:00:00 - step 21 of 66 - 1750 active elements (0 deactivated)
13:47:57 INFO    opendrift.models.basemodel: 2015-11-16 10:30:00 - step 22 of 66 - 1833 active elements (0 deactivated)
13:47:57 INFO    opendrift.models.basemodel: 2015-11-16 11:00:00 - step 23 of 66 - 1917 active elements (0 deactivated)
13:47:57 INFO    opendrift.models.basemodel: 2015-11-16 11:30:00 - step 24 of 66 - 2000 active elements (0 deactivated)
13:47:57 INFO    opendrift.models.basemodel: 2015-11-16 12:00:00 - step 25 of 66 - 2083 active elements (0 deactivated)
13:47:57 INFO    opendrift.models.basemodel: 2015-11-16 12:30:00 - step 26 of 66 - 2167 active elements (0 deactivated)
13:47:58 INFO    opendrift.models.basemodel: 2015-11-16 13:00:00 - step 27 of 66 - 2250 active elements (0 deactivated)
13:47:58 INFO    opendrift.models.basemodel: 2015-11-16 13:30:00 - step 28 of 66 - 2333 active elements (0 deactivated)
13:47:58 INFO    opendrift.models.basemodel: 2015-11-16 14:00:00 - step 29 of 66 - 2417 active elements (0 deactivated)
13:47:58 INFO    opendrift.models.basemodel: 2015-11-16 14:30:00 - step 30 of 66 - 2500 active elements (0 deactivated)
13:47:58 INFO    opendrift.models.basemodel: 2015-11-16 15:00:00 - step 31 of 66 - 2583 active elements (0 deactivated)
13:47:58 INFO    opendrift.models.basemodel: 2015-11-16 15:30:00 - step 32 of 66 - 2667 active elements (0 deactivated)
13:47:59 INFO    opendrift.models.basemodel: 2015-11-16 16:00:00 - step 33 of 66 - 2750 active elements (0 deactivated)
13:47:59 INFO    opendrift.models.basemodel: 2015-11-16 16:30:00 - step 34 of 66 - 2833 active elements (0 deactivated)
13:47:59 INFO    opendrift.models.basemodel: 2015-11-16 17:00:00 - step 35 of 66 - 2917 active elements (0 deactivated)
13:47:59 INFO    opendrift.models.basemodel: 2015-11-16 17:30:00 - step 36 of 66 - 3000 active elements (0 deactivated)
13:47:59 INFO    opendrift.models.basemodel: 2015-11-16 18:00:00 - step 37 of 66 - 3083 active elements (0 deactivated)
13:48:00 INFO    opendrift.models.basemodel: 2015-11-16 18:30:00 - step 38 of 66 - 3167 active elements (0 deactivated)
13:48:00 INFO    opendrift.models.basemodel: 2015-11-16 19:00:00 - step 39 of 66 - 3250 active elements (0 deactivated)
13:48:00 INFO    opendrift.models.basemodel: 2015-11-16 19:30:00 - step 40 of 66 - 3333 active elements (0 deactivated)
13:48:00 INFO    opendrift.models.basemodel: 2015-11-16 20:00:00 - step 41 of 66 - 3416 active elements (0 deactivated)
13:48:00 INFO    opendrift.models.basemodel: 2015-11-16 20:30:00 - step 42 of 66 - 3500 active elements (0 deactivated)
13:48:01 INFO    opendrift.models.basemodel: 2015-11-16 21:00:00 - step 43 of 66 - 3583 active elements (0 deactivated)
13:48:01 INFO    opendrift.models.basemodel: 2015-11-16 21:30:00 - step 44 of 66 - 3666 active elements (0 deactivated)
13:48:01 INFO    opendrift.models.basemodel: 2015-11-16 22:00:00 - step 45 of 66 - 3750 active elements (0 deactivated)
13:48:01 INFO    opendrift.models.basemodel: 2015-11-16 22:30:00 - step 46 of 66 - 3833 active elements (0 deactivated)
13:48:01 INFO    opendrift.models.basemodel: 2015-11-16 23:00:00 - step 47 of 66 - 3916 active elements (0 deactivated)
13:48:02 INFO    opendrift.models.basemodel: 2015-11-16 23:30:00 - step 48 of 66 - 4000 active elements (0 deactivated)
13:48:02 INFO    opendrift.models.basemodel: 2015-11-17 00:00:00 - step 49 of 66 - 4083 active elements (0 deactivated)
13:48:02 INFO    opendrift.models.basemodel: 2015-11-17 00:30:00 - step 50 of 66 - 4166 active elements (0 deactivated)
13:48:02 INFO    opendrift.models.basemodel: 2015-11-17 01:00:00 - step 51 of 66 - 4250 active elements (0 deactivated)
13:48:02 INFO    opendrift.models.basemodel: 2015-11-17 01:30:00 - step 52 of 66 - 4333 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-17 02:00:00 - step 53 of 66 - 4416 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-17 02:30:00 - step 54 of 66 - 4500 active elements (0 deactivated)
13:48:03 INFO    opendrift.models.basemodel: 2015-11-17 03:00:00 - step 55 of 66 - 4583 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 03:30:00 - step 56 of 66 - 4666 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 04:00:00 - step 57 of 66 - 4750 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 04:30:00 - step 58 of 66 - 4833 active elements (0 deactivated)
13:48:04 INFO    opendrift.models.basemodel: 2015-11-17 05:00:00 - step 59 of 66 - 4916 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-17 05:30:00 - step 60 of 66 - 4999 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-17 06:00:00 - step 61 of 66 - 5000 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-17 06:30:00 - step 62 of 66 - 5000 active elements (0 deactivated)
13:48:05 INFO    opendrift.models.basemodel: 2015-11-17 07:00:00 - step 63 of 66 - 5000 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-17 07:30:00 - step 64 of 66 - 5000 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-17 08:00:00 - step 65 of 66 - 5000 active elements (0 deactivated)
13:48:06 INFO    opendrift.models.basemodel: 2015-11-17 08:30:00 - step 66 of 66 - 5000 active elements (0 deactivated)

Animate and compare the two runs. We see that there is much more stranding of oil when wind is considered.

o.animation(fast=True, compare=o2,
            legend=['Current + 3 % wind drift', 'Current only'])

Out:

13:48:06 WARNING opendrift.models.basemodel: Plotting fast. This will make your plots less accurate.
13:48:08 INFO    opendrift.models.basemodel: Saving animation to /root/project/docs/source/gallery/animations/example_compare_0.gif...
13:48:08 INFO    opendrift.models.basemodel: Making animated gif...
MovieWriter imagemagick unavailable; using Pillow instead.
../_images/example_compare_0.gif
o.plot(fast=True, compare=o2,
       legend=['Current + 3 % wind drift', 'Current only'])
OpenDrift - OpenOil (AASGARD A 2003) 2015-11-16 00:00 to 2015-11-17 09:00 UTC (34 steps)

Out:

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

(<GeoAxesSubplot:title={'center':'OpenDrift - OpenOil (AASGARD A 2003)\n2015-11-16 00:00 to 2015-11-17 09:00 UTC (34 steps)'}>, <module 'matplotlib.pyplot' from '/opt/conda/envs/opendrift/lib/python3.9/site-packages/matplotlib/pyplot.py'>)

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

Gallery generated by Sphinx-Gallery