{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Dfs0 - CMEMS *in-situ* data\n", "\n", "Copernicus Marine provides access to a wide range of model and\n", "[*in-situ*\n", "data](https://marine.copernicus.eu/about/producers/insitu-tac). In this\n", "example we will look at how to access the *in-situ* data and convert it\n", "to a MIKE IO dataset." ], "id": "08c56c7d-a191-4c90-9a10-6a23fbaac984" }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import xarray as xr\n", "import mikeio" ], "id": "e4fc4764" }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "output_type": "display_data", "metadata": {}, "data": { "text/html": [ "
<xarray.Dataset> Size: 3MB\n", "Dimensions: (TIME: 2879, LATITUDE: 2879, LONGITUDE: 2879, DEPTH: 7,\n", " POSITION: 2879)\n", "Coordinates:\n", " * TIME (TIME) datetime64[ns] 23kB 2022-09-01 ... 2022-09-30T23:31:5...\n", " * LATITUDE (LATITUDE) float32 12kB 54.0 54.0 54.0 54.0 ... 54.0 54.0 54.0\n", " * LONGITUDE (LONGITUDE) float32 12kB 6.583 6.583 6.583 ... 6.583 6.583\n", " DEPH (TIME, DEPTH) float32 81kB ...\n", "Dimensions without coordinates: DEPTH, POSITION\n", "Data variables: (12/22)\n", " DEPH_QC (TIME, DEPTH) float32 81kB ...\n", " TIME_QC (TIME) float32 12kB ...\n", " POSITION_QC (POSITION) float32 12kB ...\n", " TEMP (TIME, DEPTH) float64 161kB ...\n", " TEMP_QC (TIME, DEPTH) float32 81kB ...\n", " VHM0 (TIME, DEPTH) float64 161kB ...\n", " ... ...\n", " VTPK_DM (TIME, DEPTH) object 161kB ...\n", " VTZA (TIME, DEPTH) float64 161kB ...\n", " VTZA_QC (TIME, DEPTH) float32 81kB ...\n", " VPED (TIME, DEPTH) float64 161kB ...\n", " VPED_QC (TIME, DEPTH) float32 81kB ...\n", " VPED_DM (TIME, DEPTH) object 161kB ...\n", "Attributes: (12/46)\n", " platform_code: FINO1\n", " platform_name: \n", " data_mode: M\n", " title: NWS - NRT in situ Observations\n", " summary: Oceanographic data from North West Shelf\n", " naming_authority: Copernicus Marine In Situ\n", " ... ...\n", " doi: \n", " pi_name: \n", " qc_manual: OceanSITES User's Manual v1.2\n", " date_update: 2022-10-07T05:39:40Z\n", " history: 2022-10-01T18:04:25Z : Creation; 2022-10-...\n", " wmo_inst_type:
<xarray.Dataset> Size: 104kB\n", "Dimensions: (TIME: 2879)\n", "Coordinates:\n", " * TIME (TIME) datetime64[ns] 23kB 2022-09-01 ... 2022-09-30T23:31:59.99...\n", " DEPH (TIME) float32 12kB ...\n", "Data variables:\n", " VHM0 (TIME) float64 23kB ...\n", " VTZA (TIME) float64 23kB ...\n", " VPED (TIME) float64 23kB ...\n", "Attributes: (12/46)\n", " platform_code: FINO1\n", " platform_name: \n", " data_mode: M\n", " title: NWS - NRT in situ Observations\n", " summary: Oceanographic data from North West Shelf\n", " naming_authority: Copernicus Marine In Situ\n", " ... ...\n", " doi: \n", " pi_name: \n", " qc_manual: OceanSITES User's Manual v1.2\n", " date_update: 2022-10-07T05:39:40Z\n", " history: 2022-10-01T18:04:25Z : Creation; 2022-10-...\n", " wmo_inst_type: