Note
Go to the end to download the full example code.
Ship drift
from datetime import datetime
from opendrift.models.shipdrift import ShipDrift
o = ShipDrift(loglevel=20)
o.add_readers_from_list([
'https://thredds.met.no/thredds/dodsC/cmems/topaz6/dataset-topaz6-arc-15min-3km-be.ncml',
'https://thredds.met.no/thredds/dodsC/mepslatest/meps_lagged_6_h_latest_2_5km_latest.nc',
'https://thredds.met.no/thredds/dodsC/cmems/mywavewam3km/dataset-wam-arctic-1hr3km-be.ncml'
])
14:17:09 INFO opendrift.models.basemodel:533: OpenDriftSimulation initialised (version 1.11.2 / v1.11.2-43-gce9f6bb)
Seed ship elements at defined position and time Note: beam/length ratio is larger than allowed, but is then clipped internally
o.seed_elements(lon=5.0, lat=63.0, radius=1000, number=1000,
time=datetime.utcnow(),
length=80.0, beam=20.0, height=9.0, draft=4.0)
14:17:09 WARNING opendrift.models.shipdrift:181: Ratio of beam to length should be in range 0.12 to 0.18, given range is 0.25-0.25. Using border value.
14:17:09 INFO opendrift.models.basemodel.environment:218: Adding a dynamical landmask with max. priority based on assumed maximum speed of 2.0 m/s. Adding a customised landmask may be faster...
14:17:16 INFO opendrift.models.basemodel.environment:245: Fallback values will be used for the following variables which have no readers:
14:17:16 INFO opendrift.models.basemodel.environment:248: sea_surface_wave_stokes_drift_x_velocity: 0.000000
14:17:16 INFO opendrift.models.basemodel.environment:248: sea_surface_wave_stokes_drift_y_velocity: 0.000000
14:17:16 INFO opendrift.models.basemodel.environment:248: sea_surface_wave_significant_height: 0.000000
14:17:16 INFO opendrift.models.basemodel.environment:248: sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment: 0.000000
Running model
o.run(steps=24, stop_on_error=True)
14:17:16 INFO opendrift.models.basemodel:911: Using existing reader for land_binary_mask
14:17:16 INFO opendrift.models.basemodel:922: All points are in ocean
14:17:16 INFO opendrift.models.basemodel:2011: 2024-05-14 14:17:09.704054 - step 1 of 24 - 1000 active elements (0 deactivated)
14:17:16 INFO opendrift.readers.reader_netCDF_CF_generic:102: Opening dataset: https://thredds.met.no/thredds/dodsC/cmems/topaz6/dataset-topaz6-arc-15min-3km-be.ncml
/opt/conda/envs/opendrift/lib/python3.11/site-packages/pyproj/crs/crs.py:1286: UserWarning: You will likely lose important projection information when converting to a PROJ string from another format. See: https://proj.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems
proj = self._crs.to_proj4(version=version)
14:17:22 INFO opendrift.readers.reader_netCDF_CF_generic:314: Detected dimensions: {'x': 'x', 'y': 'y', 'time': 'time'}
14:17:22 INFO opendrift.readers.reader_netCDF_CF_generic:102: Opening dataset: https://thredds.met.no/thredds/dodsC/mepslatest/meps_lagged_6_h_latest_2_5km_latest.nc
/opt/conda/envs/opendrift/lib/python3.11/site-packages/pyproj/crs/crs.py:1286: UserWarning: You will likely lose important projection information when converting to a PROJ string from another format. See: https://proj.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems
proj = self._crs.to_proj4(version=version)
14:17:23 INFO opendrift.readers.reader_netCDF_CF_generic:314: Detected dimensions: {'time': 'time', 'x': 'x', 'y': 'y'}
14:17:24 INFO opendrift.readers.reader_netCDF_CF_generic:102: Opening dataset: https://thredds.met.no/thredds/dodsC/cmems/mywavewam3km/dataset-wam-arctic-1hr3km-be.ncml
/opt/conda/envs/opendrift/lib/python3.11/site-packages/pyproj/crs/crs.py:1286: UserWarning: You will likely lose important projection information when converting to a PROJ string from another format. See: https://proj.org/faq.html#what-is-the-best-format-for-describing-coordinate-reference-systems
proj = self._crs.to_proj4(version=version)
14:17:25 INFO opendrift.readers.reader_netCDF_CF_generic:314: Detected dimensions: {'y': 'rlat', 'x': 'rlon', 'time': 'time'}
14:17:27 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:27 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:28 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:28 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:28 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:28 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:28 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:28 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:29 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:17:29 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:17:29 INFO opendrift.models.basemodel:2011: 2024-05-14 15:17:09.704054 - step 2 of 24 - 967 active elements (33 deactivated)
14:17:31 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:31 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:31 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:31 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:31 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:31 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:31 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:17:32 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:17:32 INFO opendrift.models.basemodel:2011: 2024-05-14 16:17:09.704054 - step 3 of 24 - 935 active elements (65 deactivated)
14:17:33 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:34 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:34 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:34 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:34 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:34 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:34 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:17:34 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:17:34 INFO opendrift.models.basemodel:2011: 2024-05-14 17:17:09.704054 - step 4 of 24 - 904 active elements (96 deactivated)
14:17:36 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:36 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:36 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:36 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:36 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:36 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:37 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:17:37 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:17:37 INFO opendrift.models.basemodel:2011: 2024-05-14 18:17:09.704054 - step 5 of 24 - 874 active elements (126 deactivated)
14:17:38 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:38 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:38 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:39 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:39 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:39 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:39 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:17:39 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:17:39 INFO opendrift.models.basemodel:2011: 2024-05-14 19:17:09.704054 - step 6 of 24 - 845 active elements (155 deactivated)
14:17:41 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:41 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:41 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:41 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:41 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:41 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:41 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:17:41 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:17:41 INFO opendrift.models.basemodel:2011: 2024-05-14 20:17:09.704054 - step 7 of 24 - 817 active elements (183 deactivated)
14:17:43 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:43 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:43 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:43 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:43 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:43 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:43 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:17:43 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:17:43 INFO opendrift.models.basemodel:2011: 2024-05-14 21:17:09.704054 - step 8 of 24 - 790 active elements (210 deactivated)
14:17:45 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:45 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:45 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:45 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:45 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:45 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:48 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:17:48 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:17:48 INFO opendrift.models.basemodel:2011: 2024-05-14 22:17:09.704054 - step 9 of 24 - 764 active elements (236 deactivated)
14:17:53 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:53 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:53 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:53 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:53 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:53 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:53 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:17:53 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:17:53 INFO opendrift.models.basemodel:2011: 2024-05-14 23:17:09.704054 - step 10 of 24 - 739 active elements (261 deactivated)
14:17:55 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:55 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:17:55 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:55 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:55 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:55 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:17:57 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:17:58 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:17:58 INFO opendrift.models.basemodel:2011: 2024-05-15 00:17:09.704054 - step 11 of 24 - 715 active elements (285 deactivated)
14:18:03 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:03 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:03 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:03 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:03 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:03 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:03 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:18:03 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:18:03 INFO opendrift.models.basemodel:2011: 2024-05-15 01:17:09.704054 - step 12 of 24 - 691 active elements (309 deactivated)
14:18:05 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:05 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:05 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:05 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:05 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:05 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:05 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:18:05 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:18:05 INFO opendrift.models.basemodel:2011: 2024-05-15 02:17:09.704054 - step 13 of 24 - 668 active elements (332 deactivated)
14:18:07 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:07 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:07 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:07 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:07 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:07 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:08 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:18:08 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:18:08 INFO opendrift.models.basemodel:2011: 2024-05-15 03:17:09.704054 - step 14 of 24 - 646 active elements (354 deactivated)
14:18:10 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:10 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:10 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:10 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:10 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:10 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:11 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:18:11 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:18:11 INFO opendrift.models.basemodel:2011: 2024-05-15 04:17:09.704054 - step 15 of 24 - 625 active elements (375 deactivated)
14:18:13 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:13 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:13 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:13 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:13 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:13 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:13 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:18:13 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:18:13 INFO opendrift.models.basemodel:2011: 2024-05-15 05:17:09.704054 - step 16 of 24 - 604 active elements (396 deactivated)
14:18:15 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:15 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:15 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:15 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:15 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:15 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:16 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:18:16 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:18:16 INFO opendrift.models.basemodel:2011: 2024-05-15 06:17:09.704054 - step 17 of 24 - 584 active elements (416 deactivated)
14:18:17 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:17 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:17 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:17 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:17 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:17 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:18 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:18:18 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:18:18 INFO opendrift.models.basemodel:2011: 2024-05-15 07:17:09.704054 - step 18 of 24 - 565 active elements (435 deactivated)
14:18:19 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:19 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:19 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:19 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:19 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:19 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:20 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:18:20 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:18:20 INFO opendrift.models.basemodel:2011: 2024-05-15 08:17:09.704054 - step 19 of 24 - 546 active elements (454 deactivated)
14:18:21 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:21 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:21 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:21 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:21 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:21 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:22 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:18:22 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:18:22 INFO opendrift.models.basemodel:2011: 2024-05-15 09:17:09.704054 - step 20 of 24 - 528 active elements (472 deactivated)
14:18:23 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:23 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:23 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:23 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:23 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:23 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:24 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:18:24 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:18:24 INFO opendrift.models.basemodel:2011: 2024-05-15 10:17:09.704054 - step 21 of 24 - 511 active elements (489 deactivated)
14:18:25 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:25 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:25 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:25 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:25 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:25 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:26 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:18:26 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:18:26 INFO opendrift.models.basemodel:2011: 2024-05-15 11:17:09.704054 - step 22 of 24 - 494 active elements (506 deactivated)
14:18:27 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:27 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:27 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:27 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:27 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:27 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:28 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:18:28 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:18:28 INFO opendrift.models.basemodel:2011: 2024-05-15 12:17:09.704054 - step 23 of 24 - 478 active elements (522 deactivated)
14:18:29 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:29 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:29 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:29 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:29 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:29 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:32 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:18:32 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
14:18:32 INFO opendrift.models.basemodel:2011: 2024-05-15 13:17:09.704054 - step 24 of 24 - 462 active elements (538 deactivated)
14:18:38 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:38 WARNING opendrift.readers.interpolation.structured:46: Ensemble data currently not extrapolated towards seafloor
14:18:38 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:38 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:38 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:38 WARNING opendrift:122: Only NaNs input to linearNDFast - returning
14:18:38 WARNING opendrift.models.basemodel:2298: Missing variables: ['x_wind', 'y_wind']
14:18:38 INFO opendrift.models.shipdrift:311: Using Stokes drift direction as wave direction
Print and plot results
print(o)
o.plot(linecolor='orientation')
#o.animation(color='orientation', markersize=20, filename="orientation.gif", legend=['left','right'],colorbar=False,cmap='bwr')
o.animation(color='orientation', legend=['left','right'], markersize=20, colorbar=False, cmap='bwr')
===========================
--------------------
Reader performance:
--------------------
global_landmask
0:00:00.0 total
0:00:00.0 preparing
0:00:00.0 reading
0:00:00.0 masking
--------------------
https://thredds.met.no/thredds/dodsC/cmems/topaz6/dataset-topaz6-arc-15min-3km-be.ncml
0:00:26.3 total
0:00:00.0 preparing
0:00:26.2 reading
0:00:00.0 interpolation
0:00:00.0 interpolation_time
0:00:00.0 rotating vectors
0:00:00.0 masking
--------------------
https://thredds.met.no/thredds/dodsC/mepslatest/meps_lagged_6_h_latest_2_5km_latest.nc
0:00:22.9 total
0:00:00.0 preparing
0:00:22.7 reading
0:00:00.2 interpolation
0:00:00.0 interpolation_time
0:00:00.2 rotating vectors
0:00:00.0 masking
--------------------
https://thredds.met.no/thredds/dodsC/cmems/mywavewam3km/dataset-wam-arctic-1hr3km-be.ncml
0:00:23.0 total
0:00:00.0 preparing
0:00:22.8 reading
0:00:00.0 interpolation
0:00:00.0 interpolation_time
0:00:00.2 rotating vectors
0:00:00.0 masking
--------------------
Performance:
1:29.1 total time
6.8 configuration
0.0 preparing main loop
0.0 moving elements to ocean
1:22.2 main loop
0.6 updating elements
0.0 cleaning up
--------------------
===========================
Model: ShipDrift (OpenDrift version 1.11.2)
447 active ShipObject particles (553 deactivated, 0 scheduled)
-------------------
Environment variables:
-----
land_binary_mask
1) global_landmask
-----
x_sea_water_velocity
y_sea_water_velocity
1) https://thredds.met.no/thredds/dodsC/cmems/topaz6/dataset-topaz6-arc-15min-3km-be.ncml
2) https://thredds.met.no/thredds/dodsC/cmems/mywavewam3km/dataset-wam-arctic-1hr3km-be.ncml
-----
x_wind
y_wind
1) https://thredds.met.no/thredds/dodsC/mepslatest/meps_lagged_6_h_latest_2_5km_latest.nc
-----
sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment
sea_surface_wave_significant_height
sea_surface_wave_stokes_drift_x_velocity
sea_surface_wave_stokes_drift_y_velocity
1) https://thredds.met.no/thredds/dodsC/cmems/mywavewam3km/dataset-wam-arctic-1hr3km-be.ncml
Discarded readers:
Time:
Start: 2024-05-14 14:17:09.704054 UTC
Present: 2024-05-15 14:17:09.704054 UTC
Calculation steps: 24 * 1:00:00 - total time: 1 day, 0:00:00
Output steps: 25 * 1:00:00
-------------------
"Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']", "Missing variables: ['x_wind', 'y_wind']"
===========================
14:19:03 INFO opendrift.models.basemodel:4570: Saving animation to /root/project/docs/source/gallery/animations/example_shipdrift_0.gif...
14:20:20 INFO opendrift.models.basemodel:3003: Time to make animation: 0:01:20.212201
Total running time of the script: (3 minutes 15.938 seconds)