.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gallery/example_thredds_resources.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_gallery_example_thredds_resources.py: Thredds resources for GUI ========================= .. GENERATED FROM PYTHON SOURCE LINES 6-17 .. code-block:: Python from datetime import datetime from opendrift import test_data_folder as tdf from opendrift.models.oceandrift import OceanDrift from opendrift.readers.reader_netCDF_CF_generic import Reader o = OceanDrift(loglevel=0) thredds_resources = open(tdf + '../../opendrift/scripts/data_sources.txt').readlines() times = {} .. rst-class:: sphx-glr-script-out .. code-block:: none 15:19:31 DEBUG opendrift.config:168: Adding 18 config items from __init__ 15:19:31 DEBUG opendrift.config:178: Overwriting config item readers:max_number_of_fails 15:19:31 DEBUG opendrift.config:168: Adding 5 config items from __init__ 15:19:31 INFO opendrift:568: OpenDriftSimulation initialised (version 1.14.3 / v1.14.3-4-ga7b402c) 15:19:31 DEBUG opendrift.config:168: Adding 19 config items from oceandrift 15:19:31 DEBUG opendrift.config:178: Overwriting config item seed:z .. GENERATED FROM PYTHON SOURCE LINES 18-19 Open each thredds dataset to check contents and spatial coverage .. GENERATED FROM PYTHON SOURCE LINES 19-34 .. code-block:: Python for t in thredds_resources: if t.startswith('http') and not t.startswith('cmems'): start = datetime.now() print('\n#%%\n%s\n' % t) r = Reader(t) print(r) ts = str(datetime.now() - start) times[t] = ts print('Time to open reader: ', ts) if r.global_coverage(): lscale = 'coarse' else: lscale = 'intermediate' r.plot(lscale=lscale) .. rst-class:: sphx-glr-horizontal * .. image-sg:: /gallery/images/sphx_glr_example_thredds_resources_001.png :alt: https://thredds.met.no/thredds/dodsC/fou-hi/norkystv3_800m_m00_be :srcset: /gallery/images/sphx_glr_example_thredds_resources_001.png :class: sphx-glr-multi-img * .. image-sg:: /gallery/images/sphx_glr_example_thredds_resources_002.png :alt: https://thredds.met.no/thredds/dodsC/mepslatest/meps_lagged_6_h_latest_2_5km_latest.nc :srcset: /gallery/images/sphx_glr_example_thredds_resources_002.png :class: sphx-glr-multi-img * .. image-sg:: /gallery/images/sphx_glr_example_thredds_resources_003.png :alt: https://thredds.met.no/thredds/dodsC/fou-hi/barents_eps_zdepth_be :srcset: /gallery/images/sphx_glr_example_thredds_resources_003.png :class: sphx-glr-multi-img * .. image-sg:: /gallery/images/sphx_glr_example_thredds_resources_004.png :alt: https://thredds.met.no/thredds/dodsC/cmems/mywavewam3km/dataset-wam-arctic-1hr3km-be.ncml :srcset: /gallery/images/sphx_glr_example_thredds_resources_004.png :class: sphx-glr-multi-img * .. image-sg:: /gallery/images/sphx_glr_example_thredds_resources_005.png :alt: https://thredds.met.no/thredds/dodsC/ww3_4km_agg :srcset: /gallery/images/sphx_glr_example_thredds_resources_005.png :class: sphx-glr-multi-img * .. image-sg:: /gallery/images/sphx_glr_example_thredds_resources_006.png :alt: https://thredds.met.no/thredds/dodsC/cmems/topaz6/dataset-topaz6-arc-15min-3km-be.ncml :srcset: /gallery/images/sphx_glr_example_thredds_resources_006.png :class: sphx-glr-multi-img * .. image-sg:: /gallery/images/sphx_glr_example_thredds_resources_007.png :alt: https://thredds.met.no/thredds/dodsC/aromearcticlatest/latest/arome_arctic_lagged_6_h_latest_2_5km_latest.nc :srcset: /gallery/images/sphx_glr_example_thredds_resources_007.png :class: sphx-glr-multi-img * .. image-sg:: /gallery/images/sphx_glr_example_thredds_resources_008.png :alt: https://pae-paha.pacioos.hawaii.edu/thredds/dodsC/ncep_global/NCEP_Global_Atmospheric_Model_best.ncd :srcset: /gallery/images/sphx_glr_example_thredds_resources_008.png :class: sphx-glr-multi-img * .. image-sg:: /gallery/images/sphx_glr_example_thredds_resources_009.png :alt: https://tds.hycom.org/thredds/dodsC/FMRC_ESPC-D-V02_uv3z/FMRC_ESPC-D-V02_uv3z_best.ncd :srcset: /gallery/images/sphx_glr_example_thredds_resources_009.png :class: sphx-glr-multi-img .. rst-class:: sphx-glr-script-out .. code-block:: none #% https://thredds.met.no/thredds/dodsC/fou-hi/norkystv3_800m_m00_be 15:19:31 INFO opendrift.readers:61: Opening file with xr.open_dataset 15:19:31 DEBUG gribapi.bindings:58: eccodes lib search: trying to find binary wheel 15:19:31 DEBUG gribapi.bindings:65: eccodes lib search: looking in /opt/conda/envs/opendrift/lib/python3.13/site-packages/eccodes.libs 15:19:31 DEBUG gribapi.bindings:65: eccodes lib search: looking in /opt/conda/envs/opendrift/lib/python3.13/site-packages/eccodes/.dylibs 15:19:31 DEBUG gribapi.bindings:65: eccodes lib search: looking in /opt/conda/envs/opendrift/lib/python3.13/site-packages/eccodes 15:19:31 DEBUG gribapi.bindings:91: eccodes lib search: did not find library from wheel; try to find as separate lib 15:19:31 DEBUG findlibs:301: about to search for libeccodes.so/eccodeslib in 15:19:31 DEBUG findlibs:301: about to search for libeccodes.so/eccodeslib in 15:19:31 DEBUG findlibs:303: found libeccodes.so/eccodeslib in 15:19:31 DEBUG gribapi.bindings:99: eccodes lib search: findlibs returned /opt/conda/envs/opendrift/lib/libeccodes.so 15:19:34 DEBUG opendrift.readers.reader_netCDF_CF_generic:128: Finding coordinate variables. 15:19:34 DEBUG opendrift.readers.reader_netCDF_CF_generic:143: Parsing CF grid mapping dictionary: {'grid_mapping_name': 'polar_stereographic', 'straight_vertical_longitude_from_pole': np.float64(70.0), 'latitude_of_projection_origin': np.float64(90.0), 'false_northing': np.float64(1844800.0), 'false_easting': np.float64(3369600.0), 'semi_major_axis': np.float64(6378137.0), 'semi_minor_axis': np.float64(6356752.3142), 'standard_parallel': np.float64(60.0), 'proj4': '+proj=stere +lat_0=90 +lat_ts=60 +lon_0=70 +x_0=3369600 +y_0=1844800 +a=6378137 +b=6356752.3142 +units=m +no_defs +type=crs'} 15:19:34 DEBUG pyproj:40: PROJ_ERROR: proj_create: several objects matching this name: Krovak (Greenwich), Equal Earth Greenwich, Laborde Grid (Greenwich), Modified Krovak (Greenwich), Krovak East North (Greenwich), Modified Krovak East North (Greenwich), ... 15:19:34 INFO opendrift.readers.reader_netCDF_CF_generic:332: Detected dimensions: {'x': 'X', 'y': 'Y', 'z': 'depth', 'time': 'time'} 15:19:34 DEBUG opendrift.readers.basereader.variables:614: Setting buffer size 25 for reader https://thredds.met.no/thredds/dodsC/fou-hi/norkystv3_800m_m00_be , assuming a maximum average speed of 5 m/s and time span of 1:00:00 15:19:34 INFO opendrift.readers.basereader:176: Variable x_sea_water_velocity will be rotated from eastward_sea_water_velocity 15:19:34 INFO opendrift.readers.basereader:176: Variable y_sea_water_velocity will be rotated from northward_sea_water_velocity 15:19:34 INFO opendrift.readers.basereader:176: Variable x_wind will be rotated from eastward_wind 15:19:34 INFO opendrift.readers.basereader:176: Variable y_wind will be rotated from northward_wind 15:19:34 DEBUG opendrift.readers.basereader:186: Variable mapping: ['sea_floor_depth_below_sea_level'] -> ['land_binary_mask'] is not activated 15:19:34 DEBUG opendrift.readers.basereader.variables:569: Adding variable mapping: ['x_wind', 'y_wind'] -> wind_speed 15:19:34 DEBUG opendrift.readers.basereader.variables:569: Adding variable mapping: ['x_sea_water_velocity', 'y_sea_water_velocity'] -> sea_water_speed =========================== Reader: https://thredds.met.no/thredds/dodsC/fou-hi/norkystv3_800m_m00_be Projection: +proj=stere +lat_0=90 +lat_ts=60 +lon_0=70 +x_0=3369600 +y_0=1844800 +a=6378137 +b=6356752.3142 +units=m +no_defs +type=crs Coverage: [degrees] xmin: 0.000000 xmax: 2196800.000000 step: 800 numx: 2747 ymin: 0.000000 ymax: 917600.000000 step: 800 numy: 1148 Corners (lon, lat): ( -4.61, 57.34) ( 18.33, 75.73) ( 8.70, 54.29) ( 37.55, 69.25) Vertical levels [m]: [ -0. -1. -2. -3. -5. -7. -10. -15. -25. -50. -65. -75. -100. -200. -300.] Available time range: start: 2024-01-01 00:00:00 end: 2025-09-17 00:00:00 step: 1:00:00 15001 times (122 missing) Variables: sea_floor_depth_below_sea_level sea_surface_height eastward_sea_water_velocity northward_sea_water_velocity upward_sea_water_velocity sea_water_temperature sea_water_salinity ocean_vertical_diffusivity eastward_wind northward_wind longitude latitude x_sea_water_velocity y_sea_water_velocity x_wind y_wind wind_speed - derived from ['x_wind', 'y_wind'] sea_water_speed - derived from ['x_sea_water_velocity', 'y_sea_water_velocity'] =========================== Time to open reader: 0:00:02.827952 #% https://thredds.met.no/thredds/dodsC/mepslatest/meps_lagged_6_h_latest_2_5km_latest.nc 15:19:36 INFO opendrift.readers:61: Opening file with xr.open_dataset 15:19:37 DEBUG opendrift.readers.reader_netCDF_CF_generic:128: Finding coordinate variables. 15:19:37 DEBUG opendrift.readers.reader_netCDF_CF_generic:143: Parsing CF grid mapping dictionary: {'grid_mapping_name': 'lambert_conformal_conic', 'standard_parallel': array([63.3, 63.3]), 'longitude_of_central_meridian': np.float64(15.0), 'latitude_of_projection_origin': np.float64(63.3), 'earth_radius': np.float64(6371000.0)} 15:19:37 DEBUG pyproj:40: PROJ_ERROR: proj_create: several objects matching this name: Krovak (Greenwich), Equal Earth Greenwich, Laborde Grid (Greenwich), Modified Krovak (Greenwich), Krovak East North (Greenwich), Modified Krovak East North (Greenwich), ... 15:19:37 DEBUG opendrift.readers.reader_netCDF_CF_generic:237: 30 ensemble members available 15:19:37 INFO opendrift.readers.reader_netCDF_CF_generic:332: Detected dimensions: {'time': 'time', 'x': 'x', 'y': 'y'} 15:19:37 DEBUG opendrift.readers.reader_netCDF_CF_generic:368: Skipped variables without standard_name: ['fog_area_fraction'] 15:19:37 DEBUG opendrift.readers.basereader.variables:614: Setting buffer size 10 for reader https://thredds.met.no/thredds/dodsC/mepslatest/meps_lagged_6_h_latest_2_5km_latest.nc , assuming a maximum average speed of 5 m/s and time span of 1:00:00 15:19:37 DEBUG opendrift.readers.basereader:186: Variable mapping: ['sea_floor_depth_below_sea_level'] -> ['land_binary_mask'] is not activated 15:19:37 DEBUG opendrift.readers.basereader.variables:569: Adding variable mapping: ['x_wind', 'y_wind'] -> wind_speed =========================== Reader: https://thredds.met.no/thredds/dodsC/mepslatest/meps_lagged_6_h_latest_2_5km_latest.nc Projection: +proj=lcc +lat_0=63.3 +lon_0=15 +lat_1=63.3 +lat_2=63.3 +x_0=0 +y_0=0 +R=6371000 +units=m +no_defs +type=crs Coverage: [degrees] xmin: -1060084.000000 xmax: 1309916.000000 step: 2500 numx: 949 ymin: -1332517.875000 ymax: 1337482.125000 step: 2500 numy: 1069 Corners (lon, lat): (-18.12, 72.76) ( 54.24, 71.58) ( 0.28, 50.32) ( 33.03, 49.77) Vertical levels [m]: Not specified Available time range: start: 2025-09-12 13:00:00 end: 2025-09-15 02:00:00 step: 1:00:00 62 times (0 missing) Variables (30 ensemble members): x_wind y_wind air_temperature relative_humidity cloud_area_fraction air_pressure_at_sea_level precipitation_amount snowfall_amount wind_speed_of_gust longitude latitude wind_speed - derived from ['x_wind', 'y_wind'] =========================== Time to open reader: 0:00:00.886290 #% https://thredds.met.no/thredds/dodsC/fou-hi/barents_eps_zdepth_be 15:19:37 INFO opendrift.readers:61: Opening file with xr.open_dataset 15:19:39 DEBUG opendrift.readers.reader_netCDF_CF_generic:128: Finding coordinate variables. 15:19:39 DEBUG opendrift.readers.reader_netCDF_CF_generic:143: Parsing CF grid mapping dictionary: {'grid_mapping_name': 'lambert_conformal_conic', 'standard_parallel': array([77.5, 77.5], dtype=float32), 'longitude_of_central_meridian': np.float32(-25.0), 'latitude_of_projection_origin': np.float32(77.5), 'earth_radius': np.float32(6.371e+06), 'proj4': '+proj=lcc +lat_0=77.5 +lon_0=-25 +lat_1=77.5 +lat_2=77.5 +no_defs +R=6.371e+06'} 15:19:39 DEBUG pyproj:40: PROJ_ERROR: proj_create: several objects matching this name: Krovak (Greenwich), Equal Earth Greenwich, Laborde Grid (Greenwich), Modified Krovak (Greenwich), Krovak East North (Greenwich), Modified Krovak East North (Greenwich), ... 15:19:39 INFO opendrift.readers.reader_netCDF_CF_generic:332: Detected dimensions: {'x': 'X', 'y': 'Y', 'z': 'depth', 'time': 'time'} 15:19:39 DEBUG opendrift.readers.reader_netCDF_CF_generic:368: Skipped variables without standard_name: ['angle'] 15:19:39 DEBUG opendrift.readers.basereader.variables:614: Setting buffer size 10 for reader https://thredds.met.no/thredds/dodsC/fou-hi/barents_eps_zdepth_be , assuming a maximum average speed of 5 m/s and time span of 1:00:00 15:19:39 INFO opendrift.readers.basereader:176: Variable x_sea_water_velocity will be rotated from eastward_sea_water_velocity 15:19:39 INFO opendrift.readers.basereader:176: Variable y_sea_water_velocity will be rotated from northward_sea_water_velocity 15:19:39 DEBUG opendrift.readers.basereader:186: Variable mapping: ['sea_floor_depth_below_sea_level'] -> ['land_binary_mask'] is not activated 15:19:39 DEBUG opendrift.readers.basereader.variables:569: Adding variable mapping: ['x_wind', 'y_wind'] -> wind_speed 15:19:39 DEBUG opendrift.readers.basereader.variables:569: Adding variable mapping: ['sea_ice_x_velocity', 'sea_ice_y_velocity'] -> sea_ice_speed 15:19:39 DEBUG opendrift.readers.basereader.variables:569: Adding variable mapping: ['x_sea_water_velocity', 'y_sea_water_velocity'] -> sea_water_speed =========================== Reader: https://thredds.met.no/thredds/dodsC/fou-hi/barents_eps_zdepth_be Projection: +proj=lcc +lat_0=77.5 +lon_0=-25 +lat_1=77.5 +lat_2=77.5 +x_0=0 +y_0=0 +R=6371000 +units=m +no_defs +type=crs Coverage: [degrees] xmin: 278603.187500 xmax: 2123602.750000 step: 2500 numx: 738 ymin: -897931.625000 ymax: 1472067.625000 step: 2500 numy: 948 Corners (lon, lat): ( 79.56, 87.57) ( 68.83, 71.11) (-17.96, 69.30) ( 18.62, 62.13) Vertical levels [m]: [ -0. -3. -10. -15. -25. -50. -75. -100. -150. -200. -250. -300. -500. -1000. -2000. -3000.] Available time range: start: 2022-06-29 00:00:00 end: 2025-09-16 00:00:00 step: 1:00:00 28201 times (648 missing) Variables: sea_floor_depth_below_sea_level sea_binary_mask ocean_vertical_diffusivity x_wind y_wind sea_ice_area_fraction sea_ice_thickness sea_ice_x_velocity sea_ice_y_velocity sea_water_salinity sea_water_temperature eastward_sea_water_velocity northward_sea_water_velocity upward_sea_water_velocity sea_surface_height latitude longitude x_sea_water_velocity y_sea_water_velocity wind_speed - derived from ['x_wind', 'y_wind'] sea_ice_speed - derived from ['sea_ice_x_velocity', 'sea_ice_y_velocity'] sea_water_speed - derived from ['x_sea_water_velocity', 'y_sea_water_velocity'] =========================== Time to open reader: 0:00:01.651171 #% https://thredds.met.no/thredds/dodsC/cmems/mywavewam3km/dataset-wam-arctic-1hr3km-be.ncml 15:19:39 INFO opendrift.readers:61: Opening file with xr.open_dataset 15:19:40 DEBUG opendrift.readers.reader_netCDF_CF_generic:128: Finding coordinate variables. 15:19:40 DEBUG opendrift.readers.reader_netCDF_CF_generic:143: Parsing CF grid mapping dictionary: {'grid_mapping_name': 'polar_stereographic', 'scale_factor_at_projection_origin': np.float64(1.0), 'straight_vertical_longitude_from_pole': np.float64(-45.0), 'latitude_of_projection_origin': np.float64(90.0), 'earth_radius': np.float64(6371000.0), 'proj4': '+proj=stere +lon_0=-45 +lat_0=90 +k=1 +R=6371000 +no_defs'} 15:19:40 DEBUG pyproj:40: PROJ_ERROR: proj_create: several objects matching this name: Krovak (Greenwich), Equal Earth Greenwich, Laborde Grid (Greenwich), Modified Krovak (Greenwich), Krovak East North (Greenwich), Modified Krovak East North (Greenwich), ... 15:19:40 INFO opendrift.readers.reader_netCDF_CF_generic:332: Detected dimensions: {'y': 'rlat', 'x': 'rlon', 'time': 'time'} 15:19:40 DEBUG opendrift.readers.basereader.variables:614: Setting buffer size 8 for reader https://thredds.met.no/thredds/dodsC/cmems/mywavewam3km/dataset-wam-arctic-1hr3km-be.ncml , assuming a maximum average speed of 5 m/s and time span of 1:00:00 15:19:40 DEBUG opendrift.readers.basereader:186: Variable mapping: ['sea_floor_depth_below_sea_level'] -> ['land_binary_mask'] is not activated 15:19:40 DEBUG opendrift.readers.basereader.variables:569: Adding variable mapping: ['sea_water_speed', 'sea_water_to_direction'] -> x_sea_water_velocity 15:19:40 DEBUG opendrift.readers.basereader.variables:569: Adding variable mapping: ['sea_water_speed', 'sea_water_to_direction'] -> y_sea_water_velocity 15:19:40 DEBUG opendrift.readers.basereader.variables:569: Adding variable mapping: ['sea_surface_wave_stokes_drift_x_velocity', 'sea_surface_wave_stokes_drift_y_velocity'] -> sea_surface_wave_stokes_drift_speed =========================== Reader: https://thredds.met.no/thredds/dodsC/cmems/mywavewam3km/dataset-wam-arctic-1hr3km-be.ncml Projection: +proj=stere +lat_0=90 +lon_0=-45 +k=1 +x_0=0 +y_0=0 +R=6371000 +units=m +no_defs +type=crs Coverage: [degrees] xmin: -3600000.000000 xmax: 3798000.000000 step: 3000 numx: 2467 ymin: -4300000.000000 ymax: 2798000.000000 step: 3000 numy: 2367 Corners (lon, lat): (-172.86, 50.62) ( 81.38, 49.37) (-84.94, 42.49) ( -3.55, 41.52) Vertical levels [m]: Not specified Available time range: start: 2022-08-01 00:00:00 end: 2025-09-21 12:00:00 step: 1:00:00 27541 times (0 missing) Variables: sea_floor_depth_below_sea_level sea_ice_area_fraction sea_ice_thickness sea_water_speed sea_water_to_direction sea_surface_wave_significant_height sea_surface_wave_period_at_variance_spectral_density_maximum sea_surface_wave_mean_period_from_variance_spectral_density_inverse_frequency_moment sea_surface_wave_mean_period_from_variance_spectral_density_second_frequency_moment sea_surface_wave_from_direction sea_surface_wind_wave_significant_height sea_surface_wind_wave_mean_period_from_variance_spectral_density_first_frequency_moment sea_surface_wind_wave_from_direction sea_surface_primary_swell_wave_significant_height sea_surface_primary_swell_wave_mean_period sea_surface_primary_swell_wave_from_direction sea_surface_secondary_swell_wave_significant_height sea_surface_secondary_swell_wave_mean_period sea_surface_secondary_swell_wave_from_direction sea_surface_wave_from_direction_at_variance_spectral_density_maximum sea_surface_wave_stokes_drift_x_velocity sea_surface_wave_stokes_drift_y_velocity sea_surface_wave_maximum_crest_height sea_surface_wave_maximum_height longitude latitude x_sea_water_velocity - derived from ['sea_water_speed', 'sea_water_to_direction'] y_sea_water_velocity - derived from ['sea_water_speed', 'sea_water_to_direction'] sea_surface_wave_stokes_drift_speed - derived from ['sea_surface_wave_stokes_drift_x_velocity', 'sea_surface_wave_stokes_drift_y_velocity'] =========================== Time to open reader: 0:00:01.349467 #% https://thredds.met.no/thredds/dodsC/ww3_4km_agg 15:19:40 INFO opendrift.readers:61: Opening file with xr.open_dataset 15:19:42 DEBUG opendrift.readers.reader_netCDF_CF_generic:128: Finding coordinate variables. 15:19:42 DEBUG opendrift.readers.reader_netCDF_CF_generic:143: Parsing CF grid mapping dictionary: {'proj4': '+proj=ob_tran +o_proj=longlat +lon_0=-40 +o_lat_p=22 +R=6.371e+06 +no_defs', 'grid_mapping_name': 'rotated_latitude_longitude', 'grid_north_pole_longitude': np.float64(140.0), 'grid_north_pole_latitude': np.float64(22.0), 'earth_radius': np.float64(6371000.0)} 15:19:42 DEBUG pyproj:40: PROJ_ERROR: proj_create: several objects matching this name: Krovak (Greenwich), Equal Earth Greenwich, Laborde Grid (Greenwich), Modified Krovak (Greenwich), Krovak East North (Greenwich), Modified Krovak East North (Greenwich), ... 15:19:42 INFO opendrift.readers.reader_netCDF_CF_generic:332: Detected dimensions: {'y': 'rlat', 'x': 'rlon', 'time': 'time'} 15:19:42 DEBUG opendrift.readers.basereader.variables:614: Setting buffer size 7 for reader https://thredds.met.no/thredds/dodsC/ww3_4km_agg , assuming a maximum average speed of 5 m/s and time span of 1:00:00 15:19:42 INFO opendrift.readers.basereader:176: Variable x_wind will be rotated from eastward_wind 15:19:42 INFO opendrift.readers.basereader:176: Variable y_wind will be rotated from northward_wind 15:19:42 INFO opendrift.readers.basereader:176: Variable sea_surface_wave_stokes_drift_x_velocity will be rotated from eastward_surface_stokes_drift 15:19:42 INFO opendrift.readers.basereader:176: Variable sea_surface_wave_stokes_drift_y_velocity will be rotated from northward_surface_stokes_drift 15:19:42 DEBUG opendrift.readers.basereader:186: Variable mapping: ['sea_floor_depth_below_sea_level'] -> ['land_binary_mask'] is not activated 15:19:42 DEBUG opendrift.readers.basereader.variables:569: Adding variable mapping: ['sea_surface_wave_stokes_drift_x_velocity', 'sea_surface_wave_stokes_drift_y_velocity'] -> sea_surface_wave_stokes_drift_speed 15:19:42 DEBUG opendrift.readers.basereader.variables:119: NB: Converting degrees to radians due to ob_tran srs =========================== Reader: https://thredds.met.no/thredds/dodsC/ww3_4km_agg Projection: +proj=ob_tran +o_proj=longlat +o_lon_p=0 +o_lat_p=22 +lon_0=320 +R=6371000 +no_defs +type=crs Coverage: [degrees] xmin: 5.530000 xmax: 30.450000 step: 0.04 numx: 623 ymin: -14.350000 ymax: 26.650000 step: 0.04 numy: 1026 Corners (lon, lat): ( 93.81, 83.15) ( 65.69, 61.93) (-31.02, 53.25) ( 2.14, 42.96) Vertical levels [m]: Not specified Available time range: start: 2023-04-20 06:00:00 end: 2025-09-14 05:00:00 step: 1:00:00 21072 times (0 missing) Variables: longitude latitude status map sea_surface_wave_peak_frequency depth eastward_wind northward_wind sea_ice_area_fraction sea_surface_wave_significant_height mean_wave_length sea_surface_wind_wave_mean_period_from_variance_spectral_density_second_frequency_moment sea_surface_wind_wave_mean_period_from_variance_spectral_density_inverse_frequency_moment sea_surface_wind_wave_mean_period_from_variance_spectral_density_first_frequency_moment sea_surface_wave_from_direction sea_surface_wave_directional_spread sea_surface_wave_peak_direction sea_surface_wave_maximum_height sea_surface_wave_maximum_crest_height sea_surface_wave_maximum_height_std sea_surface_wave_maximum_crest_height_std sea_surface_wave_significant_height_partition_0 sea_surface_wave_significant_height_partition_1 sea_surface_wave_period_at_variance_spectral_density_maximum_partition_0 sea_surface_wave_period_at_variance_spectral_density_maximum_partition_1 sea_surface_wave_from_direction_partition_0 sea_surface_wave_from_direction_partition_1 sea_surface_swell_wave_mean_period_from_variance_spectral_density_first_frequency_moment sea_surface_swell_wave_mean_period_from_variance_spectral_density_second_frequency_moment eastward_friction_velocity northward_friction_velocity charnock_coefficient_for_surface_roughness_length_for_momentum_in_air wind_mixing_energy_flux_into_sea_water eastward_wave_supported_wind_stress northward_wave_supported_wind_stress sea_surface_wave_mean_period_from_variance_spectral_density_inverse_frequency_moment eastward_wave_to_ocean_stress northward_wave_to_ocean_stress wave_to_ocean_energy_flux eastward_stokes_transport northward_stokes_transport eastward_surface_stokes_drift northward_surface_stokes_drift eastward_wave_to_sea_ice_stress northward_wave_to_sea_ice_stress wave_to_sea_ice_energy_flux sea_surface_wave_period_at_variance_spectral_density_maximum wind_speed wind_from_direction x_wind y_wind sea_surface_wave_stokes_drift_x_velocity sea_surface_wave_stokes_drift_y_velocity sea_surface_wave_stokes_drift_speed - derived from ['sea_surface_wave_stokes_drift_x_velocity', 'sea_surface_wave_stokes_drift_y_velocity'] =========================== Time to open reader: 0:00:01.243966 15:19:42 DEBUG opendrift.readers.basereader.variables:119: NB: Converting degrees to radians due to ob_tran srs 15:19:42 DEBUG opendrift.readers.basereader.variables:119: NB: Converting degrees to radians due to ob_tran srs 15:19:42 DEBUG opendrift.readers.basereader.variables:119: NB: Converting degrees to radians due to ob_tran srs #% https://thredds.met.no/thredds/dodsC/cmems/topaz6/dataset-topaz6-arc-15min-3km-be.ncml 15:19:42 INFO opendrift.readers:61: Opening file with xr.open_dataset 15:19:43 DEBUG opendrift.readers.reader_netCDF_CF_generic:128: Finding coordinate variables. 15:19:43 DEBUG opendrift.readers.reader_netCDF_CF_generic:143: Parsing CF grid mapping dictionary: {'grid_mapping_name': 'polar_stereographic', 'latitude_of_projection_origin': np.float64(90.0), 'longitude_of_projection_origin': np.float64(-45.0), 'scale_factor_at_projection_origin': np.float64(1.0), 'straight_vertical_longitude_from_pole': np.float64(-45.0), 'earth_radius': np.float64(6378273.0), 'proj4': '+proj=stere +lon_0=-45 +lat_0=90 +k=1 +R=6378273 +no_defs', 'false_easting': np.float64(0.0), 'false_northing': np.float64(0.0)} 15:19:43 DEBUG pyproj:40: PROJ_ERROR: proj_create: several objects matching this name: Krovak (Greenwich), Equal Earth Greenwich, Laborde Grid (Greenwich), Modified Krovak (Greenwich), Krovak East North (Greenwich), Modified Krovak East North (Greenwich), ... 15:19:44 INFO opendrift.readers.reader_netCDF_CF_generic:332: Detected dimensions: {'x': 'x', 'y': 'y', 'time': 'time'} 15:19:44 DEBUG opendrift.readers.basereader.variables:614: Setting buffer size 4 for reader https://thredds.met.no/thredds/dodsC/cmems/topaz6/dataset-topaz6-arc-15min-3km-be.ncml , assuming a maximum average speed of 5 m/s and time span of 0:15:00 15:19:44 DEBUG opendrift.readers.basereader:186: Variable mapping: ['sea_floor_depth_below_sea_level'] -> ['land_binary_mask'] is not activated 15:19:44 DEBUG opendrift.readers.basereader.variables:569: Adding variable mapping: ['x_sea_water_velocity', 'y_sea_water_velocity'] -> sea_water_speed =========================== Reader: https://thredds.met.no/thredds/dodsC/cmems/topaz6/dataset-topaz6-arc-15min-3km-be.ncml Projection: +proj=stere +lat_0=90 +lon_0=-45 +k=1 +x_0=0 +y_0=0 +R=6378273 +units=m +no_defs +type=crs Coverage: [degrees] xmin: -3600000.000000 xmax: 3798000.000000 step: 3000 numx: 2467 ymin: -4300000.000000 ymax: 2798000.000000 step: 3000 numy: 2367 Corners (lon, lat): (-172.86, 50.66) ( 81.38, 49.41) (-84.94, 42.54) ( -3.55, 41.57) Vertical levels [m]: Not specified Available time range: start: 2018-01-01 00:00:00 end: 2025-09-20 23:45:00 step: 0:15:00 270720 times (0 missing) Variables: sea_floor_depth_below_sea_level x_sea_water_velocity y_sea_water_velocity sea_surface_height longitude latitude sea_water_speed - derived from ['x_sea_water_velocity', 'y_sea_water_velocity'] =========================== Time to open reader: 0:00:01.712262 #% https://thredds.met.no/thredds/dodsC/aromearcticlatest/latest/arome_arctic_lagged_6_h_latest_2_5km_latest.nc 15:19:44 INFO opendrift.readers:61: Opening file with xr.open_dataset 15:19:44 DEBUG opendrift.readers.reader_netCDF_CF_generic:128: Finding coordinate variables. 15:19:44 DEBUG opendrift.readers.reader_netCDF_CF_generic:143: Parsing CF grid mapping dictionary: {'grid_mapping_name': 'lambert_conformal_conic', 'standard_parallel': array([77.5, 77.5]), 'longitude_of_central_meridian': np.float64(-25.0), 'latitude_of_projection_origin': np.float64(77.5), 'earth_radius': np.float64(6371000.0)} 15:19:45 DEBUG pyproj:40: PROJ_ERROR: proj_create: several objects matching this name: Krovak (Greenwich), Equal Earth Greenwich, Laborde Grid (Greenwich), Modified Krovak (Greenwich), Krovak East North (Greenwich), Modified Krovak East North (Greenwich), ... 15:19:45 DEBUG opendrift.readers.reader_netCDF_CF_generic:237: 6 ensemble members available 15:19:45 INFO opendrift.readers.reader_netCDF_CF_generic:332: Detected dimensions: {'time': 'time', 'x': 'x', 'y': 'y'} 15:19:45 DEBUG opendrift.readers.reader_netCDF_CF_generic:368: Skipped variables without standard_name: ['fog_area_fraction'] 15:19:45 DEBUG opendrift.readers.basereader.variables:614: Setting buffer size 10 for reader https://thredds.met.no/thredds/dodsC/aromearcticlatest/latest/arome_arctic_lagged_6_h_latest_2_5km_latest.nc , assuming a maximum average speed of 5 m/s and time span of 1:00:00 15:19:45 DEBUG opendrift.readers.basereader:186: Variable mapping: ['sea_floor_depth_below_sea_level'] -> ['land_binary_mask'] is not activated 15:19:45 DEBUG opendrift.readers.basereader.variables:569: Adding variable mapping: ['x_wind', 'y_wind'] -> wind_speed =========================== Reader: https://thredds.met.no/thredds/dodsC/aromearcticlatest/latest/arome_arctic_lagged_6_h_latest_2_5km_latest.nc Projection: +proj=lcc +lat_0=77.5 +lon_0=-25 +lat_1=77.5 +lat_2=77.5 +x_0=0 +y_0=0 +R=6371000 +units=m +no_defs +type=crs Coverage: [degrees] xmin: 278620.937500 xmax: 2123621.000000 step: 2500 numx: 739 ymin: -897985.687500 ymax: 1472014.250000 step: 2500 numy: 949 Corners (lon, lat): ( 79.55, 87.57) ( 68.83, 71.11) (-17.96, 69.30) ( 18.62, 62.13) Vertical levels [m]: Not specified Available time range: start: 2025-09-12 12:00:00 end: 2025-09-15 01:00:00 step: 1:00:00 62 times (0 missing) Variables (6 ensemble members): x_wind y_wind air_temperature relative_humidity cloud_area_fraction air_pressure_at_sea_level precipitation_amount snowfall_amount wind_speed_of_gust longitude latitude wind_speed - derived from ['x_wind', 'y_wind'] =========================== Time to open reader: 0:00:00.943989 #% https://pae-paha.pacioos.hawaii.edu/thredds/dodsC/ncep_global/NCEP_Global_Atmospheric_Model_best.ncd 15:19:45 INFO opendrift.readers:61: Opening file with xr.open_dataset 15:19:47 DEBUG opendrift.readers.reader_netCDF_CF_generic:128: Finding coordinate variables. 15:19:47 DEBUG opendrift.readers.reader_netCDF_CF_generic:262: Lon and lat are 1D arrays - using as projection coordinates 15:19:47 INFO opendrift.readers.reader_netCDF_CF_generic:332: Detected dimensions: {'time': 'time', 'x': 'longitude', 'y': 'latitude'} 15:19:47 DEBUG opendrift.readers.basereader.variables:614: Setting buffer size 3 for reader https://pae-paha.pacioos.hawaii.edu/thredds/dodsC/ncep_global/NCEP_Global_Atmospheric_Model_best.ncd , assuming a maximum average speed of 5 m/s and time span of 3:00:00 15:19:47 INFO opendrift.readers.basereader:176: Variable x_wind will be rotated from eastward_wind 15:19:47 INFO opendrift.readers.basereader:176: Variable y_wind will be rotated from northward_wind 15:19:47 DEBUG opendrift.readers.basereader:186: Variable mapping: ['sea_floor_depth_below_sea_level'] -> ['land_binary_mask'] is not activated 15:19:47 DEBUG opendrift.readers.basereader.variables:569: Adding variable mapping: ['x_wind', 'y_wind'] -> wind_speed =========================== Reader: https://pae-paha.pacioos.hawaii.edu/thredds/dodsC/ncep_global/NCEP_Global_Atmospheric_Model_best.ncd Projection: +proj=latlong Coverage: [degrees] xmin: 0.000000 xmax: 359.500000 step: 0.5 numx: 720 ymin: -90.000000 ymax: 90.000000 step: 0.5 numy: 361 Corners (lon, lat): ( 0.00, 90.00) (359.50, 90.00) ( 0.00, -90.00) (359.50, -90.00) Vertical levels [m]: Not specified Available time range: start: 2022-12-01 12:00:00 end: 2025-09-19 12:00:00 step: 3:00:00 8185 times (0 missing) Variables: air_pressure_at_sea_level surface_downwelling_longwave_flux surface_downwelling_shortwave_flux precipitation_flux relative_humidity surface_temperature air_temperature eastward_wind surface_upwelling_longwave_flux surface_upwelling_shortwave_flux northward_wind x_wind y_wind wind_speed - derived from ['x_wind', 'y_wind'] =========================== Time to open reader: 0:00:01.838595 #% https://tds.hycom.org/thredds/dodsC/FMRC_ESPC-D-V02_uv3z/FMRC_ESPC-D-V02_uv3z_best.ncd 15:19:47 INFO opendrift.readers:61: Opening file with xr.open_dataset 15:19:47 WARNING opendrift.readers:67: Removing variables that cannot be CF decoded: ['tau'] 15:19:47 DEBUG opendrift.readers.reader_netCDF_CF_generic:128: Finding coordinate variables. 15:19:47 INFO opendrift.readers.reader_netCDF_CF_generic:299: Grid coordinates are detected, but proj4 string not given: assuming latlong 15:19:47 INFO opendrift.readers.reader_netCDF_CF_generic:332: Detected dimensions: {'z': 'depth', 'y': 'lat', 'x': 'lon', 'time': 'time'} 15:19:47 DEBUG opendrift.readers.basereader.variables:614: Setting buffer size 9 for reader https://tds.hycom.org/thredds/dodsC/FMRC_ESPC-D-V02_uv3z/FMRC_ESPC-D-V02_uv3z_best.ncd , assuming a maximum average speed of 5 m/s and time span of 3:00:00 15:19:47 INFO opendrift.readers.basereader:176: Variable x_sea_water_velocity will be rotated from eastward_sea_water_velocity 15:19:47 INFO opendrift.readers.basereader:176: Variable y_sea_water_velocity will be rotated from northward_sea_water_velocity 15:19:47 DEBUG opendrift.readers.basereader:186: Variable mapping: ['sea_floor_depth_below_sea_level'] -> ['land_binary_mask'] is not activated 15:19:47 DEBUG opendrift.readers.basereader.variables:569: Adding variable mapping: ['x_sea_water_velocity', 'y_sea_water_velocity'] -> sea_water_speed =========================== Reader: https://tds.hycom.org/thredds/dodsC/FMRC_ESPC-D-V02_uv3z/FMRC_ESPC-D-V02_uv3z_best.ncd Projection: +proj=latlong Coverage: [degrees] xmin: 0.000000 xmax: 359.920044 step: 0.0799561 numx: 4502 ymin: -80.000000 ymax: 90.000000 step: 0.0400009 numy: 4250 Corners (lon, lat): ( 0.00, 90.00) (359.92, 90.00) ( 0.00, -80.00) (359.92, -80.00) Vertical levels [m]: [ -0. -2. -4. -6. -8. -10. -12. -15. -20. -25. -30. -35. -40. -45. -50. -60. -70. -80. -90. -100. -125. -150. -200. -250. -300. -350. -400. -500. -600. -700. -800. -900. -1000. -1250. -1500. -2000. -2500. -3000. -4000. -5000.] Available time range: start: 2025-09-03 12:00:00 end: 2025-09-19 12:00:00 step: 3:00:00 129 times (0 missing) Variables: eastward_sea_water_velocity northward_sea_water_velocity x_sea_water_velocity y_sea_water_velocity sea_water_speed - derived from ['x_sea_water_velocity', 'y_sea_water_velocity'] =========================== Time to open reader: 0:00:00.563462 .. GENERATED FROM PYTHON SOURCE LINES 35-36 Summary of times to open each dataset: .. GENERATED FROM PYTHON SOURCE LINES 36-38 .. code-block:: Python for t, time in times.items(): print(time, t) .. rst-class:: sphx-glr-script-out .. code-block:: none 0:00:02.827952 https://thredds.met.no/thredds/dodsC/fou-hi/norkystv3_800m_m00_be 0:00:00.886290 https://thredds.met.no/thredds/dodsC/mepslatest/meps_lagged_6_h_latest_2_5km_latest.nc 0:00:01.651171 https://thredds.met.no/thredds/dodsC/fou-hi/barents_eps_zdepth_be 0:00:01.349467 https://thredds.met.no/thredds/dodsC/cmems/mywavewam3km/dataset-wam-arctic-1hr3km-be.ncml 0:00:01.243966 https://thredds.met.no/thredds/dodsC/ww3_4km_agg 0:00:01.712262 https://thredds.met.no/thredds/dodsC/cmems/topaz6/dataset-topaz6-arc-15min-3km-be.ncml 0:00:00.943989 https://thredds.met.no/thredds/dodsC/aromearcticlatest/latest/arome_arctic_lagged_6_h_latest_2_5km_latest.nc 0:00:01.838595 https://pae-paha.pacioos.hawaii.edu/thredds/dodsC/ncep_global/NCEP_Global_Atmospheric_Model_best.ncd 0:00:00.563462 https://tds.hycom.org/thredds/dodsC/FMRC_ESPC-D-V02_uv3z/FMRC_ESPC-D-V02_uv3z_best.ncd .. rst-class:: sphx-glr-timing **Total running time of the script:** (1 minutes 18.173 seconds) .. _sphx_glr_download_gallery_example_thredds_resources.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: example_thredds_resources.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: example_thredds_resources.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: example_thredds_resources.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_