{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Bathymetric data\n", "\n", "[*GEBCO Compilation Group (2020) GEBCO 2020 Grid (doi:10.5285/a29c5465-b138-234d-e053-6c86abc040b9*)](https://www.gebco.net/data_and_products/gridded_bathymetry_data/)\n" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import xarray\n", "import mikeio" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
<xarray.Dataset>\n",
"Dimensions: (lat: 264, lon: 216)\n",
"Coordinates:\n",
" * lat (lat) float64 55.2 55.21 55.21 55.21 ... 56.29 56.29 56.29 56.3\n",
" * lon (lon) float64 12.2 12.21 12.21 12.21 ... 13.09 13.09 13.09 13.1\n",
"Data variables:\n",
" elevation (lat, lon) int16 -8 -8 -8 -8 -9 -9 -9 -9 ... 72 71 72 77 80 80 86\n",
"Attributes:\n",
" Conventions: CF-1.6\n",
" title: The GEBCO_2020 Grid - a continuous terrain model for oceans...\n",
" institution: On behalf of the General Bathymetric Chart of the Oceans (G...\n",
" source: The GEBCO_2020 Grid is the latest global bathymetric produc...\n",
" history: Information on the development of the data set and the sour...\n",
" references: DOI: 10.5285/a29c5465-b138-234d-e053-6c86abc040b9\n",
" comment: The data in the GEBCO_2020 Grid should not be used for navi...\n",
" node_offset: 1.0array([55.202083, 55.20625 , 55.210417, ..., 56.289583, 56.29375 , 56.297917])
array([12.202083, 12.20625 , 12.210417, ..., 13.089583, 13.09375 , 13.097917])
array([[ -8, -8, -8, ..., -37, -38, -38],\n",
" [ -7, -7, -7, ..., -38, -38, -38],\n",
" [ -5, -6, -6, ..., -37, -38, -38],\n",
" ...,\n",
" [-30, -30, -30, ..., 77, 78, 79],\n",
" [-30, -30, -30, ..., 74, 79, 86],\n",
" [-31, -30, -31, ..., 80, 80, 86]], dtype=int16)<xarray.DataArray 'elevation' ()>\n",
"array(-43, dtype=int16)\n",
"Coordinates:\n",
" lat float64 55.86\n",
" lon float64 12.75\n",
"Attributes:\n",
" standard_name: height_above_reference_ellipsoid\n",
" long_name: Elevation relative to sea level\n",
" units: m\n",
" sdn_parameter_urn: SDN:P01::BATHHGHT\n",
" sdn_parameter_name: Sea floor height (above mean sea level) {bathymetric...\n",
" sdn_uom_urn: SDN:P06::ULAA\n",
" sdn_uom_name: Metresarray(-43, dtype=int16)
array(55.86458333)
array(12.74791667)