{ "cells": [ { "cell_type": "markdown", "id": "occupational-participant", "metadata": {}, "source": [ "# Explore Repeat Hydrography Data from CCHDO" ] }, { "cell_type": "markdown", "id": "dramatic-booth", "metadata": {}, "source": [ "In this example notebook we will explore data collected on a repeat hydrographic section part of the GO-SHIP repeat hydrographic program.\n", "\n", "[](https://mybinder.org/v2/gh/cchdo/demo_notebooks/master?filepath=explore_cchdo.ipynb)\n", "\n", "All hydrographic data part of this progam are publicly avaiable and are archived at [CCHDO](https://cchdo.ucsd.edu/). The section analyzed here (P18) is a meridonal transect in the eastern Pacific roughly along the 103$^o$W meridian. Section data is available at https://cchdo.ucsd.edu/cruise/33RO20161119. The netCDF file for the CTD data can be downloaded [here](https://cchdo.ucsd.edu/data/42300/33RO20161119_ctd.nc)." ] }, { "cell_type": "code", "execution_count": 1, "id": "objective-science", "metadata": {}, "outputs": [], "source": [ "import xarray as xr\n", "import pandas as pd\n", "import numpy as np\n", "import datetime\n", "import matplotlib.pyplot as plt\n", "import cartopy.crs as ccrs\n", "import gsw\n", "%matplotlib inline\n", "\n", "plt.rcParams[\"font.size\"] = 16\n", "plt.rcParams[\"figure.facecolor\"] = 'white'\n", "import warnings\n", "warnings.filterwarnings('ignore')" ] }, { "cell_type": "code", "execution_count": 2, "id": "allied-trust", "metadata": { "scrolled": true }, "outputs": [ { "data": { "text/html": [ "
<xarray.Dataset> Size: 105MB\n",
"Dimensions: (N_PROF: 213, N_LEVELS: 5364)\n",
"Coordinates:\n",
" expocode (N_PROF) object 2kB '33RO20161119' ... '33RO2...\n",
" station (N_PROF) object 2kB '1' '2' '3' ... '211' '212'\n",
" cast (N_PROF) int32 852B 3 2 1 1 1 1 ... 1 1 1 1 1 1\n",
" sample (N_PROF, N_LEVELS) object 9MB '3.0' '4.0' ... ''\n",
" time (N_PROF) datetime64[ns] 2kB 2016-11-24T14:17:...\n",
" latitude (N_PROF) float64 2kB 22.69 22.87 ... -68.07\n",
" longitude (N_PROF) float64 2kB -110.0 -110.0 ... -95.0\n",
" pressure (N_PROF, N_LEVELS) float64 9MB 3.0 4.0 ... nan\n",
"Dimensions without coordinates: N_PROF, N_LEVELS\n",
"Data variables: (12/16)\n",
" section_id (N_PROF) object 2kB 'P18' 'P18' ... 'P18' 'P18'\n",
" btm_depth (N_PROF) float64 2kB 2.625e+03 ... 4.435e+03\n",
" pressure_qc (N_PROF, N_LEVELS) float32 5MB 2.0 2.0 ... nan\n",
" ctd_temperature (N_PROF, N_LEVELS) float64 9MB 27.92 ... nan\n",
" ctd_temperature_qc (N_PROF, N_LEVELS) float32 5MB 3.0 3.0 ... nan\n",
" ctd_salinity (N_PROF, N_LEVELS) float64 9MB 34.53 ... nan\n",
" ... ...\n",
" ctd_beamcp (N_PROF, N_LEVELS) float64 9MB nan ... nan\n",
" ctd_beamcp_qc (N_PROF, N_LEVELS) float32 5MB nan 2.0 ... nan\n",
" ctd_beta700_raw (N_PROF, N_LEVELS) float64 9MB 0.076 ... nan\n",
" ctd_number_of_observations (N_PROF, N_LEVELS) float64 9MB 19.0 36.0 ... nan\n",
" profile_type (N_PROF) object 2kB 'C' 'C' 'C' ... 'C' 'C' 'C'\n",
" geometry_container float64 8B nan\n",
"Attributes:\n",
" Conventions: CF-1.8 CCHDO-1.0\n",
" cchdo_software_version: hydro 1.0.2.3\n",
" cchdo_parameters_version: params 0.1.21\n",
" comments: CTD,20200213CCHSIOSEE\\n Parameters removed fro...\n",
" featureType: profile