Created
January 30, 2024 19:10
-
-
Save MathewBiddle/44d3c41e3ee3f2325619ed5b4e0752dc to your computer and use it in GitHub Desktop.
read_nc_template.ipynb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nbformat": 4, | |
"nbformat_minor": 0, | |
"metadata": { | |
"colab": { | |
"provenance": [], | |
"authorship_tag": "ABX9TyO+XylmnUhpyaTmvu3I6jJ1", | |
"include_colab_link": true | |
}, | |
"kernelspec": { | |
"name": "python3", | |
"display_name": "Python 3" | |
}, | |
"language_info": { | |
"name": "python" | |
} | |
}, | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": { | |
"id": "view-in-github", | |
"colab_type": "text" | |
}, | |
"source": [ | |
"<a href=\"https://colab.research.google.com/gist/MathewBiddle/44d3c41e3ee3f2325619ed5b4e0752dc/read_nc_template.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"!wget https://github.com/ioos/erddap-gold-standard/raw/glider_dac_files/datasets/gliders/IOOS_Glider_NetCDF_v2.0.nc" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "FuN55wEaFEwO", | |
"outputId": "c1f28019-9e03-4ac8-8cfa-fc8e6f0bd4d7" | |
}, | |
"execution_count": 7, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"--2024-01-30 15:55:09-- https://github.com/ioos/erddap-gold-standard/raw/glider_dac_files/datasets/gliders/IOOS_Glider_NetCDF_v2.0.nc\n", | |
"Resolving github.com (github.com)... 192.30.255.112\n", | |
"Connecting to github.com (github.com)|192.30.255.112|:443... connected.\n", | |
"HTTP request sent, awaiting response... 302 Found\n", | |
"Location: https://raw.githubusercontent.com/ioos/erddap-gold-standard/glider_dac_files/datasets/gliders/IOOS_Glider_NetCDF_v2.0.nc [following]\n", | |
"--2024-01-30 15:55:09-- https://raw.githubusercontent.com/ioos/erddap-gold-standard/glider_dac_files/datasets/gliders/IOOS_Glider_NetCDF_v2.0.nc\n", | |
"Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...\n", | |
"Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.\n", | |
"HTTP request sent, awaiting response... 200 OK\n", | |
"Length: 77011 (75K) [application/octet-stream]\n", | |
"Saving to: ‘IOOS_Glider_NetCDF_v2.0.nc’\n", | |
"\n", | |
"IOOS_Glider_NetCDF_ 100%[===================>] 75.21K --.-KB/s in 0.008s \n", | |
"\n", | |
"2024-01-30 15:55:09 (9.43 MB/s) - ‘IOOS_Glider_NetCDF_v2.0.nc’ saved [77011/77011]\n", | |
"\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 8, | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 207 | |
}, | |
"id": "7oX-6y7FEUzu", | |
"outputId": "f4630b42-990c-48e4-8891-8ba931ab49f1" | |
}, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"<xarray.Dataset>\n", | |
"Dimensions: (time: 0)\n", | |
"Coordinates:\n", | |
" * time (time) datetime64[ns] \n", | |
"Data variables: (12/37)\n", | |
" trajectory |S20 ...\n", | |
" lat (time) float64 ...\n", | |
" lon (time) float64 ...\n", | |
" pressure (time) float64 ...\n", | |
" depth (time) float64 ...\n", | |
" temperature (time) float64 ...\n", | |
" ... ...\n", | |
" profile_lon_qc float32 ...\n", | |
" time_uv_qc float32 ...\n", | |
" lat_uv_qc float32 ...\n", | |
" lon_uv_qc float32 ...\n", | |
" u_qc float32 ...\n", | |
" v_qc float32 ...\n", | |
"Attributes: (12/34)\n", | |
" Conventions: CF-1.6, Unidata Dataset Discovery v1.0\n", | |
" Metadata_Conventions: CF-1.6, Unidata Dataset Discovery v1.0\n", | |
" acknowledegment: This deployment supported by ...\n", | |
" comment: \n", | |
" contributor_name: \n", | |
" contributor_role: \n", | |
" ... ...\n", | |
" sea_name: \n", | |
" source: Observational data from a profiling glider\n", | |
" standard_name_vocabulary: CF-v25\n", | |
" summary: The Rutgers University Coastal Ocean Observati...\n", | |
" title: \n", | |
" wmo_id: " | |
], | |
"text/html": [ | |
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n", | |
"<defs>\n", | |
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n", | |
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n", | |
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n", | |
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n", | |
"</symbol>\n", | |
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n", | |
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n", | |
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n", | |
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n", | |
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n", | |
"</symbol>\n", | |
"</defs>\n", | |
"</svg>\n", | |
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n", | |
" *\n", | |
" */\n", | |
"\n", | |
":root {\n", | |
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n", | |
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n", | |
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n", | |
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n", | |
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n", | |
" --xr-background-color: var(--jp-layout-color0, white);\n", | |
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n", | |
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n", | |
"}\n", | |
"\n", | |
"html[theme=dark],\n", | |
"body[data-theme=dark],\n", | |
"body.vscode-dark {\n", | |
" --xr-font-color0: rgba(255, 255, 255, 1);\n", | |
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n", | |
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n", | |
" --xr-border-color: #1F1F1F;\n", | |
" --xr-disabled-color: #515151;\n", | |
" --xr-background-color: #111111;\n", | |
" --xr-background-color-row-even: #111111;\n", | |
" --xr-background-color-row-odd: #313131;\n", | |
"}\n", | |
"\n", | |
".xr-wrap {\n", | |
" display: block !important;\n", | |
" min-width: 300px;\n", | |
" max-width: 700px;\n", | |
"}\n", | |
"\n", | |
".xr-text-repr-fallback {\n", | |
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-header {\n", | |
" padding-top: 6px;\n", | |
" padding-bottom: 6px;\n", | |
" margin-bottom: 4px;\n", | |
" border-bottom: solid 1px var(--xr-border-color);\n", | |
"}\n", | |
"\n", | |
".xr-header > div,\n", | |
".xr-header > ul {\n", | |
" display: inline;\n", | |
" margin-top: 0;\n", | |
" margin-bottom: 0;\n", | |
"}\n", | |
"\n", | |
".xr-obj-type,\n", | |
".xr-array-name {\n", | |
" margin-left: 2px;\n", | |
" margin-right: 10px;\n", | |
"}\n", | |
"\n", | |
".xr-obj-type {\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-sections {\n", | |
" padding-left: 0 !important;\n", | |
" display: grid;\n", | |
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n", | |
"}\n", | |
"\n", | |
".xr-section-item {\n", | |
" display: contents;\n", | |
"}\n", | |
"\n", | |
".xr-section-item input {\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-section-item input + label {\n", | |
" color: var(--xr-disabled-color);\n", | |
"}\n", | |
"\n", | |
".xr-section-item input:enabled + label {\n", | |
" cursor: pointer;\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-section-item input:enabled + label:hover {\n", | |
" color: var(--xr-font-color0);\n", | |
"}\n", | |
"\n", | |
".xr-section-summary {\n", | |
" grid-column: 1;\n", | |
" color: var(--xr-font-color2);\n", | |
" font-weight: 500;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary > span {\n", | |
" display: inline-block;\n", | |
" padding-left: 0.5em;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:disabled + label {\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in + label:before {\n", | |
" display: inline-block;\n", | |
" content: '►';\n", | |
" font-size: 11px;\n", | |
" width: 15px;\n", | |
" text-align: center;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:disabled + label:before {\n", | |
" color: var(--xr-disabled-color);\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:checked + label:before {\n", | |
" content: '▼';\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:checked + label > span {\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary,\n", | |
".xr-section-inline-details {\n", | |
" padding-top: 4px;\n", | |
" padding-bottom: 4px;\n", | |
"}\n", | |
"\n", | |
".xr-section-inline-details {\n", | |
" grid-column: 2 / -1;\n", | |
"}\n", | |
"\n", | |
".xr-section-details {\n", | |
" display: none;\n", | |
" grid-column: 1 / -1;\n", | |
" margin-bottom: 5px;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:checked ~ .xr-section-details {\n", | |
" display: contents;\n", | |
"}\n", | |
"\n", | |
".xr-array-wrap {\n", | |
" grid-column: 1 / -1;\n", | |
" display: grid;\n", | |
" grid-template-columns: 20px auto;\n", | |
"}\n", | |
"\n", | |
".xr-array-wrap > label {\n", | |
" grid-column: 1;\n", | |
" vertical-align: top;\n", | |
"}\n", | |
"\n", | |
".xr-preview {\n", | |
" color: var(--xr-font-color3);\n", | |
"}\n", | |
"\n", | |
".xr-array-preview,\n", | |
".xr-array-data {\n", | |
" padding: 0 5px !important;\n", | |
" grid-column: 2;\n", | |
"}\n", | |
"\n", | |
".xr-array-data,\n", | |
".xr-array-in:checked ~ .xr-array-preview {\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-array-in:checked ~ .xr-array-data,\n", | |
".xr-array-preview {\n", | |
" display: inline-block;\n", | |
"}\n", | |
"\n", | |
".xr-dim-list {\n", | |
" display: inline-block !important;\n", | |
" list-style: none;\n", | |
" padding: 0 !important;\n", | |
" margin: 0;\n", | |
"}\n", | |
"\n", | |
".xr-dim-list li {\n", | |
" display: inline-block;\n", | |
" padding: 0;\n", | |
" margin: 0;\n", | |
"}\n", | |
"\n", | |
".xr-dim-list:before {\n", | |
" content: '(';\n", | |
"}\n", | |
"\n", | |
".xr-dim-list:after {\n", | |
" content: ')';\n", | |
"}\n", | |
"\n", | |
".xr-dim-list li:not(:last-child):after {\n", | |
" content: ',';\n", | |
" padding-right: 5px;\n", | |
"}\n", | |
"\n", | |
".xr-has-index {\n", | |
" font-weight: bold;\n", | |
"}\n", | |
"\n", | |
".xr-var-list,\n", | |
".xr-var-item {\n", | |
" display: contents;\n", | |
"}\n", | |
"\n", | |
".xr-var-item > div,\n", | |
".xr-var-item label,\n", | |
".xr-var-item > .xr-var-name span {\n", | |
" background-color: var(--xr-background-color-row-even);\n", | |
" margin-bottom: 0;\n", | |
"}\n", | |
"\n", | |
".xr-var-item > .xr-var-name:hover span {\n", | |
" padding-right: 5px;\n", | |
"}\n", | |
"\n", | |
".xr-var-list > li:nth-child(odd) > div,\n", | |
".xr-var-list > li:nth-child(odd) > label,\n", | |
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n", | |
" background-color: var(--xr-background-color-row-odd);\n", | |
"}\n", | |
"\n", | |
".xr-var-name {\n", | |
" grid-column: 1;\n", | |
"}\n", | |
"\n", | |
".xr-var-dims {\n", | |
" grid-column: 2;\n", | |
"}\n", | |
"\n", | |
".xr-var-dtype {\n", | |
" grid-column: 3;\n", | |
" text-align: right;\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-var-preview {\n", | |
" grid-column: 4;\n", | |
"}\n", | |
"\n", | |
".xr-index-preview {\n", | |
" grid-column: 2 / 5;\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-var-name,\n", | |
".xr-var-dims,\n", | |
".xr-var-dtype,\n", | |
".xr-preview,\n", | |
".xr-attrs dt {\n", | |
" white-space: nowrap;\n", | |
" overflow: hidden;\n", | |
" text-overflow: ellipsis;\n", | |
" padding-right: 10px;\n", | |
"}\n", | |
"\n", | |
".xr-var-name:hover,\n", | |
".xr-var-dims:hover,\n", | |
".xr-var-dtype:hover,\n", | |
".xr-attrs dt:hover {\n", | |
" overflow: visible;\n", | |
" width: auto;\n", | |
" z-index: 1;\n", | |
"}\n", | |
"\n", | |
".xr-var-attrs,\n", | |
".xr-var-data,\n", | |
".xr-index-data {\n", | |
" display: none;\n", | |
" background-color: var(--xr-background-color) !important;\n", | |
" padding-bottom: 5px !important;\n", | |
"}\n", | |
"\n", | |
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n", | |
".xr-var-data-in:checked ~ .xr-var-data,\n", | |
".xr-index-data-in:checked ~ .xr-index-data {\n", | |
" display: block;\n", | |
"}\n", | |
"\n", | |
".xr-var-data > table {\n", | |
" float: right;\n", | |
"}\n", | |
"\n", | |
".xr-var-name span,\n", | |
".xr-var-data,\n", | |
".xr-index-name div,\n", | |
".xr-index-data,\n", | |
".xr-attrs {\n", | |
" padding-left: 25px !important;\n", | |
"}\n", | |
"\n", | |
".xr-attrs,\n", | |
".xr-var-attrs,\n", | |
".xr-var-data,\n", | |
".xr-index-data {\n", | |
" grid-column: 1 / -1;\n", | |
"}\n", | |
"\n", | |
"dl.xr-attrs {\n", | |
" padding: 0;\n", | |
" margin: 0;\n", | |
" display: grid;\n", | |
" grid-template-columns: 125px auto;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dt,\n", | |
".xr-attrs dd {\n", | |
" padding: 0;\n", | |
" margin: 0;\n", | |
" float: left;\n", | |
" padding-right: 10px;\n", | |
" width: auto;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dt {\n", | |
" font-weight: normal;\n", | |
" grid-column: 1;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dt:hover span {\n", | |
" display: inline-block;\n", | |
" background: var(--xr-background-color);\n", | |
" padding-right: 10px;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dd {\n", | |
" grid-column: 2;\n", | |
" white-space: pre-wrap;\n", | |
" word-break: break-all;\n", | |
"}\n", | |
"\n", | |
".xr-icon-database,\n", | |
".xr-icon-file-text2,\n", | |
".xr-no-icon {\n", | |
" display: inline-block;\n", | |
" vertical-align: middle;\n", | |
" width: 1em;\n", | |
" height: 1.5em !important;\n", | |
" stroke-width: 0;\n", | |
" stroke: currentColor;\n", | |
" fill: currentColor;\n", | |
"}\n", | |
"</style><pre class='xr-text-repr-fallback'><xarray.Dataset>\n", | |
"Dimensions: (time: 0)\n", | |
"Coordinates:\n", | |
" * time (time) datetime64[ns] \n", | |
"Data variables: (12/37)\n", | |
" trajectory |S20 ...\n", | |
" lat (time) float64 ...\n", | |
" lon (time) float64 ...\n", | |
" pressure (time) float64 ...\n", | |
" depth (time) float64 ...\n", | |
" temperature (time) float64 ...\n", | |
" ... ...\n", | |
" profile_lon_qc float32 ...\n", | |
" time_uv_qc float32 ...\n", | |
" lat_uv_qc float32 ...\n", | |
" lon_uv_qc float32 ...\n", | |
" u_qc float32 ...\n", | |
" v_qc float32 ...\n", | |
"Attributes: (12/34)\n", | |
" Conventions: CF-1.6, Unidata Dataset Discovery v1.0\n", | |
" Metadata_Conventions: CF-1.6, Unidata Dataset Discovery v1.0\n", | |
" acknowledegment: This deployment supported by ...\n", | |
" comment: \n", | |
" contributor_name: \n", | |
" contributor_role: \n", | |
" ... ...\n", | |
" sea_name: \n", | |
" source: Observational data from a profiling glider\n", | |
" standard_name_vocabulary: CF-v25\n", | |
" summary: The Rutgers University Coastal Ocean Observati...\n", | |
" title: \n", | |
" wmo_id: </pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-2f24ae85-50ad-4ca7-8a58-6450d4ca8d6b' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-2f24ae85-50ad-4ca7-8a58-6450d4ca8d6b' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span class='xr-has-index'>time</span>: 0</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-af2442e0-105b-40af-992c-87b906c516dc' class='xr-section-summary-in' type='checkbox' checked><label for='section-af2442e0-105b-40af-992c-87b906c516dc' class='xr-section-summary' >Coordinates: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>time</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>datetime64[ns]</div><div class='xr-var-preview xr-preview'></div><input id='attrs-5bb51bb9-f83b-40c9-9a36-9c467c4585c9' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-5bb51bb9-f83b-40c9-9a36-9c467c4585c9' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-dcc22f47-0684-4dfa-93b5-604af031b8b8' class='xr-var-data-in' type='checkbox'><label for='data-dcc22f47-0684-4dfa-93b5-604af031b8b8' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>ancillary_variables :</span></dt><dd>time_qc</dd><dt><span>comment :</span></dt><dd>Measured or calculated time at each point in the time-series</dd><dt><span>long_name :</span></dt><dd>Time</dd><dt><span>observation_type :</span></dt><dd>measured</dd><dt><span>standard_name :</span></dt><dd>time</dd></dl></div><div class='xr-var-data'><pre>array([], dtype='datetime64[ns]')</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-7462ba0f-32c2-4e1c-b367-dcc772adb823' class='xr-section-summary-in' type='checkbox' ><label for='section-7462ba0f-32c2-4e1c-b367-dcc772adb823' class='xr-section-summary' >Data variables: <span>(37)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>trajectory</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>|S20</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-98aa2f78-2385-49ce-b563-68ef79fa8205' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-98aa2f78-2385-49ce-b563-68ef79fa8205' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ceaaee4a-6cab-45f3-ac2a-58fb1c33f69c' class='xr-var-data-in' type='checkbox'><label for='data-ceaaee4a-6cab-45f3-ac2a-58fb1c33f69c' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>cf_role :</span></dt><dd>trajectory_id</dd><dt><span>comment :</span></dt><dd>A trajectory is a single deployment of a glider and may span multiple data files.</dd><dt><span>long_name :</span></dt><dd>Trajectory/Deployment Name</dd></dl></div><div class='xr-var-data'><pre>[1 values with dtype=|S20]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>lat</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-50a71e57-6e08-44f8-9569-3dfaab196c90' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-50a71e57-6e08-44f8-9569-3dfaab196c90' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9595c73f-7862-49b1-97e1-8a16549742a9' class='xr-var-data-in' type='checkbox'><label for='data-9595c73f-7862-49b1-97e1-8a16549742a9' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>ancillary_variables :</span></dt><dd>lat_qc</dd><dt><span>comment :</span></dt><dd>Interpolated latitude at each point in the time-series</dd><dt><span>coordinate_reference_frame :</span></dt><dd>urn:ogc:crs:EPSG::4326</dd><dt><span>long_name :</span></dt><dd>Latitude</dd><dt><span>observation_type :</span></dt><dd>measured</dd><dt><span>platform :</span></dt><dd>platform</dd><dt><span>reference :</span></dt><dd>WGS84</dd><dt><span>standard_name :</span></dt><dd>latitude</dd><dt><span>units :</span></dt><dd>degrees_north</dd><dt><span>valid_max :</span></dt><dd>90.0</dd><dt><span>valid_min :</span></dt><dd>-90.0</dd></dl></div><div class='xr-var-data'><pre>[0 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>lon</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-c090c013-1c28-40f0-a282-c5bb3b9bdbb6' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-c090c013-1c28-40f0-a282-c5bb3b9bdbb6' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-1a884363-c5e7-4466-971e-32a1cf4e3ffb' class='xr-var-data-in' type='checkbox'><label for='data-1a884363-c5e7-4466-971e-32a1cf4e3ffb' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>ancillary_variables :</span></dt><dd>lon_qc</dd><dt><span>comment :</span></dt><dd>Interpolated longitude at each point in the time-series.</dd><dt><span>coordinate_reference_frame :</span></dt><dd>urn:ogc:crs:EPSG::4326</dd><dt><span>long_name :</span></dt><dd>Longitude</dd><dt><span>observation_type :</span></dt><dd>measured</dd><dt><span>platform :</span></dt><dd>platform</dd><dt><span>reference :</span></dt><dd>WGS84</dd><dt><span>standard_name :</span></dt><dd>longitude</dd><dt><span>units :</span></dt><dd>degrees_east</dd><dt><span>valid_max :</span></dt><dd>180.0</dd><dt><span>valid_min :</span></dt><dd>-180.0</dd></dl></div><div class='xr-var-data'><pre>[0 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>pressure</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-8197ac0c-c8c6-43c1-8abf-a29daf4488c0' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-8197ac0c-c8c6-43c1-8abf-a29daf4488c0' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-4d75542a-0d3e-4f02-bcb3-881b14c80e24' class='xr-var-data-in' type='checkbox'><label for='data-4d75542a-0d3e-4f02-bcb3-881b14c80e24' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>accuracy :</span></dt><dd> </dd><dt><span>ancillary_variables :</span></dt><dd>pressure_qc</dd><dt><span>comment :</span></dt><dd> </dd><dt><span>instrument :</span></dt><dd>instrument_ctd</dd><dt><span>long_name :</span></dt><dd>Pressure</dd><dt><span>observation_type :</span></dt><dd>measured</dd><dt><span>platform :</span></dt><dd>platform</dd><dt><span>positive :</span></dt><dd>down</dd><dt><span>precision :</span></dt><dd> </dd><dt><span>reference_datum :</span></dt><dd>sea-surface</dd><dt><span>resolution :</span></dt><dd> </dd><dt><span>standard_name :</span></dt><dd>sea_water_pressure</dd><dt><span>units :</span></dt><dd>dbar</dd><dt><span>valid_max :</span></dt><dd>2000</dd><dt><span>valid_min :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>[0 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>depth</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-219cb0ae-d772-45a7-8ee7-318b19ec7d30' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-219cb0ae-d772-45a7-8ee7-318b19ec7d30' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-db834636-5a35-4b90-b14b-67f6dcdc8ae8' class='xr-var-data-in' type='checkbox'><label for='data-db834636-5a35-4b90-b14b-67f6dcdc8ae8' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>accuracy :</span></dt><dd> </dd><dt><span>ancillary_variables :</span></dt><dd>depth_qc</dd><dt><span>comment :</span></dt><dd> </dd><dt><span>instrument :</span></dt><dd>instrument_ctd</dd><dt><span>long_name :</span></dt><dd>Depth</dd><dt><span>observation_type :</span></dt><dd>calculated</dd><dt><span>platform :</span></dt><dd>platform</dd><dt><span>positive :</span></dt><dd>down</dd><dt><span>precision :</span></dt><dd> </dd><dt><span>reference_datum :</span></dt><dd>sea-surface</dd><dt><span>resolution :</span></dt><dd> </dd><dt><span>standard_name :</span></dt><dd>depth</dd><dt><span>units :</span></dt><dd>m</dd><dt><span>valid_max :</span></dt><dd>2000</dd><dt><span>valid_min :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>[0 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>temperature</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-e11cf418-36bf-4842-929f-a52a0bcc55e2' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-e11cf418-36bf-4842-929f-a52a0bcc55e2' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-4fe02ccc-2316-47d2-b73c-cb14cd19ee76' class='xr-var-data-in' type='checkbox'><label for='data-4fe02ccc-2316-47d2-b73c-cb14cd19ee76' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>accuracy :</span></dt><dd> </dd><dt><span>ancillary_variables :</span></dt><dd>temperature_qc</dd><dt><span>instrument :</span></dt><dd>instrument_ctd</dd><dt><span>long_name :</span></dt><dd>Temperature</dd><dt><span>observation_type :</span></dt><dd>measured</dd><dt><span>platform :</span></dt><dd>platform</dd><dt><span>precision :</span></dt><dd> </dd><dt><span>resolution :</span></dt><dd> </dd><dt><span>standard_name :</span></dt><dd>sea_water_temperature</dd><dt><span>units :</span></dt><dd>Celsius</dd><dt><span>valid_max :</span></dt><dd>40.0</dd><dt><span>valid_min :</span></dt><dd>-5.0</dd></dl></div><div class='xr-var-data'><pre>[0 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>conductivity</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-e99dca9e-93e1-402f-a336-5b17add6b1b2' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-e99dca9e-93e1-402f-a336-5b17add6b1b2' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-a91c5da6-9806-48da-bc60-d44fe826ad02' class='xr-var-data-in' type='checkbox'><label for='data-a91c5da6-9806-48da-bc60-d44fe826ad02' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>accuracy :</span></dt><dd> </dd><dt><span>ancillary_variables :</span></dt><dd>conductivity_qc</dd><dt><span>instrument :</span></dt><dd>instrument_ctd</dd><dt><span>long_name :</span></dt><dd>Conductivity</dd><dt><span>observation_type :</span></dt><dd>measured</dd><dt><span>platform :</span></dt><dd>platform</dd><dt><span>precision :</span></dt><dd> </dd><dt><span>resolution :</span></dt><dd> </dd><dt><span>standard_name :</span></dt><dd>sea_water_electrical_conductivity</dd><dt><span>units :</span></dt><dd>S m-1</dd><dt><span>valid_max :</span></dt><dd>10.0</dd><dt><span>valid_min :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[0 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>salinity</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-5d1e8ffc-1fbf-4bb9-b7cd-92c6d6198e6e' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-5d1e8ffc-1fbf-4bb9-b7cd-92c6d6198e6e' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-1061001d-b286-405e-bddf-62adaf54ad76' class='xr-var-data-in' type='checkbox'><label for='data-1061001d-b286-405e-bddf-62adaf54ad76' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>accuracy :</span></dt><dd> </dd><dt><span>ancillary_variables :</span></dt><dd>salinity_qc</dd><dt><span>instrument :</span></dt><dd>instrument_ctd</dd><dt><span>long_name :</span></dt><dd>Salinity</dd><dt><span>observation_type :</span></dt><dd>calculated</dd><dt><span>platform :</span></dt><dd>platform</dd><dt><span>precision :</span></dt><dd> </dd><dt><span>resolution :</span></dt><dd> </dd><dt><span>standard_name :</span></dt><dd>sea_water_practical_salinity</dd><dt><span>units :</span></dt><dd>1</dd><dt><span>valid_max :</span></dt><dd>40.0</dd><dt><span>valid_min :</span></dt><dd>0.0</dd></dl></div><div class='xr-var-data'><pre>[0 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>density</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-f7aba4d8-d94c-4ff4-b9cd-f7b0d6b8325c' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-f7aba4d8-d94c-4ff4-b9cd-f7b0d6b8325c' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-34e8549e-95ad-4c57-a101-c5d549f3ca80' class='xr-var-data-in' type='checkbox'><label for='data-34e8549e-95ad-4c57-a101-c5d549f3ca80' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>accuracy :</span></dt><dd> </dd><dt><span>ancillary_variables :</span></dt><dd>density_qc</dd><dt><span>instrument :</span></dt><dd>instrument_ctd</dd><dt><span>long_name :</span></dt><dd>Density</dd><dt><span>observation_type :</span></dt><dd>calculated</dd><dt><span>platform :</span></dt><dd>platform</dd><dt><span>precision :</span></dt><dd> </dd><dt><span>resolution :</span></dt><dd> </dd><dt><span>standard_name :</span></dt><dd>sea_water_density</dd><dt><span>units :</span></dt><dd>kg m-3</dd><dt><span>valid_max :</span></dt><dd>1040.0</dd><dt><span>valid_min :</span></dt><dd>1015.0</dd></dl></div><div class='xr-var-data'><pre>[0 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>profile_id</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-65890a5a-7c22-4048-8428-b0e605018942' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-65890a5a-7c22-4048-8428-b0e605018942' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-c058b2b0-14e8-4a51-9aae-a65646eafc63' class='xr-var-data-in' type='checkbox'><label for='data-c058b2b0-14e8-4a51-9aae-a65646eafc63' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>comment :</span></dt><dd>Sequential profile number within the trajectory. This value is unique in each file that is part of a single trajectory/deployment.</dd><dt><span>long_name :</span></dt><dd>Profile ID</dd><dt><span>valid_max :</span></dt><dd>2147483647</dd><dt><span>valid_min :</span></dt><dd>1</dd></dl></div><div class='xr-var-data'><pre>[1 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>profile_time</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>datetime64[ns]</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-618d18dd-d6af-4222-9ab1-ed6e07666e79' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-618d18dd-d6af-4222-9ab1-ed6e07666e79' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-d8ae5151-ef26-4248-9de4-229aa01ff418' class='xr-var-data-in' type='checkbox'><label for='data-d8ae5151-ef26-4248-9de4-229aa01ff418' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>comment :</span></dt><dd>Timestamp corresponding to the mid-point of the profile</dd><dt><span>long_name :</span></dt><dd>Profile Center Time</dd><dt><span>observation_type :</span></dt><dd>calculated</dd><dt><span>platform :</span></dt><dd>platform</dd><dt><span>standard_name :</span></dt><dd>time</dd></dl></div><div class='xr-var-data'><pre>[1 values with dtype=datetime64[ns]]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>profile_lat</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-f60660dd-d795-4364-85cb-bfd853b4dcee' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-f60660dd-d795-4364-85cb-bfd853b4dcee' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-b676e9b7-03b7-4d86-9dfd-cbc832c0bd71' class='xr-var-data-in' type='checkbox'><label for='data-b676e9b7-03b7-4d86-9dfd-cbc832c0bd71' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>comment :</span></dt><dd>Value is interpolated to provide an estimate of the latitude at the mid-point of the profile</dd><dt><span>long_name :</span></dt><dd>Profile Center Latitude</dd><dt><span>observation_type :</span></dt><dd>calculated</dd><dt><span>platform :</span></dt><dd>platform</dd><dt><span>standard_name :</span></dt><dd>latitude</dd><dt><span>units :</span></dt><dd>degrees_north</dd><dt><span>valid_max :</span></dt><dd>90.0</dd><dt><span>valid_min :</span></dt><dd>-90.0</dd></dl></div><div class='xr-var-data'><pre>[1 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>profile_lon</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-52364af6-d96f-4e95-b439-d9d820a52e46' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-52364af6-d96f-4e95-b439-d9d820a52e46' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-35b72087-1670-480c-8493-db16d7ad4ac5' class='xr-var-data-in' type='checkbox'><label for='data-35b72087-1670-480c-8493-db16d7ad4ac5' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>comment :</span></dt><dd>Value is interpolated to provide an estimate of the longitude at the mid-point of the profile</dd><dt><span>long_name :</span></dt><dd>Profile Center Longitude</dd><dt><span>observation_type :</span></dt><dd>calculated</dd><dt><span>platform :</span></dt><dd>platform</dd><dt><span>standard_name :</span></dt><dd>longitude</dd><dt><span>units :</span></dt><dd>degrees_east</dd><dt><span>valid_max :</span></dt><dd>180.0</dd><dt><span>valid_min :</span></dt><dd>-180.0</dd></dl></div><div class='xr-var-data'><pre>[1 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>time_uv</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>datetime64[ns]</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-60f7138d-4684-4cb6-9126-7077dac1c160' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-60f7138d-4684-4cb6-9126-7077dac1c160' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-14a70c1c-ccca-426e-9621-601e791b8b62' class='xr-var-data-in' type='checkbox'><label for='data-14a70c1c-ccca-426e-9621-601e791b8b62' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>comment :</span></dt><dd>The depth-averaged current is an estimate of the net current measured while the glider is underwater. The value is calculated over the entire underwater segment, which may consist of 1 or more dives.</dd><dt><span>long_name :</span></dt><dd>Depth-Averaged Time</dd><dt><span>observation_type :</span></dt><dd>calculated</dd><dt><span>standard_name :</span></dt><dd>time</dd></dl></div><div class='xr-var-data'><pre>[1 values with dtype=datetime64[ns]]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>lat_uv</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-91517b1f-5e44-4504-bde7-006f35989fe1' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-91517b1f-5e44-4504-bde7-006f35989fe1' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-433fff80-6f29-4f66-81df-efb783957151' class='xr-var-data-in' type='checkbox'><label for='data-433fff80-6f29-4f66-81df-efb783957151' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>comment :</span></dt><dd>The depth-averaged current is an estimate of the net current measured while the glider is underwater. The value is calculated over the entire underwater segment, which may consist of 1 or more dives.</dd><dt><span>long_name :</span></dt><dd>Depth-Averaged Latitude</dd><dt><span>observation_type :</span></dt><dd>calculated</dd><dt><span>platform :</span></dt><dd>platform</dd><dt><span>standard_name :</span></dt><dd>latitude</dd><dt><span>units :</span></dt><dd>degrees_north</dd><dt><span>valid_max :</span></dt><dd>90.0</dd><dt><span>valid_min :</span></dt><dd>-90.0</dd></dl></div><div class='xr-var-data'><pre>[1 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>lon_uv</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-dea8624d-dad2-450c-999a-e40ebae8d38b' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-dea8624d-dad2-450c-999a-e40ebae8d38b' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-7a51608a-22d7-47b7-ac20-a89fbef2dca2' class='xr-var-data-in' type='checkbox'><label for='data-7a51608a-22d7-47b7-ac20-a89fbef2dca2' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>comment :</span></dt><dd>The depth-averaged current is an estimate of the net current measured while the glider is underwater. The value is calculated over the entire underwater segment, which may consist of 1 or more dives.</dd><dt><span>long_name :</span></dt><dd>Depth-Averaged Longitude</dd><dt><span>observation_type :</span></dt><dd>calculated</dd><dt><span>platform :</span></dt><dd>platform</dd><dt><span>standard_name :</span></dt><dd>longitude</dd><dt><span>units :</span></dt><dd>degrees_east</dd><dt><span>valid_max :</span></dt><dd>180.0</dd><dt><span>valid_min :</span></dt><dd>-180.0</dd></dl></div><div class='xr-var-data'><pre>[1 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>u</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-9e72d7cc-ccf8-4b4c-b8f9-94142879b2c1' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-9e72d7cc-ccf8-4b4c-b8f9-94142879b2c1' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-5021e390-f6f5-41a6-ad29-871d8f215a41' class='xr-var-data-in' type='checkbox'><label for='data-5021e390-f6f5-41a6-ad29-871d8f215a41' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>comment :</span></dt><dd>The depth-averaged current is an estimate of the net current measured while the glider is underwater. The value is calculated over the entire underwater segment, which may consist of 1 or more dives.</dd><dt><span>long_name :</span></dt><dd>Depth-Averaged Eastward Sea Water Velocity</dd><dt><span>observation_type :</span></dt><dd>calculated</dd><dt><span>platform :</span></dt><dd>platform</dd><dt><span>standard_name :</span></dt><dd>eastward_sea_water_velocity</dd><dt><span>units :</span></dt><dd>m s-1</dd><dt><span>valid_max :</span></dt><dd>10.0</dd><dt><span>valid_min :</span></dt><dd>-10.0</dd></dl></div><div class='xr-var-data'><pre>[1 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>v</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-3a0d3b6d-4566-40f1-8365-9419218ee779' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-3a0d3b6d-4566-40f1-8365-9419218ee779' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-c06e50b3-0fb1-47e2-81d5-85a666b276f5' class='xr-var-data-in' type='checkbox'><label for='data-c06e50b3-0fb1-47e2-81d5-85a666b276f5' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>comment :</span></dt><dd>The depth-averaged current is an estimate of the net current measured while the glider is underwater. The value is calculated over the entire underwater segment, which may consist of 1 or more dives.</dd><dt><span>long_name :</span></dt><dd>Depth-Averaged Northward Sea Water Velocity</dd><dt><span>observation_type :</span></dt><dd>calculated</dd><dt><span>platform :</span></dt><dd>platform</dd><dt><span>standard_name :</span></dt><dd>northward_sea_water_velocity</dd><dt><span>units :</span></dt><dd>m s-1</dd><dt><span>valid_max :</span></dt><dd>10.0</dd><dt><span>valid_min :</span></dt><dd>-10.0</dd></dl></div><div class='xr-var-data'><pre>[1 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>platform</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-923d7bb9-f08a-4786-8f67-9c2df1a95706' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-923d7bb9-f08a-4786-8f67-9c2df1a95706' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-72354268-534c-4521-af19-6d0c5ccf47f4' class='xr-var-data-in' type='checkbox'><label for='data-72354268-534c-4521-af19-6d0c5ccf47f4' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>comment :</span></dt><dd> </dd><dt><span>id :</span></dt><dd> </dd><dt><span>instrument :</span></dt><dd>instrument_ctd</dd><dt><span>long_name :</span></dt><dd> </dd><dt><span>type :</span></dt><dd>platform</dd><dt><span>wmo_id :</span></dt><dd> </dd></dl></div><div class='xr-var-data'><pre>[1 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>instrument_ctd</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-c3f14730-803d-49ce-8474-7e3456458d6c' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-c3f14730-803d-49ce-8474-7e3456458d6c' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-b5a72b36-94a4-45ad-a02f-d81cd474edd7' class='xr-var-data-in' type='checkbox'><label for='data-b5a72b36-94a4-45ad-a02f-d81cd474edd7' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>calibration_date :</span></dt><dd> </dd><dt><span>calibration_report :</span></dt><dd> </dd><dt><span>comment :</span></dt><dd>pumped CTD</dd><dt><span>factory_calibrated :</span></dt><dd> </dd><dt><span>long_name :</span></dt><dd>Seabird Glider Payload CTD</dd><dt><span>make_model :</span></dt><dd>Seabird GPCTD</dd><dt><span>platform :</span></dt><dd>platform</dd><dt><span>serial_number :</span></dt><dd> </dd><dt><span>type :</span></dt><dd>platform</dd></dl></div><div class='xr-var-data'><pre>[1 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>time_qc</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-a288bb55-7242-41d6-95da-6cc98e1b99a0' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-a288bb55-7242-41d6-95da-6cc98e1b99a0' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-af46386d-2682-4ef8-88c5-5ff587d951c0' class='xr-var-data-in' type='checkbox'><label for='data-af46386d-2682-4ef8-88c5-5ff587d951c0' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>flag_meanings :</span></dt><dd>no_qc_performed good_data probably_good_data bad_data_that_are_potentially_correctable bad_data value_changed not_used not_used interpolated_value missing_value</dd><dt><span>flag_values :</span></dt><dd>[0 1 2 3 4 5 6 7 8 9]</dd><dt><span>long_name :</span></dt><dd>time Quality Flag</dd><dt><span>standard_name :</span></dt><dd>time status_flag</dd><dt><span>valid_max :</span></dt><dd>9</dd><dt><span>valid_min :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>[0 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>lat_qc</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-c7eb3fe9-f294-4950-af37-55cf4da4c47c' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-c7eb3fe9-f294-4950-af37-55cf4da4c47c' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-05bacb2f-96b2-4dd4-9248-8dfe5a128247' class='xr-var-data-in' type='checkbox'><label for='data-05bacb2f-96b2-4dd4-9248-8dfe5a128247' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>flag_meanings :</span></dt><dd>no_qc_performed good_data probably_good_data bad_data_that_are_potentially_correctable bad_data value_changed not_used not_used interpolated_value missing_value</dd><dt><span>flag_values :</span></dt><dd>[0 1 2 3 4 5 6 7 8 9]</dd><dt><span>long_name :</span></dt><dd>lat Quality Flag</dd><dt><span>standard_name :</span></dt><dd>latitude status_flag</dd><dt><span>valid_max :</span></dt><dd>9</dd><dt><span>valid_min :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>[0 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>lon_qc</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-088cc40b-8a5f-40b1-9689-04ebb3d3ad8c' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-088cc40b-8a5f-40b1-9689-04ebb3d3ad8c' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-4110ca71-eeed-404b-9308-022ba3b191f3' class='xr-var-data-in' type='checkbox'><label for='data-4110ca71-eeed-404b-9308-022ba3b191f3' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>flag_meanings :</span></dt><dd>no_qc_performed good_data probably_good_data bad_data_that_are_potentially_correctable bad_data value_changed not_used not_used interpolated_value missing_value</dd><dt><span>flag_values :</span></dt><dd>[0 1 2 3 4 5 6 7 8 9]</dd><dt><span>long_name :</span></dt><dd>lon Quality Flag</dd><dt><span>standard_name :</span></dt><dd>longitude status_flag</dd><dt><span>valid_max :</span></dt><dd>9</dd><dt><span>valid_min :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>[0 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>pressure_qc</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-52e9e89f-e606-458c-937a-799751222bbf' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-52e9e89f-e606-458c-937a-799751222bbf' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-1c58950d-fb3e-449f-8d7b-a04f7be50bc8' class='xr-var-data-in' type='checkbox'><label for='data-1c58950d-fb3e-449f-8d7b-a04f7be50bc8' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>flag_meanings :</span></dt><dd>no_qc_performed good_data probably_good_data bad_data_that_are_potentially_correctable bad_data value_changed not_used not_used interpolated_value missing_value</dd><dt><span>flag_values :</span></dt><dd>[0 1 2 3 4 5 6 7 8 9]</dd><dt><span>long_name :</span></dt><dd>pressure Quality Flag</dd><dt><span>standard_name :</span></dt><dd>sea_water_pressure status_flag</dd><dt><span>valid_max :</span></dt><dd>9</dd><dt><span>valid_min :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>[0 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>depth_qc</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-67ee1536-efa8-44a5-bc67-b4b0ec30b1ca' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-67ee1536-efa8-44a5-bc67-b4b0ec30b1ca' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-55423e14-ec3f-4700-bd77-1edc01b9704d' class='xr-var-data-in' type='checkbox'><label for='data-55423e14-ec3f-4700-bd77-1edc01b9704d' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>flag_meanings :</span></dt><dd>no_qc_performed good_data probably_good_data bad_data_that_are_potentially_correctable bad_data value_changed not_used not_used interpolated_value missing_value</dd><dt><span>flag_values :</span></dt><dd>[0 1 2 3 4 5 6 7 8 9]</dd><dt><span>long_name :</span></dt><dd>depth Quality Flag</dd><dt><span>standard_name :</span></dt><dd>depth status_flag</dd><dt><span>valid_max :</span></dt><dd>9</dd><dt><span>valid_min :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>[0 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>temperature_qc</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-1b74be69-e63a-4b19-80e1-3dc3e7a9d51d' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-1b74be69-e63a-4b19-80e1-3dc3e7a9d51d' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-e905e3df-51b8-414c-b982-9ef41971bb57' class='xr-var-data-in' type='checkbox'><label for='data-e905e3df-51b8-414c-b982-9ef41971bb57' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>flag_meanings :</span></dt><dd>no_qc_performed good_data probably_good_data bad_data_that_are_potentially_correctable bad_data value_changed not_used not_used interpolated_value missing_value</dd><dt><span>flag_values :</span></dt><dd>[0 1 2 3 4 5 6 7 8 9]</dd><dt><span>long_name :</span></dt><dd>temperature Quality Flag</dd><dt><span>standard_name :</span></dt><dd>sea_water_temperature status_flag</dd><dt><span>valid_max :</span></dt><dd>9</dd><dt><span>valid_min :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>[0 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>conductivity_qc</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-72700a02-a7a8-4f10-b94e-8d6fd9123d04' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-72700a02-a7a8-4f10-b94e-8d6fd9123d04' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-becabf47-3aed-4d88-9f41-4b874aba942b' class='xr-var-data-in' type='checkbox'><label for='data-becabf47-3aed-4d88-9f41-4b874aba942b' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>flag_meanings :</span></dt><dd>no_qc_performed good_data probably_good_data bad_data_that_are_potentially_correctable bad_data value_changed not_used not_used interpolated_value missing_value</dd><dt><span>flag_values :</span></dt><dd>[0 1 2 3 4 5 6 7 8 9]</dd><dt><span>long_name :</span></dt><dd>conductivity Quality Flag</dd><dt><span>standard_name :</span></dt><dd>sea_water_electrical_conductivity status_flag</dd><dt><span>valid_max :</span></dt><dd>9</dd><dt><span>valid_min :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>[0 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>salinity_qc</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-228461d5-0b19-4fb1-819b-d08540606cea' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-228461d5-0b19-4fb1-819b-d08540606cea' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-36c93f6e-387c-47a0-8739-f7744af3c551' class='xr-var-data-in' type='checkbox'><label for='data-36c93f6e-387c-47a0-8739-f7744af3c551' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>flag_meanings :</span></dt><dd>no_qc_performed good_data probably_good_data bad_data_that_are_potentially_correctable bad_data value_changed not_used not_used interpolated_value missing_value</dd><dt><span>flag_values :</span></dt><dd>[0 1 2 3 4 5 6 7 8 9]</dd><dt><span>long_name :</span></dt><dd>salinity Quality Flag</dd><dt><span>standard_name :</span></dt><dd>sea_water_practical_salinity status_flag</dd><dt><span>valid_max :</span></dt><dd>9</dd><dt><span>valid_min :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>[0 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>density_qc</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-b5624747-204c-4959-be3c-c17fb01fb0a8' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-b5624747-204c-4959-be3c-c17fb01fb0a8' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-d4a2e16e-498d-432f-b970-cf315998b944' class='xr-var-data-in' type='checkbox'><label for='data-d4a2e16e-498d-432f-b970-cf315998b944' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>flag_meanings :</span></dt><dd>no_qc_performed good_data probably_good_data bad_data_that_are_potentially_correctable bad_data value_changed not_used not_used interpolated_value missing_value</dd><dt><span>flag_values :</span></dt><dd>[0 1 2 3 4 5 6 7 8 9]</dd><dt><span>long_name :</span></dt><dd>density Quality Flag</dd><dt><span>standard_name :</span></dt><dd>sea_water_density status_flag</dd><dt><span>valid_max :</span></dt><dd>9</dd><dt><span>valid_min :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>[0 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>profile_time_qc</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-1f272335-6038-4294-b083-6ae9f0a88125' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-1f272335-6038-4294-b083-6ae9f0a88125' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-48caed3a-80c9-4332-92d1-5c95ce3c5ed5' class='xr-var-data-in' type='checkbox'><label for='data-48caed3a-80c9-4332-92d1-5c95ce3c5ed5' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>flag_meanings :</span></dt><dd>no_qc_performed good_data probably_good_data bad_data_that_are_potentially_correctable bad_data value_changed not_used not_used interpolated_value missing_value</dd><dt><span>flag_values :</span></dt><dd>[0 1 2 3 4 5 6 7 8 9]</dd><dt><span>long_name :</span></dt><dd>profile_time Quality Flag</dd><dt><span>standard_name :</span></dt><dd>time status_flag</dd><dt><span>valid_max :</span></dt><dd>9</dd><dt><span>valid_min :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>[1 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>profile_lat_qc</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-c0bd0f9c-4fe5-43ad-8107-a7d7db00d7ca' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-c0bd0f9c-4fe5-43ad-8107-a7d7db00d7ca' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-d0bf53d4-6b0d-4393-adbe-633e5ae9c4ba' class='xr-var-data-in' type='checkbox'><label for='data-d0bf53d4-6b0d-4393-adbe-633e5ae9c4ba' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>flag_meanings :</span></dt><dd>no_qc_performed good_data probably_good_data bad_data_that_are_potentially_correctable bad_data value_changed not_used not_used interpolated_value missing_value</dd><dt><span>flag_values :</span></dt><dd>[0 1 2 3 4 5 6 7 8 9]</dd><dt><span>long_name :</span></dt><dd>profile_lat Quality Flag</dd><dt><span>standard_name :</span></dt><dd>latitude status_flag</dd><dt><span>valid_max :</span></dt><dd>9</dd><dt><span>valid_min :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>[1 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>profile_lon_qc</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-8e08e375-1954-4fa6-86f1-24e92c371d05' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-8e08e375-1954-4fa6-86f1-24e92c371d05' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-59aa4543-d663-47be-afc1-571f6b804abf' class='xr-var-data-in' type='checkbox'><label for='data-59aa4543-d663-47be-afc1-571f6b804abf' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>flag_meanings :</span></dt><dd>no_qc_performed good_data probably_good_data bad_data_that_are_potentially_correctable bad_data value_changed not_used not_used interpolated_value missing_value</dd><dt><span>flag_values :</span></dt><dd>[0 1 2 3 4 5 6 7 8 9]</dd><dt><span>long_name :</span></dt><dd>profile_lon Quality Flag</dd><dt><span>standard_name :</span></dt><dd>longitude status_flag</dd><dt><span>valid_max :</span></dt><dd>9</dd><dt><span>valid_min :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>[1 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>time_uv_qc</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-f14a0d53-4cc2-4446-b2ea-584715c7135b' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-f14a0d53-4cc2-4446-b2ea-584715c7135b' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-a8a4b186-7bcf-4ebb-bc29-bcbb3d5a97a0' class='xr-var-data-in' type='checkbox'><label for='data-a8a4b186-7bcf-4ebb-bc29-bcbb3d5a97a0' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>flag_meanings :</span></dt><dd>no_qc_performed good_data probably_good_data bad_data_that_are_potentially_correctable bad_data value_changed not_used not_used interpolated_value missing_value</dd><dt><span>flag_values :</span></dt><dd>[0 1 2 3 4 5 6 7 8 9]</dd><dt><span>long_name :</span></dt><dd>time_uv Quality Flag</dd><dt><span>standard_name :</span></dt><dd>time status_flag</dd><dt><span>valid_max :</span></dt><dd>9</dd><dt><span>valid_min :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>[1 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>lat_uv_qc</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-8a22d784-f16f-42bb-9d14-aef3abb94088' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-8a22d784-f16f-42bb-9d14-aef3abb94088' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9d5a4742-5a47-4dfd-b33c-6f652d5db8e8' class='xr-var-data-in' type='checkbox'><label for='data-9d5a4742-5a47-4dfd-b33c-6f652d5db8e8' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>flag_meanings :</span></dt><dd>no_qc_performed good_data probably_good_data bad_data_that_are_potentially_correctable bad_data value_changed not_used not_used interpolated_value missing_value</dd><dt><span>flag_values :</span></dt><dd>[0 1 2 3 4 5 6 7 8 9]</dd><dt><span>long_name :</span></dt><dd>lat_uv Quality Flag</dd><dt><span>standard_name :</span></dt><dd>latitude status_flag</dd><dt><span>valid_max :</span></dt><dd>9</dd><dt><span>valid_min :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>[1 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>lon_uv_qc</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-b28f23c4-ea34-4d09-9309-b1f5119bf827' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-b28f23c4-ea34-4d09-9309-b1f5119bf827' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-93cbbe1e-a27d-481f-bd69-030b38d6d5cd' class='xr-var-data-in' type='checkbox'><label for='data-93cbbe1e-a27d-481f-bd69-030b38d6d5cd' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>flag_meanings :</span></dt><dd>no_qc_performed good_data probably_good_data bad_data_that_are_potentially_correctable bad_data value_changed not_used not_used interpolated_value missing_value</dd><dt><span>flag_values :</span></dt><dd>[0 1 2 3 4 5 6 7 8 9]</dd><dt><span>long_name :</span></dt><dd>lon_uv Quality Flag</dd><dt><span>standard_name :</span></dt><dd>longitude status_flag</dd><dt><span>valid_max :</span></dt><dd>9</dd><dt><span>valid_min :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>[1 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>u_qc</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-12e3be17-6126-4693-9445-b969c786bd70' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-12e3be17-6126-4693-9445-b969c786bd70' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-fcc4d400-4808-47aa-9ce0-76940c1482c3' class='xr-var-data-in' type='checkbox'><label for='data-fcc4d400-4808-47aa-9ce0-76940c1482c3' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>flag_meanings :</span></dt><dd>no_qc_performed good_data probably_good_data bad_data_that_are_potentially_correctable bad_data value_changed not_used not_used interpolated_value missing_value</dd><dt><span>flag_values :</span></dt><dd>[0 1 2 3 4 5 6 7 8 9]</dd><dt><span>long_name :</span></dt><dd>u Quality Flag</dd><dt><span>standard_name :</span></dt><dd>eastward_sea_water_velocity status_flag</dd><dt><span>valid_max :</span></dt><dd>9</dd><dt><span>valid_min :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>[1 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>v_qc</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-f17ccfec-b56b-4fdf-9487-97ec9fb4789c' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-f17ccfec-b56b-4fdf-9487-97ec9fb4789c' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-c581f05c-241f-42f1-869b-29bd4039ec77' class='xr-var-data-in' type='checkbox'><label for='data-c581f05c-241f-42f1-869b-29bd4039ec77' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>flag_meanings :</span></dt><dd>no_qc_performed good_data probably_good_data bad_data_that_are_potentially_correctable bad_data value_changed not_used not_used interpolated_value missing_value</dd><dt><span>flag_values :</span></dt><dd>[0 1 2 3 4 5 6 7 8 9]</dd><dt><span>long_name :</span></dt><dd>v Quality Flag</dd><dt><span>standard_name :</span></dt><dd>northward_sea_water_velocity status_flag</dd><dt><span>valid_max :</span></dt><dd>9</dd><dt><span>valid_min :</span></dt><dd>0</dd></dl></div><div class='xr-var-data'><pre>[1 values with dtype=float32]</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-12c35656-e81e-4fde-8bca-85b171c42e4a' class='xr-section-summary-in' type='checkbox' ><label for='section-12c35656-e81e-4fde-8bca-85b171c42e4a' class='xr-section-summary' >Indexes: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>time</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-9ef02655-6880-4b80-a625-47623fe761c2' class='xr-index-data-in' type='checkbox'/><label for='index-9ef02655-6880-4b80-a625-47623fe761c2' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(DatetimeIndex([], dtype='datetime64[ns]', name='time', freq=None))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-9dbd0d13-3f47-44c6-9bf6-743374bb3945' class='xr-section-summary-in' type='checkbox' ><label for='section-9dbd0d13-3f47-44c6-9bf6-743374bb3945' class='xr-section-summary' >Attributes: <span>(34)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>Conventions :</span></dt><dd>CF-1.6, Unidata Dataset Discovery v1.0</dd><dt><span>Metadata_Conventions :</span></dt><dd>CF-1.6, Unidata Dataset Discovery v1.0</dd><dt><span>acknowledegment :</span></dt><dd>This deployment supported by ...</dd><dt><span>comment :</span></dt><dd> </dd><dt><span>contributor_name :</span></dt><dd> </dd><dt><span>contributor_role :</span></dt><dd> </dd><dt><span>creator_email :</span></dt><dd> </dd><dt><span>creator_name :</span></dt><dd> </dd><dt><span>creator_url :</span></dt><dd> </dd><dt><span>date_created :</span></dt><dd> </dd><dt><span>date_issued :</span></dt><dd> </dd><dt><span>date_modified :</span></dt><dd> </dd><dt><span>format_version :</span></dt><dd>IOOS_Glider_NetCDF_v2.0.nc</dd><dt><span>history :</span></dt><dd> </dd><dt><span>id :</span></dt><dd> </dd><dt><span>institution :</span></dt><dd> </dd><dt><span>keywords :</span></dt><dd>AUVS > Autonomous Underwater Vehicles, Oceans > Ocean Pressure > Water Pressure, Oceans > Ocean Temperature > Water Temperature, Oceans > Salinity/Density > Conductivity, Oceans > Salinity/Density > Density, Oceans > Salinity/Density > Salinity</dd><dt><span>keywords_vocabulary :</span></dt><dd>GCMD Science Keywords</dd><dt><span>license :</span></dt><dd>This data may be redistributed and used without restriction. Data provided as is with no expressed or implied assurance of quality assurance or quality control</dd><dt><span>metadata_link :</span></dt><dd> </dd><dt><span>naming_authority :</span></dt><dd>edu.rutgers.marine</dd><dt><span>platform_type :</span></dt><dd>Slocum Glider</dd><dt><span>processing_level :</span></dt><dd> </dd><dt><span>project :</span></dt><dd> </dd><dt><span>publisher_email :</span></dt><dd> </dd><dt><span>publisher_name :</span></dt><dd> </dd><dt><span>publisher_url :</span></dt><dd> </dd><dt><span>references :</span></dt><dd> </dd><dt><span>sea_name :</span></dt><dd> </dd><dt><span>source :</span></dt><dd>Observational data from a profiling glider</dd><dt><span>standard_name_vocabulary :</span></dt><dd>CF-v25</dd><dt><span>summary :</span></dt><dd>The Rutgers University Coastal Ocean Observation Lab has deployed autonomous underwater gliders around the world since 1990. Gliders are small, free-swimming, unmanned vehicles that use changes in buoyancy to move vertically and horizontally through the water column in a saw-tooth pattern. They are deployed for days to several months and gather detailed information about the physical, chemical and biological processes of the world's The Slocum glider was designed and oceans. built by Teledyne Webb Research Corporation, Falmouth, MA, USA. This dataset contains observational sub-surface profile data of the water-column.</dd><dt><span>title :</span></dt><dd> </dd><dt><span>wmo_id :</span></dt><dd> </dd></dl></div></li></ul></div></div>" | |
] | |
}, | |
"metadata": {}, | |
"execution_count": 8 | |
} | |
], | |
"source": [ | |
"file = 'IOOS_Glider_NetCDF_v2.0.nc'\n", | |
"\n", | |
"import xarray as xr\n", | |
"\n", | |
"ds = xr.open_dataset(file)\n", | |
"\n", | |
"ds" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"print(ds.variables)" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "YPELja4wEfGO", | |
"outputId": "5f03a160-0937-4fa1-850a-b8d421219c4c" | |
}, | |
"execution_count": 11, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"Frozen({'trajectory': <xarray.Variable ()>\n", | |
"[1 values with dtype=|S20]\n", | |
"Attributes:\n", | |
" cf_role: trajectory_id\n", | |
" comment: A trajectory is a single deployment of a glider and may span ...\n", | |
" long_name: Trajectory/Deployment Name, 'time': <xarray.IndexVariable 'time' (time: 0)>\n", | |
"array([], dtype='datetime64[ns]')\n", | |
"Attributes:\n", | |
" ancillary_variables: time_qc\n", | |
" comment: Measured or calculated time at each point in the ti...\n", | |
" long_name: Time\n", | |
" observation_type: measured\n", | |
" standard_name: time, 'lat': <xarray.Variable (time: 0)>\n", | |
"[0 values with dtype=float64]\n", | |
"Attributes:\n", | |
" ancillary_variables: lat_qc\n", | |
" comment: Interpolated latitude at each point in the t...\n", | |
" coordinate_reference_frame: urn:ogc:crs:EPSG::4326\n", | |
" long_name: Latitude\n", | |
" observation_type: measured\n", | |
" platform: platform\n", | |
" reference: WGS84\n", | |
" standard_name: latitude\n", | |
" units: degrees_north\n", | |
" valid_max: 90.0\n", | |
" valid_min: -90.0, 'lon': <xarray.Variable (time: 0)>\n", | |
"[0 values with dtype=float64]\n", | |
"Attributes:\n", | |
" ancillary_variables: lon_qc\n", | |
" comment: Interpolated longitude at each point in the ...\n", | |
" coordinate_reference_frame: urn:ogc:crs:EPSG::4326\n", | |
" long_name: Longitude\n", | |
" observation_type: measured\n", | |
" platform: platform\n", | |
" reference: WGS84\n", | |
" standard_name: longitude\n", | |
" units: degrees_east\n", | |
" valid_max: 180.0\n", | |
" valid_min: -180.0, 'pressure': <xarray.Variable (time: 0)>\n", | |
"[0 values with dtype=float64]\n", | |
"Attributes: (12/15)\n", | |
" accuracy: \n", | |
" ancillary_variables: pressure_qc\n", | |
" comment: \n", | |
" instrument: instrument_ctd\n", | |
" long_name: Pressure\n", | |
" observation_type: measured\n", | |
" ... ...\n", | |
" reference_datum: sea-surface\n", | |
" resolution: \n", | |
" standard_name: sea_water_pressure\n", | |
" units: dbar\n", | |
" valid_max: 2000\n", | |
" valid_min: 0, 'depth': <xarray.Variable (time: 0)>\n", | |
"[0 values with dtype=float64]\n", | |
"Attributes: (12/15)\n", | |
" accuracy: \n", | |
" ancillary_variables: depth_qc\n", | |
" comment: \n", | |
" instrument: instrument_ctd\n", | |
" long_name: Depth\n", | |
" observation_type: calculated\n", | |
" ... ...\n", | |
" reference_datum: sea-surface\n", | |
" resolution: \n", | |
" standard_name: depth\n", | |
" units: m\n", | |
" valid_max: 2000\n", | |
" valid_min: 0, 'temperature': <xarray.Variable (time: 0)>\n", | |
"[0 values with dtype=float64]\n", | |
"Attributes:\n", | |
" accuracy: \n", | |
" ancillary_variables: temperature_qc\n", | |
" instrument: instrument_ctd\n", | |
" long_name: Temperature\n", | |
" observation_type: measured\n", | |
" platform: platform\n", | |
" precision: \n", | |
" resolution: \n", | |
" standard_name: sea_water_temperature\n", | |
" units: Celsius\n", | |
" valid_max: 40.0\n", | |
" valid_min: -5.0, 'conductivity': <xarray.Variable (time: 0)>\n", | |
"[0 values with dtype=float64]\n", | |
"Attributes:\n", | |
" accuracy: \n", | |
" ancillary_variables: conductivity_qc\n", | |
" instrument: instrument_ctd\n", | |
" long_name: Conductivity\n", | |
" observation_type: measured\n", | |
" platform: platform\n", | |
" precision: \n", | |
" resolution: \n", | |
" standard_name: sea_water_electrical_conductivity\n", | |
" units: S m-1\n", | |
" valid_max: 10.0\n", | |
" valid_min: 0.0, 'salinity': <xarray.Variable (time: 0)>\n", | |
"[0 values with dtype=float64]\n", | |
"Attributes:\n", | |
" accuracy: \n", | |
" ancillary_variables: salinity_qc\n", | |
" instrument: instrument_ctd\n", | |
" long_name: Salinity\n", | |
" observation_type: calculated\n", | |
" platform: platform\n", | |
" precision: \n", | |
" resolution: \n", | |
" standard_name: sea_water_practical_salinity\n", | |
" units: 1\n", | |
" valid_max: 40.0\n", | |
" valid_min: 0.0, 'density': <xarray.Variable (time: 0)>\n", | |
"[0 values with dtype=float64]\n", | |
"Attributes:\n", | |
" accuracy: \n", | |
" ancillary_variables: density_qc\n", | |
" instrument: instrument_ctd\n", | |
" long_name: Density\n", | |
" observation_type: calculated\n", | |
" platform: platform\n", | |
" precision: \n", | |
" resolution: \n", | |
" standard_name: sea_water_density\n", | |
" units: kg m-3\n", | |
" valid_max: 1040.0\n", | |
" valid_min: 1015.0, 'profile_id': <xarray.Variable ()>\n", | |
"[1 values with dtype=float64]\n", | |
"Attributes:\n", | |
" comment: Sequential profile number within the trajectory. This value ...\n", | |
" long_name: Profile ID\n", | |
" valid_max: 2147483647\n", | |
" valid_min: 1, 'profile_time': <xarray.Variable ()>\n", | |
"[1 values with dtype=datetime64[ns]]\n", | |
"Attributes:\n", | |
" comment: Timestamp corresponding to the mid-point of the profile\n", | |
" long_name: Profile Center Time\n", | |
" observation_type: calculated\n", | |
" platform: platform\n", | |
" standard_name: time, 'profile_lat': <xarray.Variable ()>\n", | |
"[1 values with dtype=float64]\n", | |
"Attributes:\n", | |
" comment: Value is interpolated to provide an estimate of the la...\n", | |
" long_name: Profile Center Latitude\n", | |
" observation_type: calculated\n", | |
" platform: platform\n", | |
" standard_name: latitude\n", | |
" units: degrees_north\n", | |
" valid_max: 90.0\n", | |
" valid_min: -90.0, 'profile_lon': <xarray.Variable ()>\n", | |
"[1 values with dtype=float64]\n", | |
"Attributes:\n", | |
" comment: Value is interpolated to provide an estimate of the lo...\n", | |
" long_name: Profile Center Longitude\n", | |
" observation_type: calculated\n", | |
" platform: platform\n", | |
" standard_name: longitude\n", | |
" units: degrees_east\n", | |
" valid_max: 180.0\n", | |
" valid_min: -180.0, 'time_uv': <xarray.Variable ()>\n", | |
"[1 values with dtype=datetime64[ns]]\n", | |
"Attributes:\n", | |
" comment: The depth-averaged current is an estimate of the net c...\n", | |
" long_name: Depth-Averaged Time\n", | |
" observation_type: calculated\n", | |
" standard_name: time, 'lat_uv': <xarray.Variable ()>\n", | |
"[1 values with dtype=float64]\n", | |
"Attributes:\n", | |
" comment: The depth-averaged current is an estimate of the net c...\n", | |
" long_name: Depth-Averaged Latitude\n", | |
" observation_type: calculated\n", | |
" platform: platform\n", | |
" standard_name: latitude\n", | |
" units: degrees_north\n", | |
" valid_max: 90.0\n", | |
" valid_min: -90.0, 'lon_uv': <xarray.Variable ()>\n", | |
"[1 values with dtype=float64]\n", | |
"Attributes:\n", | |
" comment: The depth-averaged current is an estimate of the net c...\n", | |
" long_name: Depth-Averaged Longitude\n", | |
" observation_type: calculated\n", | |
" platform: platform\n", | |
" standard_name: longitude\n", | |
" units: degrees_east\n", | |
" valid_max: 180.0\n", | |
" valid_min: -180.0, 'u': <xarray.Variable ()>\n", | |
"[1 values with dtype=float64]\n", | |
"Attributes:\n", | |
" comment: The depth-averaged current is an estimate of the net c...\n", | |
" long_name: Depth-Averaged Eastward Sea Water Velocity\n", | |
" observation_type: calculated\n", | |
" platform: platform\n", | |
" standard_name: eastward_sea_water_velocity\n", | |
" units: m s-1\n", | |
" valid_max: 10.0\n", | |
" valid_min: -10.0, 'v': <xarray.Variable ()>\n", | |
"[1 values with dtype=float64]\n", | |
"Attributes:\n", | |
" comment: The depth-averaged current is an estimate of the net c...\n", | |
" long_name: Depth-Averaged Northward Sea Water Velocity\n", | |
" observation_type: calculated\n", | |
" platform: platform\n", | |
" standard_name: northward_sea_water_velocity\n", | |
" units: m s-1\n", | |
" valid_max: 10.0\n", | |
" valid_min: -10.0, 'platform': <xarray.Variable ()>\n", | |
"[1 values with dtype=float64]\n", | |
"Attributes:\n", | |
" comment: \n", | |
" id: \n", | |
" instrument: instrument_ctd\n", | |
" long_name: \n", | |
" type: platform\n", | |
" wmo_id: , 'instrument_ctd': <xarray.Variable ()>\n", | |
"[1 values with dtype=float64]\n", | |
"Attributes:\n", | |
" calibration_date: \n", | |
" calibration_report: \n", | |
" comment: pumped CTD\n", | |
" factory_calibrated: \n", | |
" long_name: Seabird Glider Payload CTD\n", | |
" make_model: Seabird GPCTD\n", | |
" platform: platform\n", | |
" serial_number: \n", | |
" type: platform, 'time_qc': <xarray.Variable (time: 0)>\n", | |
"[0 values with dtype=float32]\n", | |
"Attributes:\n", | |
" flag_meanings: no_qc_performed good_data probably_good_data bad_data_tha...\n", | |
" flag_values: [0 1 2 3 4 5 6 7 8 9]\n", | |
" long_name: time Quality Flag\n", | |
" standard_name: time status_flag\n", | |
" valid_max: 9\n", | |
" valid_min: 0, 'lat_qc': <xarray.Variable (time: 0)>\n", | |
"[0 values with dtype=float32]\n", | |
"Attributes:\n", | |
" flag_meanings: no_qc_performed good_data probably_good_data bad_data_tha...\n", | |
" flag_values: [0 1 2 3 4 5 6 7 8 9]\n", | |
" long_name: lat Quality Flag\n", | |
" standard_name: latitude status_flag\n", | |
" valid_max: 9\n", | |
" valid_min: 0, 'lon_qc': <xarray.Variable (time: 0)>\n", | |
"[0 values with dtype=float32]\n", | |
"Attributes:\n", | |
" flag_meanings: no_qc_performed good_data probably_good_data bad_data_tha...\n", | |
" flag_values: [0 1 2 3 4 5 6 7 8 9]\n", | |
" long_name: lon Quality Flag\n", | |
" standard_name: longitude status_flag\n", | |
" valid_max: 9\n", | |
" valid_min: 0, 'pressure_qc': <xarray.Variable (time: 0)>\n", | |
"[0 values with dtype=float32]\n", | |
"Attributes:\n", | |
" flag_meanings: no_qc_performed good_data probably_good_data bad_data_tha...\n", | |
" flag_values: [0 1 2 3 4 5 6 7 8 9]\n", | |
" long_name: pressure Quality Flag\n", | |
" standard_name: sea_water_pressure status_flag\n", | |
" valid_max: 9\n", | |
" valid_min: 0, 'depth_qc': <xarray.Variable (time: 0)>\n", | |
"[0 values with dtype=float32]\n", | |
"Attributes:\n", | |
" flag_meanings: no_qc_performed good_data probably_good_data bad_data_tha...\n", | |
" flag_values: [0 1 2 3 4 5 6 7 8 9]\n", | |
" long_name: depth Quality Flag\n", | |
" standard_name: depth status_flag\n", | |
" valid_max: 9\n", | |
" valid_min: 0, 'temperature_qc': <xarray.Variable (time: 0)>\n", | |
"[0 values with dtype=float32]\n", | |
"Attributes:\n", | |
" flag_meanings: no_qc_performed good_data probably_good_data bad_data_tha...\n", | |
" flag_values: [0 1 2 3 4 5 6 7 8 9]\n", | |
" long_name: temperature Quality Flag\n", | |
" standard_name: sea_water_temperature status_flag\n", | |
" valid_max: 9\n", | |
" valid_min: 0, 'conductivity_qc': <xarray.Variable (time: 0)>\n", | |
"[0 values with dtype=float32]\n", | |
"Attributes:\n", | |
" flag_meanings: no_qc_performed good_data probably_good_data bad_data_tha...\n", | |
" flag_values: [0 1 2 3 4 5 6 7 8 9]\n", | |
" long_name: conductivity Quality Flag\n", | |
" standard_name: sea_water_electrical_conductivity status_flag\n", | |
" valid_max: 9\n", | |
" valid_min: 0, 'salinity_qc': <xarray.Variable (time: 0)>\n", | |
"[0 values with dtype=float32]\n", | |
"Attributes:\n", | |
" flag_meanings: no_qc_performed good_data probably_good_data bad_data_tha...\n", | |
" flag_values: [0 1 2 3 4 5 6 7 8 9]\n", | |
" long_name: salinity Quality Flag\n", | |
" standard_name: sea_water_practical_salinity status_flag\n", | |
" valid_max: 9\n", | |
" valid_min: 0, 'density_qc': <xarray.Variable (time: 0)>\n", | |
"[0 values with dtype=float32]\n", | |
"Attributes:\n", | |
" flag_meanings: no_qc_performed good_data probably_good_data bad_data_tha...\n", | |
" flag_values: [0 1 2 3 4 5 6 7 8 9]\n", | |
" long_name: density Quality Flag\n", | |
" standard_name: sea_water_density status_flag\n", | |
" valid_max: 9\n", | |
" valid_min: 0, 'profile_time_qc': <xarray.Variable ()>\n", | |
"[1 values with dtype=float32]\n", | |
"Attributes:\n", | |
" flag_meanings: no_qc_performed good_data probably_good_data bad_data_tha...\n", | |
" flag_values: [0 1 2 3 4 5 6 7 8 9]\n", | |
" long_name: profile_time Quality Flag\n", | |
" standard_name: time status_flag\n", | |
" valid_max: 9\n", | |
" valid_min: 0, 'profile_lat_qc': <xarray.Variable ()>\n", | |
"[1 values with dtype=float32]\n", | |
"Attributes:\n", | |
" flag_meanings: no_qc_performed good_data probably_good_data bad_data_tha...\n", | |
" flag_values: [0 1 2 3 4 5 6 7 8 9]\n", | |
" long_name: profile_lat Quality Flag\n", | |
" standard_name: latitude status_flag\n", | |
" valid_max: 9\n", | |
" valid_min: 0, 'profile_lon_qc': <xarray.Variable ()>\n", | |
"[1 values with dtype=float32]\n", | |
"Attributes:\n", | |
" flag_meanings: no_qc_performed good_data probably_good_data bad_data_tha...\n", | |
" flag_values: [0 1 2 3 4 5 6 7 8 9]\n", | |
" long_name: profile_lon Quality Flag\n", | |
" standard_name: longitude status_flag\n", | |
" valid_max: 9\n", | |
" valid_min: 0, 'time_uv_qc': <xarray.Variable ()>\n", | |
"[1 values with dtype=float32]\n", | |
"Attributes:\n", | |
" flag_meanings: no_qc_performed good_data probably_good_data bad_data_tha...\n", | |
" flag_values: [0 1 2 3 4 5 6 7 8 9]\n", | |
" long_name: time_uv Quality Flag\n", | |
" standard_name: time status_flag\n", | |
" valid_max: 9\n", | |
" valid_min: 0, 'lat_uv_qc': <xarray.Variable ()>\n", | |
"[1 values with dtype=float32]\n", | |
"Attributes:\n", | |
" flag_meanings: no_qc_performed good_data probably_good_data bad_data_tha...\n", | |
" flag_values: [0 1 2 3 4 5 6 7 8 9]\n", | |
" long_name: lat_uv Quality Flag\n", | |
" standard_name: latitude status_flag\n", | |
" valid_max: 9\n", | |
" valid_min: 0, 'lon_uv_qc': <xarray.Variable ()>\n", | |
"[1 values with dtype=float32]\n", | |
"Attributes:\n", | |
" flag_meanings: no_qc_performed good_data probably_good_data bad_data_tha...\n", | |
" flag_values: [0 1 2 3 4 5 6 7 8 9]\n", | |
" long_name: lon_uv Quality Flag\n", | |
" standard_name: longitude status_flag\n", | |
" valid_max: 9\n", | |
" valid_min: 0, 'u_qc': <xarray.Variable ()>\n", | |
"[1 values with dtype=float32]\n", | |
"Attributes:\n", | |
" flag_meanings: no_qc_performed good_data probably_good_data bad_data_tha...\n", | |
" flag_values: [0 1 2 3 4 5 6 7 8 9]\n", | |
" long_name: u Quality Flag\n", | |
" standard_name: eastward_sea_water_velocity status_flag\n", | |
" valid_max: 9\n", | |
" valid_min: 0, 'v_qc': <xarray.Variable ()>\n", | |
"[1 values with dtype=float32]\n", | |
"Attributes:\n", | |
" flag_meanings: no_qc_performed good_data probably_good_data bad_data_tha...\n", | |
" flag_values: [0 1 2 3 4 5 6 7 8 9]\n", | |
" long_name: v Quality Flag\n", | |
" standard_name: northward_sea_water_velocity status_flag\n", | |
" valid_max: 9\n", | |
" valid_min: 0})\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"import pandas as pd\n", | |
"\n", | |
"times = pd.date_range(\"2024-01-30T00:00:00Z\", periods=4, freq=\"1min\")\n", | |
"\n", | |
"print(times)" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "QP3EkQlCFTcR", | |
"outputId": "4b15dc16-2dd2-4023-fc2d-5213caec4662" | |
}, | |
"execution_count": 17, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"name": "stdout", | |
"text": [ | |
"DatetimeIndex(['2024-01-30 00:00:00+00:00', '2024-01-30 00:01:00+00:00',\n", | |
" '2024-01-30 00:02:00+00:00', '2024-01-30 00:03:00+00:00'],\n", | |
" dtype='datetime64[ns, UTC]', freq='T')\n" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"ds['time'] = times" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 321 | |
}, | |
"id": "XtOeuEwQGUr_", | |
"outputId": "7953f65b-9f0b-46bd-c5f5-d6753dbd7d8c" | |
}, | |
"execution_count": 21, | |
"outputs": [ | |
{ | |
"output_type": "error", | |
"ename": "ValueError", | |
"evalue": "conflicting sizes for dimension 'time': length 0 on 'lat' and length 4 on {'time': 'time'}", | |
"traceback": [ | |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)", | |
"\u001b[0;32m<ipython-input-21-f207b279a572>\u001b[0m in \u001b[0;36m<cell line: 1>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mds\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m'time'\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mtimes\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", | |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/xarray/core/dataset.py\u001b[0m in \u001b[0;36m__setitem__\u001b[0;34m(self, key, value)\u001b[0m\n\u001b[1;32m 1535\u001b[0m \u001b[0;34m\"object can be stored under a single key.\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1536\u001b[0m )\n\u001b[0;32m-> 1537\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mupdate\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m{\u001b[0m\u001b[0mkey\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mvalue\u001b[0m\u001b[0;34m}\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1538\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1539\u001b[0m \u001b[0;32melif\u001b[0m \u001b[0mutils\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0miterable_of_hashable\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mkey\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/xarray/core/dataset.py\u001b[0m in \u001b[0;36mupdate\u001b[0;34m(self, other)\u001b[0m\n\u001b[1;32m 5251\u001b[0m \u001b[0mDataset\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmerge\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5252\u001b[0m \"\"\"\n\u001b[0;32m-> 5253\u001b[0;31m \u001b[0mmerge_result\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mdataset_update_method\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mother\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 5254\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_replace\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0minplace\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mTrue\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mmerge_result\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_asdict\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5255\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n", | |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/xarray/core/merge.py\u001b[0m in \u001b[0;36mdataset_update_method\u001b[0;34m(dataset, other)\u001b[0m\n\u001b[1;32m 1102\u001b[0m \u001b[0mother\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mkey\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mvalue\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdrop_vars\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mcoord_names\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1103\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1104\u001b[0;31m return merge_core(\n\u001b[0m\u001b[1;32m 1105\u001b[0m \u001b[0;34m[\u001b[0m\u001b[0mdataset\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mother\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1106\u001b[0m \u001b[0mpriority_arg\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/xarray/core/merge.py\u001b[0m in \u001b[0;36mmerge_core\u001b[0;34m(objects, compat, join, combine_attrs, priority_arg, explicit_coords, indexes, fill_value)\u001b[0m\n\u001b[1;32m 759\u001b[0m )\n\u001b[1;32m 760\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 761\u001b[0;31m \u001b[0mdims\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mcalculate_dimensions\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mvariables\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 762\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 763\u001b[0m \u001b[0mcoord_names\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mnoncoord_names\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mdetermine_coords\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mcoerced\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/xarray/core/variable.py\u001b[0m in \u001b[0;36mcalculate_dimensions\u001b[0;34m(variables)\u001b[0m\n\u001b[1;32m 3280\u001b[0m \u001b[0mlast_used\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mdim\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mk\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3281\u001b[0m \u001b[0;32melif\u001b[0m \u001b[0mdims\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mdim\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m!=\u001b[0m \u001b[0msize\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 3282\u001b[0;31m raise ValueError(\n\u001b[0m\u001b[1;32m 3283\u001b[0m \u001b[0;34mf\"conflicting sizes for dimension {dim!r}: \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3284\u001b[0m \u001b[0;34mf\"length {size} on {k!r} and length {dims[dim]} on {last_used!r}\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
"\u001b[0;31mValueError\u001b[0m: conflicting sizes for dimension 'time': length 0 on 'lat' and length 4 on {'time': 'time'}" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"ds.coords[\"time\"] = times" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 321 | |
}, | |
"id": "IMQOsfi_HiWC", | |
"outputId": "ce79ded2-fd60-4d1b-b342-01826f2db2e2" | |
}, | |
"execution_count": 22, | |
"outputs": [ | |
{ | |
"output_type": "error", | |
"ename": "ValueError", | |
"evalue": "conflicting sizes for dimension 'time': length 0 on 'lat' and length 4 on {'time': 'time'}", | |
"traceback": [ | |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)", | |
"\u001b[0;32m<ipython-input-22-9ae45fb64ff9>\u001b[0m in \u001b[0;36m<cell line: 1>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mds\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcoords\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m\"time\"\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mtimes\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", | |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/xarray/core/coordinates.py\u001b[0m in \u001b[0;36m__setitem__\u001b[0;34m(self, key, value)\u001b[0m\n\u001b[1;32m 39\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 40\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m__setitem__\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mkey\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mHashable\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mvalue\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mAny\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;34m->\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 41\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mupdate\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m{\u001b[0m\u001b[0mkey\u001b[0m\u001b[0;34m:\u001b[0m \u001b[0mvalue\u001b[0m\u001b[0;34m}\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 42\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 43\u001b[0m \u001b[0;34m@\u001b[0m\u001b[0mproperty\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/xarray/core/coordinates.py\u001b[0m in \u001b[0;36mupdate\u001b[0;34m(self, other)\u001b[0m\n\u001b[1;32m 170\u001b[0m \u001b[0;34m[\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mvariables\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mother_vars\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mpriority_arg\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mindexes\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mxindexes\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 171\u001b[0m )\n\u001b[0;32m--> 172\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_update_coords\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mcoords\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mindexes\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 173\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 174\u001b[0m \u001b[0;32mdef\u001b[0m \u001b[0m_merge_raw\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mother\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mreflexive\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/xarray/core/coordinates.py\u001b[0m in \u001b[0;36m_update_coords\u001b[0;34m(self, coords, indexes)\u001b[0m\n\u001b[1;32m 303\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 304\u001b[0m \u001b[0;31m# check for inconsistent state *before* modifying anything in-place\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 305\u001b[0;31m \u001b[0mdims\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mcalculate_dimensions\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mvariables\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 306\u001b[0m \u001b[0mnew_coord_names\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mcoords\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 307\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mdim\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msize\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mdims\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mitems\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/xarray/core/variable.py\u001b[0m in \u001b[0;36mcalculate_dimensions\u001b[0;34m(variables)\u001b[0m\n\u001b[1;32m 3280\u001b[0m \u001b[0mlast_used\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mdim\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mk\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3281\u001b[0m \u001b[0;32melif\u001b[0m \u001b[0mdims\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0mdim\u001b[0m\u001b[0;34m]\u001b[0m \u001b[0;34m!=\u001b[0m \u001b[0msize\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 3282\u001b[0;31m raise ValueError(\n\u001b[0m\u001b[1;32m 3283\u001b[0m \u001b[0;34mf\"conflicting sizes for dimension {dim!r}: \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3284\u001b[0m \u001b[0;34mf\"length {size} on {k!r} and length {dims[dim]} on {last_used!r}\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
"\u001b[0;31mValueError\u001b[0m: conflicting sizes for dimension 'time': length 0 on 'lat' and length 4 on {'time': 'time'}" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"ds[\"time\"]" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 264 | |
}, | |
"id": "_GzYbGYbH725", | |
"outputId": "0f0c0098-0ddd-4f67-f600-739d7cf59c6c" | |
}, | |
"execution_count": 23, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"<xarray.DataArray 'time' (time: 0)>\n", | |
"array([], dtype='datetime64[ns]')\n", | |
"Coordinates:\n", | |
" * time (time) datetime64[ns] \n", | |
"Attributes:\n", | |
" ancillary_variables: time_qc\n", | |
" comment: Measured or calculated time at each point in the ti...\n", | |
" long_name: Time\n", | |
" observation_type: measured\n", | |
" standard_name: time" | |
], | |
"text/html": [ | |
"<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n", | |
"<defs>\n", | |
"<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n", | |
"<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n", | |
"<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n", | |
"<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n", | |
"</symbol>\n", | |
"<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n", | |
"<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n", | |
"<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n", | |
"<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n", | |
"<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n", | |
"</symbol>\n", | |
"</defs>\n", | |
"</svg>\n", | |
"<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n", | |
" *\n", | |
" */\n", | |
"\n", | |
":root {\n", | |
" --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n", | |
" --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n", | |
" --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n", | |
" --xr-border-color: var(--jp-border-color2, #e0e0e0);\n", | |
" --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n", | |
" --xr-background-color: var(--jp-layout-color0, white);\n", | |
" --xr-background-color-row-even: var(--jp-layout-color1, white);\n", | |
" --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n", | |
"}\n", | |
"\n", | |
"html[theme=dark],\n", | |
"body[data-theme=dark],\n", | |
"body.vscode-dark {\n", | |
" --xr-font-color0: rgba(255, 255, 255, 1);\n", | |
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n", | |
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n", | |
" --xr-border-color: #1F1F1F;\n", | |
" --xr-disabled-color: #515151;\n", | |
" --xr-background-color: #111111;\n", | |
" --xr-background-color-row-even: #111111;\n", | |
" --xr-background-color-row-odd: #313131;\n", | |
"}\n", | |
"\n", | |
".xr-wrap {\n", | |
" display: block !important;\n", | |
" min-width: 300px;\n", | |
" max-width: 700px;\n", | |
"}\n", | |
"\n", | |
".xr-text-repr-fallback {\n", | |
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-header {\n", | |
" padding-top: 6px;\n", | |
" padding-bottom: 6px;\n", | |
" margin-bottom: 4px;\n", | |
" border-bottom: solid 1px var(--xr-border-color);\n", | |
"}\n", | |
"\n", | |
".xr-header > div,\n", | |
".xr-header > ul {\n", | |
" display: inline;\n", | |
" margin-top: 0;\n", | |
" margin-bottom: 0;\n", | |
"}\n", | |
"\n", | |
".xr-obj-type,\n", | |
".xr-array-name {\n", | |
" margin-left: 2px;\n", | |
" margin-right: 10px;\n", | |
"}\n", | |
"\n", | |
".xr-obj-type {\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-sections {\n", | |
" padding-left: 0 !important;\n", | |
" display: grid;\n", | |
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n", | |
"}\n", | |
"\n", | |
".xr-section-item {\n", | |
" display: contents;\n", | |
"}\n", | |
"\n", | |
".xr-section-item input {\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-section-item input + label {\n", | |
" color: var(--xr-disabled-color);\n", | |
"}\n", | |
"\n", | |
".xr-section-item input:enabled + label {\n", | |
" cursor: pointer;\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-section-item input:enabled + label:hover {\n", | |
" color: var(--xr-font-color0);\n", | |
"}\n", | |
"\n", | |
".xr-section-summary {\n", | |
" grid-column: 1;\n", | |
" color: var(--xr-font-color2);\n", | |
" font-weight: 500;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary > span {\n", | |
" display: inline-block;\n", | |
" padding-left: 0.5em;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:disabled + label {\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in + label:before {\n", | |
" display: inline-block;\n", | |
" content: '►';\n", | |
" font-size: 11px;\n", | |
" width: 15px;\n", | |
" text-align: center;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:disabled + label:before {\n", | |
" color: var(--xr-disabled-color);\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:checked + label:before {\n", | |
" content: '▼';\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:checked + label > span {\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary,\n", | |
".xr-section-inline-details {\n", | |
" padding-top: 4px;\n", | |
" padding-bottom: 4px;\n", | |
"}\n", | |
"\n", | |
".xr-section-inline-details {\n", | |
" grid-column: 2 / -1;\n", | |
"}\n", | |
"\n", | |
".xr-section-details {\n", | |
" display: none;\n", | |
" grid-column: 1 / -1;\n", | |
" margin-bottom: 5px;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:checked ~ .xr-section-details {\n", | |
" display: contents;\n", | |
"}\n", | |
"\n", | |
".xr-array-wrap {\n", | |
" grid-column: 1 / -1;\n", | |
" display: grid;\n", | |
" grid-template-columns: 20px auto;\n", | |
"}\n", | |
"\n", | |
".xr-array-wrap > label {\n", | |
" grid-column: 1;\n", | |
" vertical-align: top;\n", | |
"}\n", | |
"\n", | |
".xr-preview {\n", | |
" color: var(--xr-font-color3);\n", | |
"}\n", | |
"\n", | |
".xr-array-preview,\n", | |
".xr-array-data {\n", | |
" padding: 0 5px !important;\n", | |
" grid-column: 2;\n", | |
"}\n", | |
"\n", | |
".xr-array-data,\n", | |
".xr-array-in:checked ~ .xr-array-preview {\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-array-in:checked ~ .xr-array-data,\n", | |
".xr-array-preview {\n", | |
" display: inline-block;\n", | |
"}\n", | |
"\n", | |
".xr-dim-list {\n", | |
" display: inline-block !important;\n", | |
" list-style: none;\n", | |
" padding: 0 !important;\n", | |
" margin: 0;\n", | |
"}\n", | |
"\n", | |
".xr-dim-list li {\n", | |
" display: inline-block;\n", | |
" padding: 0;\n", | |
" margin: 0;\n", | |
"}\n", | |
"\n", | |
".xr-dim-list:before {\n", | |
" content: '(';\n", | |
"}\n", | |
"\n", | |
".xr-dim-list:after {\n", | |
" content: ')';\n", | |
"}\n", | |
"\n", | |
".xr-dim-list li:not(:last-child):after {\n", | |
" content: ',';\n", | |
" padding-right: 5px;\n", | |
"}\n", | |
"\n", | |
".xr-has-index {\n", | |
" font-weight: bold;\n", | |
"}\n", | |
"\n", | |
".xr-var-list,\n", | |
".xr-var-item {\n", | |
" display: contents;\n", | |
"}\n", | |
"\n", | |
".xr-var-item > div,\n", | |
".xr-var-item label,\n", | |
".xr-var-item > .xr-var-name span {\n", | |
" background-color: var(--xr-background-color-row-even);\n", | |
" margin-bottom: 0;\n", | |
"}\n", | |
"\n", | |
".xr-var-item > .xr-var-name:hover span {\n", | |
" padding-right: 5px;\n", | |
"}\n", | |
"\n", | |
".xr-var-list > li:nth-child(odd) > div,\n", | |
".xr-var-list > li:nth-child(odd) > label,\n", | |
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n", | |
" background-color: var(--xr-background-color-row-odd);\n", | |
"}\n", | |
"\n", | |
".xr-var-name {\n", | |
" grid-column: 1;\n", | |
"}\n", | |
"\n", | |
".xr-var-dims {\n", | |
" grid-column: 2;\n", | |
"}\n", | |
"\n", | |
".xr-var-dtype {\n", | |
" grid-column: 3;\n", | |
" text-align: right;\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-var-preview {\n", | |
" grid-column: 4;\n", | |
"}\n", | |
"\n", | |
".xr-index-preview {\n", | |
" grid-column: 2 / 5;\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-var-name,\n", | |
".xr-var-dims,\n", | |
".xr-var-dtype,\n", | |
".xr-preview,\n", | |
".xr-attrs dt {\n", | |
" white-space: nowrap;\n", | |
" overflow: hidden;\n", | |
" text-overflow: ellipsis;\n", | |
" padding-right: 10px;\n", | |
"}\n", | |
"\n", | |
".xr-var-name:hover,\n", | |
".xr-var-dims:hover,\n", | |
".xr-var-dtype:hover,\n", | |
".xr-attrs dt:hover {\n", | |
" overflow: visible;\n", | |
" width: auto;\n", | |
" z-index: 1;\n", | |
"}\n", | |
"\n", | |
".xr-var-attrs,\n", | |
".xr-var-data,\n", | |
".xr-index-data {\n", | |
" display: none;\n", | |
" background-color: var(--xr-background-color) !important;\n", | |
" padding-bottom: 5px !important;\n", | |
"}\n", | |
"\n", | |
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n", | |
".xr-var-data-in:checked ~ .xr-var-data,\n", | |
".xr-index-data-in:checked ~ .xr-index-data {\n", | |
" display: block;\n", | |
"}\n", | |
"\n", | |
".xr-var-data > table {\n", | |
" float: right;\n", | |
"}\n", | |
"\n", | |
".xr-var-name span,\n", | |
".xr-var-data,\n", | |
".xr-index-name div,\n", | |
".xr-index-data,\n", | |
".xr-attrs {\n", | |
" padding-left: 25px !important;\n", | |
"}\n", | |
"\n", | |
".xr-attrs,\n", | |
".xr-var-attrs,\n", | |
".xr-var-data,\n", | |
".xr-index-data {\n", | |
" grid-column: 1 / -1;\n", | |
"}\n", | |
"\n", | |
"dl.xr-attrs {\n", | |
" padding: 0;\n", | |
" margin: 0;\n", | |
" display: grid;\n", | |
" grid-template-columns: 125px auto;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dt,\n", | |
".xr-attrs dd {\n", | |
" padding: 0;\n", | |
" margin: 0;\n", | |
" float: left;\n", | |
" padding-right: 10px;\n", | |
" width: auto;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dt {\n", | |
" font-weight: normal;\n", | |
" grid-column: 1;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dt:hover span {\n", | |
" display: inline-block;\n", | |
" background: var(--xr-background-color);\n", | |
" padding-right: 10px;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dd {\n", | |
" grid-column: 2;\n", | |
" white-space: pre-wrap;\n", | |
" word-break: break-all;\n", | |
"}\n", | |
"\n", | |
".xr-icon-database,\n", | |
".xr-icon-file-text2,\n", | |
".xr-no-icon {\n", | |
" display: inline-block;\n", | |
" vertical-align: middle;\n", | |
" width: 1em;\n", | |
" height: 1.5em !important;\n", | |
" stroke-width: 0;\n", | |
" stroke: currentColor;\n", | |
" fill: currentColor;\n", | |
"}\n", | |
"</style><pre class='xr-text-repr-fallback'><xarray.DataArray 'time' (time: 0)>\n", | |
"array([], dtype='datetime64[ns]')\n", | |
"Coordinates:\n", | |
" * time (time) datetime64[ns] \n", | |
"Attributes:\n", | |
" ancillary_variables: time_qc\n", | |
" comment: Measured or calculated time at each point in the ti...\n", | |
" long_name: Time\n", | |
" observation_type: measured\n", | |
" standard_name: time</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.DataArray</div><div class='xr-array-name'>'time'</div><ul class='xr-dim-list'><li><span class='xr-has-index'>time</span>: 0</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-69b81a0b-01b0-4a24-aac1-b3fa68d2e399' class='xr-array-in' type='checkbox' checked><label for='section-69b81a0b-01b0-4a24-aac1-b3fa68d2e399' title='Show/hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-array-preview xr-preview'><span></span></div><div class='xr-array-data'><pre>array([], dtype='datetime64[ns]')</pre></div></div></li><li class='xr-section-item'><input id='section-8889f9ca-b7ff-458d-9674-0340a45026b6' class='xr-section-summary-in' type='checkbox' checked><label for='section-8889f9ca-b7ff-458d-9674-0340a45026b6' class='xr-section-summary' >Coordinates: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>time</span></div><div class='xr-var-dims'>(time)</div><div class='xr-var-dtype'>datetime64[ns]</div><div class='xr-var-preview xr-preview'></div><input id='attrs-a42d22fd-09b5-41e8-a6c3-36ff5df864ed' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-a42d22fd-09b5-41e8-a6c3-36ff5df864ed' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-6ff27106-37a8-42fb-a596-25e208c0dd6b' class='xr-var-data-in' type='checkbox'><label for='data-6ff27106-37a8-42fb-a596-25e208c0dd6b' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>ancillary_variables :</span></dt><dd>time_qc</dd><dt><span>comment :</span></dt><dd>Measured or calculated time at each point in the time-series</dd><dt><span>long_name :</span></dt><dd>Time</dd><dt><span>observation_type :</span></dt><dd>measured</dd><dt><span>standard_name :</span></dt><dd>time</dd></dl></div><div class='xr-var-data'><pre>array([], dtype='datetime64[ns]')</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-f5f6d31a-1a0c-4011-9f62-b03019485027' class='xr-section-summary-in' type='checkbox' ><label for='section-f5f6d31a-1a0c-4011-9f62-b03019485027' class='xr-section-summary' >Indexes: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>time</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-78114283-9383-483a-9d9c-0320fe0cf0ac' class='xr-index-data-in' type='checkbox'/><label for='index-78114283-9383-483a-9d9c-0320fe0cf0ac' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(DatetimeIndex([], dtype='datetime64[ns]', name='time', freq=None))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-3e1d0f4e-aaa9-478d-9d5d-b20f31c5e156' class='xr-section-summary-in' type='checkbox' checked><label for='section-3e1d0f4e-aaa9-478d-9d5d-b20f31c5e156' class='xr-section-summary' >Attributes: <span>(5)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>ancillary_variables :</span></dt><dd>time_qc</dd><dt><span>comment :</span></dt><dd>Measured or calculated time at each point in the time-series</dd><dt><span>long_name :</span></dt><dd>Time</dd><dt><span>observation_type :</span></dt><dd>measured</dd><dt><span>standard_name :</span></dt><dd>time</dd></dl></div></li></ul></div></div>" | |
] | |
}, | |
"metadata": {}, | |
"execution_count": 23 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"ds.data_vars" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "60luWtf9H-M0", | |
"outputId": "ff3fe6af-a53d-4991-89bf-f9cd2e893229" | |
}, | |
"execution_count": 24, | |
"outputs": [ | |
{ | |
"output_type": "execute_result", | |
"data": { | |
"text/plain": [ | |
"Data variables:\n", | |
" trajectory |S20 ...\n", | |
" lat (time) float64 ...\n", | |
" lon (time) float64 ...\n", | |
" pressure (time) float64 ...\n", | |
" depth (time) float64 ...\n", | |
" temperature (time) float64 ...\n", | |
" conductivity (time) float64 ...\n", | |
" salinity (time) float64 ...\n", | |
" density (time) float64 ...\n", | |
" profile_id float64 ...\n", | |
" profile_time datetime64[ns] ...\n", | |
" profile_lat float64 ...\n", | |
" profile_lon float64 ...\n", | |
" time_uv datetime64[ns] ...\n", | |
" lat_uv float64 ...\n", | |
" lon_uv float64 ...\n", | |
" u float64 ...\n", | |
" v float64 ...\n", | |
" platform float64 ...\n", | |
" instrument_ctd float64 ...\n", | |
" time_qc (time) float32 ...\n", | |
" lat_qc (time) float32 ...\n", | |
" lon_qc (time) float32 ...\n", | |
" pressure_qc (time) float32 ...\n", | |
" depth_qc (time) float32 ...\n", | |
" temperature_qc (time) float32 ...\n", | |
" conductivity_qc (time) float32 ...\n", | |
" salinity_qc (time) float32 ...\n", | |
" density_qc (time) float32 ...\n", | |
" profile_time_qc float32 ...\n", | |
" profile_lat_qc float32 ...\n", | |
" profile_lon_qc float32 ...\n", | |
" time_uv_qc float32 ...\n", | |
" lat_uv_qc float32 ...\n", | |
" lon_uv_qc float32 ...\n", | |
" u_qc float32 ...\n", | |
" v_qc float32 ..." | |
] | |
}, | |
"metadata": {}, | |
"execution_count": 24 | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"ds.reset_coords()\n", | |
"ds.set_coords(times)" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 355 | |
}, | |
"id": "keNvvXc3IJsl", | |
"outputId": "6193861c-42bf-405b-d1c6-3b0c8c182921" | |
}, | |
"execution_count": 32, | |
"outputs": [ | |
{ | |
"output_type": "error", | |
"ename": "ValueError", | |
"evalue": "These variables cannot be found in this dataset: [Timestamp('2024-01-30 00:00:00+0000', tz='UTC', freq='T'), Timestamp('2024-01-30 00:01:00+0000', tz='UTC', freq='T'), Timestamp('2024-01-30 00:02:00+0000', tz='UTC', freq='T'), Timestamp('2024-01-30 00:03:00+0000', tz='UTC', freq='T')]", | |
"traceback": [ | |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | |
"\u001b[0;31mValueError\u001b[0m Traceback (most recent call last)", | |
"\u001b[0;32m<ipython-input-32-e5a7a2d95a80>\u001b[0m in \u001b[0;36m<cell line: 2>\u001b[0;34m()\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0mds\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mreset_coords\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 2\u001b[0;31m \u001b[0mds\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mset_coords\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtimes\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", | |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/xarray/core/dataset.py\u001b[0m in \u001b[0;36mset_coords\u001b[0;34m(self, names)\u001b[0m\n\u001b[1;32m 1787\u001b[0m \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1788\u001b[0m \u001b[0mnames\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mlist\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mnames\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 1789\u001b[0;31m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_assert_all_in_dataset\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mnames\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 1790\u001b[0m \u001b[0mobj\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mcopy\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 1791\u001b[0m \u001b[0mobj\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_coord_names\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mupdate\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mnames\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/xarray/core/dataset.py\u001b[0m in \u001b[0;36m_assert_all_in_dataset\u001b[0;34m(self, names, virtual_okay)\u001b[0m\n\u001b[1;32m 5361\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mbad_names\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5362\u001b[0m \u001b[0mordered_bad_names\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m[\u001b[0m\u001b[0mname\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mname\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mnames\u001b[0m \u001b[0;32mif\u001b[0m \u001b[0mname\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mbad_names\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m-> 5363\u001b[0;31m raise ValueError(\n\u001b[0m\u001b[1;32m 5364\u001b[0m \u001b[0;34mf\"These variables cannot be found in this dataset: {ordered_bad_names}\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 5365\u001b[0m )\n", | |
"\u001b[0;31mValueError\u001b[0m: These variables cannot be found in this dataset: [Timestamp('2024-01-30 00:00:00+0000', tz='UTC', freq='T'), Timestamp('2024-01-30 00:01:00+0000', tz='UTC', freq='T'), Timestamp('2024-01-30 00:02:00+0000', tz='UTC', freq='T'), Timestamp('2024-01-30 00:03:00+0000', tz='UTC', freq='T')]" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [ | |
"ds.assign_coords = times" | |
], | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/", | |
"height": 297 | |
}, | |
"id": "ESVflhylIc9y", | |
"outputId": "339693c1-3e18-48c6-d40b-90152c4db887" | |
}, | |
"execution_count": 38, | |
"outputs": [ | |
{ | |
"output_type": "error", | |
"ename": "AttributeError", | |
"evalue": "'Dataset' object attribute 'assign_coords' is read-only", | |
"traceback": [ | |
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", | |
"\u001b[0;31mAttributeError\u001b[0m Traceback (most recent call last)", | |
"\u001b[0;32m<ipython-input-38-88a9ac657b88>\u001b[0m in \u001b[0;36m<cell line: 1>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mds\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0massign_coords\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mtimes\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", | |
"\u001b[0;32m/usr/local/lib/python3.10/dist-packages/xarray/core/common.py\u001b[0m in \u001b[0;36m__setattr__\u001b[0;34m(self, name, value)\u001b[0m\n\u001b[1;32m 304\u001b[0m \"\"\"\n\u001b[1;32m 305\u001b[0m \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 306\u001b[0;31m \u001b[0mobject\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m__setattr__\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mname\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mvalue\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 307\u001b[0m \u001b[0;32mexcept\u001b[0m \u001b[0mAttributeError\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0me\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 308\u001b[0m \u001b[0;31m# Don't accidentally shadow custom AttributeErrors, e.g.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n", | |
"\u001b[0;31mAttributeError\u001b[0m: 'Dataset' object attribute 'assign_coords' is read-only" | |
] | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"source": [], | |
"metadata": { | |
"id": "08VQw7YoJUjd" | |
}, | |
"execution_count": null, | |
"outputs": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment