Skip to content

Instantly share code, notes, and snippets.

@willirath
Last active February 7, 2025 13:55
Show Gist options
  • Save willirath/327743dabc4a9f9a307e77815ad34470 to your computer and use it in GitHub Desktop.
Save willirath/327743dabc4a9f9a307e77815ad34470 to your computer and use it in GitHub Desktop.
Towards NEMO --> UXarray
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"id": "07fefcb0-3e5c-420a-a036-75ebb9073296",
"metadata": {},
"source": [
"# Mesh construction for NEMO"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "756b3d9f-9ff8-4548-9701-ecae2dee996d",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" % Total % Received % Xferd Average Speed Time Time Time Current\n",
" Dload Upload Total Spent Left Speed\n",
"100 146k 100 146k 0 0 496k 0 --:--:-- --:--:-- --:--:-- 496k\n"
]
}
],
"source": [
"!curl -O https://zenodo.org/records/3634491/files/mesh_mask.nc"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "0577d6bd-dae8-4470-9085-0c8621ee9619",
"metadata": {},
"outputs": [],
"source": [
"import xarray as xr"
]
},
{
"cell_type": "markdown",
"id": "c2968bcb-8ad4-42c3-a731-4674f25906be",
"metadata": {},
"source": [
"## Load full mesh file"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "b895cc2f-3f74-45ea-9dab-5a4872ffee44",
"metadata": {},
"outputs": [
{
"data": {
"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",
"html[data-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 0 20px 0 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: inline-block;\n",
" opacity: 0;\n",
" height: 0;\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:focus + label {\n",
" border: 2px solid var(--xr-font-color0);\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'>&lt;xarray.Dataset&gt; Size: 176kB\n",
"Dimensions: (y: 22, x: 32, z: 31)\n",
"Coordinates:\n",
" * x (x) int64 256B 0 1 2 3 4 5 6 7 8 ... 24 25 26 27 28 29 30 31\n",
" * y (y) int64 176B 0 1 2 3 4 5 6 7 8 ... 14 15 16 17 18 19 20 21\n",
"Dimensions without coordinates: z\n",
"Data variables: (12/36)\n",
" nav_lon (y, x) float32 3kB ...\n",
" nav_lat (y, x) float32 3kB ...\n",
" nav_lev (z) float32 124B ...\n",
" time_counter float64 8B ...\n",
" tmask (z, y, x) int8 22kB ...\n",
" umask (z, y, x) int8 22kB ...\n",
" ... ...\n",
" misf (y, x) int16 1kB ...\n",
" isfdraft (y, x) float32 3kB ...\n",
" gdept_1d (z) float64 248B ...\n",
" gdepw_1d (z) float64 248B ...\n",
" e3t_1d (z) float64 248B ...\n",
" e3w_1d (z) float64 248B ...\n",
"Attributes:\n",
" file_name: mesh_mask.nc\n",
" TimeStamp: 27/09/2018 13:52:14 +0200</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-7ecb6acb-1cad-4be5-9f54-7caeefdb9204' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-7ecb6acb-1cad-4be5-9f54-7caeefdb9204' 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'>y</span>: 22</li><li><span class='xr-has-index'>x</span>: 32</li><li><span>z</span>: 31</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-366b8b60-a39f-4683-8f92-3ee4add5deb7' class='xr-section-summary-in' type='checkbox' checked><label for='section-366b8b60-a39f-4683-8f92-3ee4add5deb7' class='xr-section-summary' >Coordinates: <span>(2)</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'>x</span></div><div class='xr-var-dims'>(x)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>0 1 2 3 4 5 6 ... 26 27 28 29 30 31</div><input id='attrs-18e75ca9-ff74-4fd8-9b97-75e0288351b8' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-18e75ca9-ff74-4fd8-9b97-75e0288351b8' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-c19ea2c5-b79d-4377-80e5-69677b1d14c5' class='xr-var-data-in' type='checkbox'><label for='data-c19ea2c5-b79d-4377-80e5-69677b1d14c5' 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'></dl></div><div class='xr-var-data'><pre>array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,\n",
" 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>y</span></div><div class='xr-var-dims'>(y)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>0 1 2 3 4 5 6 ... 16 17 18 19 20 21</div><input id='attrs-5e920561-256d-4247-9c55-bef4a815ceb6' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-5e920561-256d-4247-9c55-bef4a815ceb6' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-00dbae98-bc0b-4dca-87ed-31e3c3f018fc' class='xr-var-data-in' type='checkbox'><label for='data-00dbae98-bc0b-4dca-87ed-31e3c3f018fc' 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'></dl></div><div class='xr-var-data'><pre>array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,\n",
" 18, 19, 20, 21])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-46c8653f-44b0-4e81-98c0-b4d26d85974d' class='xr-section-summary-in' type='checkbox' ><label for='section-46c8653f-44b0-4e81-98c0-b4d26d85974d' class='xr-section-summary' >Data variables: <span>(36)</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>nav_lon</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-d07252d8-1fb3-4682-a566-ed37da6b5aa9' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-d07252d8-1fb3-4682-a566-ed37da6b5aa9' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-146c9aee-72bb-425e-9c9a-1709dc576070' class='xr-var-data-in' type='checkbox'><label for='data-146c9aee-72bb-425e-9c9a-1709dc576070' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>nav_lat</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-d591f1dc-aaa4-4ad9-af7d-f274f4eca3ba' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-d591f1dc-aaa4-4ad9-af7d-f274f4eca3ba' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-83d51731-0a04-4643-b5a4-18e83ee840a9' class='xr-var-data-in' type='checkbox'><label for='data-83d51731-0a04-4643-b5a4-18e83ee840a9' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>nav_lev</span></div><div class='xr-var-dims'>(z)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-8300c1a4-a0cc-4ff4-995c-457dd9e77649' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-8300c1a4-a0cc-4ff4-995c-457dd9e77649' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-fa558080-44b7-41ae-8606-805a2fdf4c34' class='xr-var-data-in' type='checkbox'><label for='data-fa558080-44b7-41ae-8606-805a2fdf4c34' 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'></dl></div><div class='xr-var-data'><pre>[31 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>time_counter</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-d0a56adc-6806-484e-b4fc-41ca6376a30f' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-d0a56adc-6806-484e-b4fc-41ca6376a30f' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-4b20b3c5-8035-4460-88a2-368c99f5477d' class='xr-var-data-in' type='checkbox'><label for='data-4b20b3c5-8035-4460-88a2-368c99f5477d' 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'></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>tmask</span></div><div class='xr-var-dims'>(z, y, x)</div><div class='xr-var-dtype'>int8</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-329d55bf-34f1-4f80-b225-6df8667ce56b' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-329d55bf-34f1-4f80-b225-6df8667ce56b' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ed0f03ab-c46f-4b6f-8155-3a48895e4d7f' class='xr-var-data-in' type='checkbox'><label for='data-ed0f03ab-c46f-4b6f-8155-3a48895e4d7f' 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'></dl></div><div class='xr-var-data'><pre>[21824 values with dtype=int8]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>umask</span></div><div class='xr-var-dims'>(z, y, x)</div><div class='xr-var-dtype'>int8</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-06bbe236-0851-474b-8e51-f862a7c9de14' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-06bbe236-0851-474b-8e51-f862a7c9de14' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-f005791c-c239-4bbc-818e-ae7c969ade1e' class='xr-var-data-in' type='checkbox'><label for='data-f005791c-c239-4bbc-818e-ae7c969ade1e' 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'></dl></div><div class='xr-var-data'><pre>[21824 values with dtype=int8]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>vmask</span></div><div class='xr-var-dims'>(z, y, x)</div><div class='xr-var-dtype'>int8</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-bdfccb4b-fcc6-4b69-afb3-e4fb89038496' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-bdfccb4b-fcc6-4b69-afb3-e4fb89038496' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-60c1804f-8a1b-40bc-8472-7b0fd371aa2b' class='xr-var-data-in' type='checkbox'><label for='data-60c1804f-8a1b-40bc-8472-7b0fd371aa2b' 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'></dl></div><div class='xr-var-data'><pre>[21824 values with dtype=int8]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>fmask</span></div><div class='xr-var-dims'>(z, y, x)</div><div class='xr-var-dtype'>int8</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-d8a62fa3-fe0d-4f73-9860-124497ac9aa9' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-d8a62fa3-fe0d-4f73-9860-124497ac9aa9' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-00ce6374-9e66-4554-91f1-28efd7b5b25b' class='xr-var-data-in' type='checkbox'><label for='data-00ce6374-9e66-4554-91f1-28efd7b5b25b' 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'></dl></div><div class='xr-var-data'><pre>[21824 values with dtype=int8]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>tmaskutil</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>int8</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-b263338f-5d36-4e44-a2d3-2f896847a670' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-b263338f-5d36-4e44-a2d3-2f896847a670' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-4b0f9052-ef1a-420b-bac3-2cf5566b7d6d' class='xr-var-data-in' type='checkbox'><label for='data-4b0f9052-ef1a-420b-bac3-2cf5566b7d6d' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=int8]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>umaskutil</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>int8</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-5121e0ad-6b86-4940-b4e6-a9c211c2977a' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-5121e0ad-6b86-4940-b4e6-a9c211c2977a' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-c6005e79-6266-4085-9784-f12ffbd7de38' class='xr-var-data-in' type='checkbox'><label for='data-c6005e79-6266-4085-9784-f12ffbd7de38' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=int8]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>vmaskutil</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>int8</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-9c281789-c026-4010-a1f8-b68e0782935f' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-9c281789-c026-4010-a1f8-b68e0782935f' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-31dd3cc5-509c-4ceb-99cd-2948650c62a9' class='xr-var-data-in' type='checkbox'><label for='data-31dd3cc5-509c-4ceb-99cd-2948650c62a9' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=int8]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>fmaskutil</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>int8</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-f6e61328-bee5-4a40-ab6a-46c6c3bfa18c' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-f6e61328-bee5-4a40-ab6a-46c6c3bfa18c' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-32726c48-67a4-4195-b924-a03bd8648829' class='xr-var-data-in' type='checkbox'><label for='data-32726c48-67a4-4195-b924-a03bd8648829' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=int8]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>glamt</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-7703e3ef-d578-463f-add6-519dbebd0a29' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-7703e3ef-d578-463f-add6-519dbebd0a29' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-3c3509b4-f525-492f-a71c-742593a6907d' class='xr-var-data-in' type='checkbox'><label for='data-3c3509b4-f525-492f-a71c-742593a6907d' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>glamu</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-0fd531d4-13e0-4673-8fd0-dab78bee9ae0' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-0fd531d4-13e0-4673-8fd0-dab78bee9ae0' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-84312bd2-4b3a-4dd1-aaa5-97662641163e' class='xr-var-data-in' type='checkbox'><label for='data-84312bd2-4b3a-4dd1-aaa5-97662641163e' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>glamv</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-4d94d9f9-f58e-43fd-b773-1319d49ae784' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-4d94d9f9-f58e-43fd-b773-1319d49ae784' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-1f38b63e-b295-42ba-bf00-b7d557776394' class='xr-var-data-in' type='checkbox'><label for='data-1f38b63e-b295-42ba-bf00-b7d557776394' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>glamf</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-cc81c928-6dbe-4dfa-84da-d639fbdc4829' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-cc81c928-6dbe-4dfa-84da-d639fbdc4829' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-1d9fb646-af6d-4e9b-a884-67e8d70ef85d' class='xr-var-data-in' type='checkbox'><label for='data-1d9fb646-af6d-4e9b-a884-67e8d70ef85d' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>gphit</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-da4f3762-b673-49dc-8fcf-0fdffb997730' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-da4f3762-b673-49dc-8fcf-0fdffb997730' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9ae5aa67-8d63-44c8-8828-611fdcb8ba1e' class='xr-var-data-in' type='checkbox'><label for='data-9ae5aa67-8d63-44c8-8828-611fdcb8ba1e' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>gphiu</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-99ebc96c-ef22-460e-b505-edafe469af05' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-99ebc96c-ef22-460e-b505-edafe469af05' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-3570593e-f702-488b-bda7-e80a126f43cd' class='xr-var-data-in' type='checkbox'><label for='data-3570593e-f702-488b-bda7-e80a126f43cd' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>gphiv</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-6c44fd44-89cf-4906-ab99-bd7cac16e966' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-6c44fd44-89cf-4906-ab99-bd7cac16e966' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-70b96438-13be-4acf-903a-61b3395fe2c2' class='xr-var-data-in' type='checkbox'><label for='data-70b96438-13be-4acf-903a-61b3395fe2c2' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>gphif</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-994a11ca-d504-4917-a0a4-a3f8ac4e19cb' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-994a11ca-d504-4917-a0a4-a3f8ac4e19cb' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-0ff89c16-cc3c-497f-a933-f29f40f1b3b4' class='xr-var-data-in' type='checkbox'><label for='data-0ff89c16-cc3c-497f-a933-f29f40f1b3b4' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e1t</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-767fedeb-6a18-4019-af95-5c6da36ad1d9' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-767fedeb-6a18-4019-af95-5c6da36ad1d9' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-d6443f5a-d0ef-41b0-a450-c86a17818edf' class='xr-var-data-in' type='checkbox'><label for='data-d6443f5a-d0ef-41b0-a450-c86a17818edf' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e1u</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-6aab023a-7ce1-4814-bc7f-75740ad923ae' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-6aab023a-7ce1-4814-bc7f-75740ad923ae' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9c2839fa-e6f1-4e78-aa5a-641310d32b96' class='xr-var-data-in' type='checkbox'><label for='data-9c2839fa-e6f1-4e78-aa5a-641310d32b96' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e1v</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-19954336-9189-47b8-933a-1bcd25eae3c8' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-19954336-9189-47b8-933a-1bcd25eae3c8' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-c4dcd039-7056-4e91-a083-a6d8e2d5a788' class='xr-var-data-in' type='checkbox'><label for='data-c4dcd039-7056-4e91-a083-a6d8e2d5a788' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e1f</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-5dbdf4ea-63cc-425f-af77-9397088597df' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-5dbdf4ea-63cc-425f-af77-9397088597df' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-28daede1-10bc-48eb-a0e0-cd16f82709a7' class='xr-var-data-in' type='checkbox'><label for='data-28daede1-10bc-48eb-a0e0-cd16f82709a7' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e2t</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-b2954616-294a-4040-ba33-214d5841c254' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-b2954616-294a-4040-ba33-214d5841c254' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ac37d861-56a6-4b2f-a43d-c469618c8387' class='xr-var-data-in' type='checkbox'><label for='data-ac37d861-56a6-4b2f-a43d-c469618c8387' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e2u</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-1c7d8a0a-b6e6-42bd-8e83-1b47b7422fca' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-1c7d8a0a-b6e6-42bd-8e83-1b47b7422fca' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ec8010d5-5b35-474a-87b1-67d99be8853a' class='xr-var-data-in' type='checkbox'><label for='data-ec8010d5-5b35-474a-87b1-67d99be8853a' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e2v</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-c979e8d8-fc20-4e19-ab4c-5697934bb3ff' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-c979e8d8-fc20-4e19-ab4c-5697934bb3ff' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-15282f5b-59a3-46dc-aa4b-2070db1f018c' class='xr-var-data-in' type='checkbox'><label for='data-15282f5b-59a3-46dc-aa4b-2070db1f018c' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e2f</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-2554aa13-24a1-4084-bda6-d5a4b306b407' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-2554aa13-24a1-4084-bda6-d5a4b306b407' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-48398fa5-b5ad-4235-8ede-ac9f77885a6f' class='xr-var-data-in' type='checkbox'><label for='data-48398fa5-b5ad-4235-8ede-ac9f77885a6f' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>ff</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-960442c7-4a80-4c67-be37-43921efecdfc' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-960442c7-4a80-4c67-be37-43921efecdfc' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ec6abcd4-b47e-408f-87a7-6eefa6c8728a' class='xr-var-data-in' type='checkbox'><label for='data-ec6abcd4-b47e-408f-87a7-6eefa6c8728a' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>mbathy</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>int16</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-bd95de74-fd79-45d0-b993-cb8092d457da' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-bd95de74-fd79-45d0-b993-cb8092d457da' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-74d30532-7d51-4a24-a2e1-dbca2d46937b' class='xr-var-data-in' type='checkbox'><label for='data-74d30532-7d51-4a24-a2e1-dbca2d46937b' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=int16]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>misf</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>int16</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-6bf1b058-9c67-45a6-8f9c-65a7de7390e7' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-6bf1b058-9c67-45a6-8f9c-65a7de7390e7' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-2aab7836-0d01-4232-a58a-17eb47f96d72' class='xr-var-data-in' type='checkbox'><label for='data-2aab7836-0d01-4232-a58a-17eb47f96d72' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=int16]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>isfdraft</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-33d95021-c975-4485-a19e-fa17ad5c991f' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-33d95021-c975-4485-a19e-fa17ad5c991f' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-cdd86f2e-7f1b-45d8-8928-9eaf27203946' class='xr-var-data-in' type='checkbox'><label for='data-cdd86f2e-7f1b-45d8-8928-9eaf27203946' 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'></dl></div><div class='xr-var-data'><pre>[704 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>gdept_1d</span></div><div class='xr-var-dims'>(z)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-a78090a2-b5a3-40de-bd28-f51d64aafdaf' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-a78090a2-b5a3-40de-bd28-f51d64aafdaf' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-258f5f85-2354-4bd9-9ff4-5d2f117110f1' class='xr-var-data-in' type='checkbox'><label for='data-258f5f85-2354-4bd9-9ff4-5d2f117110f1' 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'></dl></div><div class='xr-var-data'><pre>[31 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>gdepw_1d</span></div><div class='xr-var-dims'>(z)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-9b8beedb-8ed6-4a77-80e0-e4395a724b87' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-9b8beedb-8ed6-4a77-80e0-e4395a724b87' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-c59b3105-d41f-4bc0-aa1d-38ef2042a5ce' class='xr-var-data-in' type='checkbox'><label for='data-c59b3105-d41f-4bc0-aa1d-38ef2042a5ce' 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'></dl></div><div class='xr-var-data'><pre>[31 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e3t_1d</span></div><div class='xr-var-dims'>(z)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-2fac114f-4150-4fc5-a3c6-a1f498fdd2a5' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-2fac114f-4150-4fc5-a3c6-a1f498fdd2a5' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-096f780c-83ed-47cd-9cf1-039c0381aaa7' class='xr-var-data-in' type='checkbox'><label for='data-096f780c-83ed-47cd-9cf1-039c0381aaa7' 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'></dl></div><div class='xr-var-data'><pre>[31 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e3w_1d</span></div><div class='xr-var-dims'>(z)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-8acd789c-8c7e-4926-b37b-993a209f8213' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-8acd789c-8c7e-4926-b37b-993a209f8213' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-75f9bb78-272c-4bb5-ae20-607591ba4cca' class='xr-var-data-in' type='checkbox'><label for='data-75f9bb78-272c-4bb5-ae20-607591ba4cca' 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'></dl></div><div class='xr-var-data'><pre>[31 values with dtype=float64]</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-047bff63-8620-47fb-a7de-1a3b0c320f1d' class='xr-section-summary-in' type='checkbox' ><label for='section-047bff63-8620-47fb-a7de-1a3b0c320f1d' class='xr-section-summary' >Indexes: <span>(2)</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>x</div></div><div class='xr-index-preview'>PandasIndex</div><input type='checkbox' disabled/><label></label><input id='index-4b3209e1-4592-46ec-b0a3-6e6e254d40c5' class='xr-index-data-in' type='checkbox'/><label for='index-4b3209e1-4592-46ec-b0a3-6e6e254d40c5' 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(Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,\n",
" 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31],\n",
" dtype=&#x27;int64&#x27;, name=&#x27;x&#x27;))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>y</div></div><div class='xr-index-preview'>PandasIndex</div><input type='checkbox' disabled/><label></label><input id='index-aa0a3f69-2461-4b69-8039-f889442c54bc' class='xr-index-data-in' type='checkbox'/><label for='index-aa0a3f69-2461-4b69-8039-f889442c54bc' 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(Index([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,\n",
" 20, 21],\n",
" dtype=&#x27;int64&#x27;, name=&#x27;y&#x27;))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-2c4f0360-8179-423a-a384-eef0b3222ebf' class='xr-section-summary-in' type='checkbox' checked><label for='section-2c4f0360-8179-423a-a384-eef0b3222ebf' class='xr-section-summary' >Attributes: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>file_name :</span></dt><dd>mesh_mask.nc</dd><dt><span>TimeStamp :</span></dt><dd>27/09/2018 13:52:14 +0200</dd></dl></div></li></ul></div></div>"
],
"text/plain": [
"<xarray.Dataset> Size: 176kB\n",
"Dimensions: (y: 22, x: 32, z: 31)\n",
"Coordinates:\n",
" * x (x) int64 256B 0 1 2 3 4 5 6 7 8 ... 24 25 26 27 28 29 30 31\n",
" * y (y) int64 176B 0 1 2 3 4 5 6 7 8 ... 14 15 16 17 18 19 20 21\n",
"Dimensions without coordinates: z\n",
"Data variables: (12/36)\n",
" nav_lon (y, x) float32 3kB ...\n",
" nav_lat (y, x) float32 3kB ...\n",
" nav_lev (z) float32 124B ...\n",
" time_counter float64 8B ...\n",
" tmask (z, y, x) int8 22kB ...\n",
" umask (z, y, x) int8 22kB ...\n",
" ... ...\n",
" misf (y, x) int16 1kB ...\n",
" isfdraft (y, x) float32 3kB ...\n",
" gdept_1d (z) float64 248B ...\n",
" gdepw_1d (z) float64 248B ...\n",
" e3t_1d (z) float64 248B ...\n",
" e3w_1d (z) float64 248B ...\n",
"Attributes:\n",
" file_name: mesh_mask.nc\n",
" TimeStamp: 27/09/2018 13:52:14 +0200"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dsm = xr.open_dataset(\"mesh_mask.nc\")\n",
" # there's an unused time dim in here for time-varying z-axis. Drop it.\n",
"dsm = dsm.squeeze(drop=True) \n",
"# make sure there's actual labels for the original x and y\n",
"dsm = dsm.assign_coords(x=list(range(dsm.sizes[\"x\"])), y=list(range(dsm.sizes[\"y\"])))\n",
"dsm"
]
},
{
"cell_type": "markdown",
"id": "7b687d5c-285a-439e-9577-f74f8646d39c",
"metadata": {},
"source": [
"## Strip of West / South boundary\n",
"\n",
"(To be used as \"UR\" corners for the element construction.)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "18682a31-ea31-4d7a-b84d-e55a2bb1649c",
"metadata": {},
"outputs": [
{
"data": {
"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",
"html[data-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 0 20px 0 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: inline-block;\n",
" opacity: 0;\n",
" height: 0;\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:focus + label {\n",
" border: 2px solid var(--xr-font-color0);\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'>&lt;xarray.Dataset&gt; Size: 163kB\n",
"Dimensions: (y: 21, x: 31, z: 31)\n",
"Coordinates:\n",
" * x (x) int64 248B 1 2 3 4 5 6 7 8 9 ... 24 25 26 27 28 29 30 31\n",
" * y (y) int64 168B 1 2 3 4 5 6 7 8 9 ... 14 15 16 17 18 19 20 21\n",
"Dimensions without coordinates: z\n",
"Data variables: (12/36)\n",
" nav_lon (y, x) float32 3kB ...\n",
" nav_lat (y, x) float32 3kB ...\n",
" nav_lev (z) float32 124B ...\n",
" time_counter float64 8B ...\n",
" tmask (z, y, x) int8 20kB ...\n",
" umask (z, y, x) int8 20kB ...\n",
" ... ...\n",
" misf (y, x) int16 1kB ...\n",
" isfdraft (y, x) float32 3kB ...\n",
" gdept_1d (z) float64 248B ...\n",
" gdepw_1d (z) float64 248B ...\n",
" e3t_1d (z) float64 248B ...\n",
" e3w_1d (z) float64 248B ...\n",
"Attributes:\n",
" file_name: mesh_mask.nc\n",
" TimeStamp: 27/09/2018 13:52:14 +0200</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-67ec2d28-e5c8-4b63-bb01-3e98a5d47dd4' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-67ec2d28-e5c8-4b63-bb01-3e98a5d47dd4' 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'>y</span>: 21</li><li><span class='xr-has-index'>x</span>: 31</li><li><span>z</span>: 31</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-3ca45c51-802e-44be-838c-271c7f60ab41' class='xr-section-summary-in' type='checkbox' checked><label for='section-3ca45c51-802e-44be-838c-271c7f60ab41' class='xr-section-summary' >Coordinates: <span>(2)</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'>x</span></div><div class='xr-var-dims'>(x)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>1 2 3 4 5 6 7 ... 26 27 28 29 30 31</div><input id='attrs-17b0714e-becd-4813-91b8-5192d65a9275' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-17b0714e-becd-4813-91b8-5192d65a9275' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-36dcf502-8b08-4a03-a681-82fc91a41dba' class='xr-var-data-in' type='checkbox'><label for='data-36dcf502-8b08-4a03-a681-82fc91a41dba' 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'></dl></div><div class='xr-var-data'><pre>array([ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,\n",
" 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>y</span></div><div class='xr-var-dims'>(y)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>1 2 3 4 5 6 7 ... 16 17 18 19 20 21</div><input id='attrs-fc73ea7c-b952-4d2f-9e2c-f0dd23974bcc' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-fc73ea7c-b952-4d2f-9e2c-f0dd23974bcc' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-f43b7bc5-922d-4d6f-9586-b3809f12bfcf' class='xr-var-data-in' type='checkbox'><label for='data-f43b7bc5-922d-4d6f-9586-b3809f12bfcf' 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'></dl></div><div class='xr-var-data'><pre>array([ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,\n",
" 19, 20, 21])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-060e9ae0-207a-4a3a-9f2f-b6be7fc200d6' class='xr-section-summary-in' type='checkbox' ><label for='section-060e9ae0-207a-4a3a-9f2f-b6be7fc200d6' class='xr-section-summary' >Data variables: <span>(36)</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>nav_lon</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-cac3f8bc-7a0d-4d90-a63b-cdd706c40b99' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-cac3f8bc-7a0d-4d90-a63b-cdd706c40b99' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-150e638b-ffe3-42f8-bcf5-f0b204945bc0' class='xr-var-data-in' type='checkbox'><label for='data-150e638b-ffe3-42f8-bcf5-f0b204945bc0' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>nav_lat</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-c7291e8e-be69-47ce-9e82-607eaabe2db0' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-c7291e8e-be69-47ce-9e82-607eaabe2db0' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-077eed28-b6de-4851-9676-f2e02e9daac9' class='xr-var-data-in' type='checkbox'><label for='data-077eed28-b6de-4851-9676-f2e02e9daac9' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>nav_lev</span></div><div class='xr-var-dims'>(z)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-5ebd0161-e1a5-4fae-8de2-db6c286a0358' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-5ebd0161-e1a5-4fae-8de2-db6c286a0358' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-2a95f519-0028-422c-ad9a-4a3c0f4c3bb3' class='xr-var-data-in' type='checkbox'><label for='data-2a95f519-0028-422c-ad9a-4a3c0f4c3bb3' 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'></dl></div><div class='xr-var-data'><pre>[31 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>time_counter</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-ba322210-ce0b-4b5e-a5e4-921525db8bb3' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-ba322210-ce0b-4b5e-a5e4-921525db8bb3' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-f60640a0-fdff-4915-a9e5-6b34e63abe01' class='xr-var-data-in' type='checkbox'><label for='data-f60640a0-fdff-4915-a9e5-6b34e63abe01' 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'></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>tmask</span></div><div class='xr-var-dims'>(z, y, x)</div><div class='xr-var-dtype'>int8</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-a17a3697-5a9b-4650-87b5-18005357056a' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-a17a3697-5a9b-4650-87b5-18005357056a' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-7c5f2f67-afd2-4f2d-a654-6b82613bb6f4' class='xr-var-data-in' type='checkbox'><label for='data-7c5f2f67-afd2-4f2d-a654-6b82613bb6f4' 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'></dl></div><div class='xr-var-data'><pre>[20181 values with dtype=int8]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>umask</span></div><div class='xr-var-dims'>(z, y, x)</div><div class='xr-var-dtype'>int8</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-ca830335-0cfc-475f-b78d-d97ed72d4468' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-ca830335-0cfc-475f-b78d-d97ed72d4468' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-54f2ad07-e4c9-4d9b-9c8d-2cc672bc26ff' class='xr-var-data-in' type='checkbox'><label for='data-54f2ad07-e4c9-4d9b-9c8d-2cc672bc26ff' 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'></dl></div><div class='xr-var-data'><pre>[20181 values with dtype=int8]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>vmask</span></div><div class='xr-var-dims'>(z, y, x)</div><div class='xr-var-dtype'>int8</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-146b5432-73f5-4316-aaad-f526dc376864' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-146b5432-73f5-4316-aaad-f526dc376864' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-86958c12-a8a6-40b3-adfa-4f371fb61494' class='xr-var-data-in' type='checkbox'><label for='data-86958c12-a8a6-40b3-adfa-4f371fb61494' 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'></dl></div><div class='xr-var-data'><pre>[20181 values with dtype=int8]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>fmask</span></div><div class='xr-var-dims'>(z, y, x)</div><div class='xr-var-dtype'>int8</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-87e47824-de4c-4117-bd60-94e8a810c02d' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-87e47824-de4c-4117-bd60-94e8a810c02d' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-d754019d-aa0a-4c33-bb79-b8f09b4052a3' class='xr-var-data-in' type='checkbox'><label for='data-d754019d-aa0a-4c33-bb79-b8f09b4052a3' 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'></dl></div><div class='xr-var-data'><pre>[20181 values with dtype=int8]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>tmaskutil</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>int8</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-d0cd6d6f-e423-403f-aa63-1a772af91610' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-d0cd6d6f-e423-403f-aa63-1a772af91610' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-2dfea6da-6be9-413b-a91c-0bef483ebf25' class='xr-var-data-in' type='checkbox'><label for='data-2dfea6da-6be9-413b-a91c-0bef483ebf25' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=int8]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>umaskutil</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>int8</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-71fc93ad-6f2d-4470-a671-b0c7f3ba2f33' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-71fc93ad-6f2d-4470-a671-b0c7f3ba2f33' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-14a3b32e-72e3-4903-818f-395f1f37b391' class='xr-var-data-in' type='checkbox'><label for='data-14a3b32e-72e3-4903-818f-395f1f37b391' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=int8]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>vmaskutil</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>int8</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-796c450d-761a-43df-b407-ea8fa592208c' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-796c450d-761a-43df-b407-ea8fa592208c' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-c1026a66-1d5f-4e82-9920-10c92b6e4816' class='xr-var-data-in' type='checkbox'><label for='data-c1026a66-1d5f-4e82-9920-10c92b6e4816' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=int8]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>fmaskutil</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>int8</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-22f6ae20-3e2e-48e5-be16-490f1b0b85e8' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-22f6ae20-3e2e-48e5-be16-490f1b0b85e8' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-4078cd7a-ad85-4ecd-8c40-63da7e45632e' class='xr-var-data-in' type='checkbox'><label for='data-4078cd7a-ad85-4ecd-8c40-63da7e45632e' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=int8]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>glamt</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-d19697c9-1098-4d24-9a15-e93da6bbd3f2' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-d19697c9-1098-4d24-9a15-e93da6bbd3f2' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-f5f55fef-d96c-4c61-a213-0237e454ed4e' class='xr-var-data-in' type='checkbox'><label for='data-f5f55fef-d96c-4c61-a213-0237e454ed4e' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>glamu</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-f3c204ef-643b-40b5-bd72-82fb7b6401c7' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-f3c204ef-643b-40b5-bd72-82fb7b6401c7' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-242a5818-970e-450e-8dca-de0a11a11ddb' class='xr-var-data-in' type='checkbox'><label for='data-242a5818-970e-450e-8dca-de0a11a11ddb' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>glamv</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-6c103b36-a320-4da4-943c-9455b62060d3' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-6c103b36-a320-4da4-943c-9455b62060d3' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-01f69da4-f8c4-4f37-a97d-3fa8caf266ed' class='xr-var-data-in' type='checkbox'><label for='data-01f69da4-f8c4-4f37-a97d-3fa8caf266ed' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>glamf</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-49a70929-0c10-4bdc-88d5-3572a14942d9' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-49a70929-0c10-4bdc-88d5-3572a14942d9' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9185d93c-57c3-4dbc-bb06-1316ab2dea5c' class='xr-var-data-in' type='checkbox'><label for='data-9185d93c-57c3-4dbc-bb06-1316ab2dea5c' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>gphit</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-5a89fbd8-df17-4a61-9e4d-a5bb9aa1e2c3' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-5a89fbd8-df17-4a61-9e4d-a5bb9aa1e2c3' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-b522f9b4-e3b2-49ff-9f39-41964e194ffc' class='xr-var-data-in' type='checkbox'><label for='data-b522f9b4-e3b2-49ff-9f39-41964e194ffc' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>gphiu</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-e2475073-de8d-4497-8745-2bec2a6139e6' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-e2475073-de8d-4497-8745-2bec2a6139e6' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-e375b4b1-4daa-4e98-afa8-9354dfb2520c' class='xr-var-data-in' type='checkbox'><label for='data-e375b4b1-4daa-4e98-afa8-9354dfb2520c' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>gphiv</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-6ccf44a3-fa6d-4684-8d54-b6599f57df55' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-6ccf44a3-fa6d-4684-8d54-b6599f57df55' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-94fd18fa-cd5f-4f53-a87b-a7f10ed9129d' class='xr-var-data-in' type='checkbox'><label for='data-94fd18fa-cd5f-4f53-a87b-a7f10ed9129d' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>gphif</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-f9c794b1-885e-4629-9af0-1eb266400e74' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-f9c794b1-885e-4629-9af0-1eb266400e74' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-12448872-9cc7-445d-b118-7fe1c2b17774' class='xr-var-data-in' type='checkbox'><label for='data-12448872-9cc7-445d-b118-7fe1c2b17774' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e1t</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-3abc4969-4401-45c0-addc-670129c18ade' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-3abc4969-4401-45c0-addc-670129c18ade' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-a7c595c0-bb68-4100-bbf5-467b720bbab2' class='xr-var-data-in' type='checkbox'><label for='data-a7c595c0-bb68-4100-bbf5-467b720bbab2' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e1u</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-b11e03a9-b746-4cf1-a4f1-c4bfc9217d6e' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-b11e03a9-b746-4cf1-a4f1-c4bfc9217d6e' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-5aa72bb6-6c43-43b4-954f-c8ab2352e8fb' class='xr-var-data-in' type='checkbox'><label for='data-5aa72bb6-6c43-43b4-954f-c8ab2352e8fb' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e1v</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-533e5a44-5046-4b79-9fe5-0520c37b6a8e' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-533e5a44-5046-4b79-9fe5-0520c37b6a8e' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-cb2b9bed-30a0-489b-88f6-c5f6e7ee7197' class='xr-var-data-in' type='checkbox'><label for='data-cb2b9bed-30a0-489b-88f6-c5f6e7ee7197' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e1f</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-f6c4c50c-e014-4770-ad94-3c481b3afefa' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-f6c4c50c-e014-4770-ad94-3c481b3afefa' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-bb68ca2e-7d47-4194-92f4-5fc235700f93' class='xr-var-data-in' type='checkbox'><label for='data-bb68ca2e-7d47-4194-92f4-5fc235700f93' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e2t</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-b510849f-9f59-4bc4-b3cb-42ab12a746ad' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-b510849f-9f59-4bc4-b3cb-42ab12a746ad' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-fb399e7d-e414-4cea-8411-0e0ecf7d0434' class='xr-var-data-in' type='checkbox'><label for='data-fb399e7d-e414-4cea-8411-0e0ecf7d0434' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e2u</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-9e19367a-20a1-4ab9-9d38-969fb7d008cb' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-9e19367a-20a1-4ab9-9d38-969fb7d008cb' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-3f113e0f-962d-405b-8d3b-8f1646d6f577' class='xr-var-data-in' type='checkbox'><label for='data-3f113e0f-962d-405b-8d3b-8f1646d6f577' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e2v</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-838c5c80-ede1-4ba3-a586-8b562d489fe3' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-838c5c80-ede1-4ba3-a586-8b562d489fe3' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-e32db91c-3b96-404a-866a-e88a2fe9ce5d' class='xr-var-data-in' type='checkbox'><label for='data-e32db91c-3b96-404a-866a-e88a2fe9ce5d' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e2f</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-876be159-f627-4b7c-8ba0-b8d8ce5d2c89' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-876be159-f627-4b7c-8ba0-b8d8ce5d2c89' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-5ec51cf7-ea48-436e-bb05-2f3726082a27' class='xr-var-data-in' type='checkbox'><label for='data-5ec51cf7-ea48-436e-bb05-2f3726082a27' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>ff</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-f980e0ff-af42-48f2-bc09-324e628627ef' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-f980e0ff-af42-48f2-bc09-324e628627ef' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-c26439be-adaf-48da-9dec-53ef32313a35' class='xr-var-data-in' type='checkbox'><label for='data-c26439be-adaf-48da-9dec-53ef32313a35' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>mbathy</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>int16</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-bb75e7a8-3b13-4ef7-ab82-d28e6ec08c00' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-bb75e7a8-3b13-4ef7-ab82-d28e6ec08c00' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-dfcc2c29-124d-490c-9c8f-0f1565129b97' class='xr-var-data-in' type='checkbox'><label for='data-dfcc2c29-124d-490c-9c8f-0f1565129b97' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=int16]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>misf</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>int16</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-a6f5cbb0-2f95-4898-b1d1-44c408d42627' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-a6f5cbb0-2f95-4898-b1d1-44c408d42627' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-bd9dc5f0-29c2-4a7b-9eca-e12200381d71' class='xr-var-data-in' type='checkbox'><label for='data-bd9dc5f0-29c2-4a7b-9eca-e12200381d71' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=int16]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>isfdraft</span></div><div class='xr-var-dims'>(y, x)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-a0098819-ade5-46d2-886a-fe09d7a309db' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-a0098819-ade5-46d2-886a-fe09d7a309db' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-4b38182b-06be-4fe8-8318-947149cf990b' class='xr-var-data-in' type='checkbox'><label for='data-4b38182b-06be-4fe8-8318-947149cf990b' 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'></dl></div><div class='xr-var-data'><pre>[651 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>gdept_1d</span></div><div class='xr-var-dims'>(z)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-3cba4798-cce5-44cb-b9cc-19b9274cdb91' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-3cba4798-cce5-44cb-b9cc-19b9274cdb91' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-336f25b5-1058-458c-90e8-247a47732b9a' class='xr-var-data-in' type='checkbox'><label for='data-336f25b5-1058-458c-90e8-247a47732b9a' 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'></dl></div><div class='xr-var-data'><pre>[31 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>gdepw_1d</span></div><div class='xr-var-dims'>(z)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-bfae61a6-63e4-4a88-a229-eb13706ad0c9' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-bfae61a6-63e4-4a88-a229-eb13706ad0c9' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-8b61a033-0caa-4f6e-9f6e-7fb310fcf96f' class='xr-var-data-in' type='checkbox'><label for='data-8b61a033-0caa-4f6e-9f6e-7fb310fcf96f' 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'></dl></div><div class='xr-var-data'><pre>[31 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e3t_1d</span></div><div class='xr-var-dims'>(z)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-0f597e11-0941-4d00-b369-9dfa2c12bc00' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-0f597e11-0941-4d00-b369-9dfa2c12bc00' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-75ecc7ad-4a02-4294-9a81-f5fc1d5f3c6e' class='xr-var-data-in' type='checkbox'><label for='data-75ecc7ad-4a02-4294-9a81-f5fc1d5f3c6e' 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'></dl></div><div class='xr-var-data'><pre>[31 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e3w_1d</span></div><div class='xr-var-dims'>(z)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-4c65964e-7764-4dfd-859d-d102ee780b77' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-4c65964e-7764-4dfd-859d-d102ee780b77' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-e55962ee-c9e4-417e-9394-a46a92d41ef0' class='xr-var-data-in' type='checkbox'><label for='data-e55962ee-c9e4-417e-9394-a46a92d41ef0' 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'></dl></div><div class='xr-var-data'><pre>[31 values with dtype=float64]</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-7242b48c-7707-4770-9c68-3a013247851e' class='xr-section-summary-in' type='checkbox' ><label for='section-7242b48c-7707-4770-9c68-3a013247851e' class='xr-section-summary' >Indexes: <span>(2)</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>x</div></div><div class='xr-index-preview'>PandasIndex</div><input type='checkbox' disabled/><label></label><input id='index-cfbb4f95-994b-415d-8c6b-59b1d112e903' class='xr-index-data-in' type='checkbox'/><label for='index-cfbb4f95-994b-415d-8c6b-59b1d112e903' 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(Index([ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,\n",
" 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31],\n",
" dtype=&#x27;int64&#x27;, name=&#x27;x&#x27;))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>y</div></div><div class='xr-index-preview'>PandasIndex</div><input type='checkbox' disabled/><label></label><input id='index-2cfcb47d-8169-41aa-8ff3-01b504bab4d7' class='xr-index-data-in' type='checkbox'/><label for='index-2cfcb47d-8169-41aa-8ff3-01b504bab4d7' 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(Index([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,\n",
" 21],\n",
" dtype=&#x27;int64&#x27;, name=&#x27;y&#x27;))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-c8e2600b-29ab-42bf-bee3-d7724752c766' class='xr-section-summary-in' type='checkbox' checked><label for='section-c8e2600b-29ab-42bf-bee3-d7724752c766' class='xr-section-summary' >Attributes: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>file_name :</span></dt><dd>mesh_mask.nc</dd><dt><span>TimeStamp :</span></dt><dd>27/09/2018 13:52:14 +0200</dd></dl></div></li></ul></div></div>"
],
"text/plain": [
"<xarray.Dataset> Size: 163kB\n",
"Dimensions: (y: 21, x: 31, z: 31)\n",
"Coordinates:\n",
" * x (x) int64 248B 1 2 3 4 5 6 7 8 9 ... 24 25 26 27 28 29 30 31\n",
" * y (y) int64 168B 1 2 3 4 5 6 7 8 9 ... 14 15 16 17 18 19 20 21\n",
"Dimensions without coordinates: z\n",
"Data variables: (12/36)\n",
" nav_lon (y, x) float32 3kB ...\n",
" nav_lat (y, x) float32 3kB ...\n",
" nav_lev (z) float32 124B ...\n",
" time_counter float64 8B ...\n",
" tmask (z, y, x) int8 20kB ...\n",
" umask (z, y, x) int8 20kB ...\n",
" ... ...\n",
" misf (y, x) int16 1kB ...\n",
" isfdraft (y, x) float32 3kB ...\n",
" gdept_1d (z) float64 248B ...\n",
" gdepw_1d (z) float64 248B ...\n",
" e3t_1d (z) float64 248B ...\n",
" e3w_1d (z) float64 248B ...\n",
"Attributes:\n",
" file_name: mesh_mask.nc\n",
" TimeStamp: 27/09/2018 13:52:14 +0200"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dsm_minus_WS = dsm.isel(x=slice(1, None), y=slice(1, None))\n",
"dsm_minus_WS"
]
},
{
"cell_type": "markdown",
"id": "cfbfe854-cc5d-42ca-9bbe-82e00b06edc4",
"metadata": {},
"source": [
"## Corners"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "2545f25f-b37f-4f1d-85e6-87267caccbcc",
"metadata": {},
"outputs": [],
"source": [
"x_corner_offsets = xr.DataArray([-1, 0, 0, -1], dims=(\"corner\", ), coords={\"corner\": [\"ll\", \"lr\", \"ur\", \"ul\"]})\n",
"y_corner_offsets = xr.DataArray([-1, -1, 0, 0], dims=(\"corner\", ), coords={\"corner\": [\"ll\", \"lr\", \"ur\", \"ul\"]})"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "9c19b89d-f0c6-42f4-b54f-14c06d3d462f",
"metadata": {},
"outputs": [],
"source": [
"x_corners = (xr.broadcast(dsm_minus_WS.x, dsm_minus_WS.y)[0] + x_corner_offsets).rename(\"x_corners\")\n",
"y_corners = (xr.broadcast(dsm_minus_WS.x, dsm_minus_WS.y)[1] + y_corner_offsets).rename(\"y_corners\")"
]
},
{
"cell_type": "markdown",
"id": "de95f01a-2ffe-40e3-ad31-2e79f78a81b1",
"metadata": {},
"source": [
"## Nodes"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "43fe012d-f892-450f-8995-569a41cb3a13",
"metadata": {},
"outputs": [
{
"data": {
"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",
"html[data-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 0 20px 0 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: inline-block;\n",
" opacity: 0;\n",
" height: 0;\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:focus + label {\n",
" border: 2px solid var(--xr-font-color0);\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'>&lt;xarray.Dataset&gt; Size: 28kB\n",
"Dimensions: (node: 704)\n",
"Coordinates:\n",
" * node (node) object 6kB MultiIndex\n",
" * x (node) int64 6kB 0 0 0 0 0 0 0 0 0 0 ... 31 31 31 31 31 31 31 31 31\n",
" * y (node) int64 6kB 0 1 2 3 4 5 6 7 8 9 ... 13 14 15 16 17 18 19 20 21\n",
" node_id (node) int64 6kB 0 1 2 3 4 5 6 7 ... 697 698 699 700 701 702 703\n",
"Data variables:\n",
" glamf (node) float32 3kB -71.52 -72.19 -72.87 ... -63.43 -64.1 -64.78\n",
" gphif (node) float32 3kB 15.52 16.19 16.87 17.54 ... 49.22 49.9 50.57</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-0cc7ab80-4738-4b22-b22c-bfb4095f51ce' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-0cc7ab80-4738-4b22-b22c-bfb4095f51ce' 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'>node</span>: 704</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-298c06af-cf5c-41e2-a903-4fcc8f2d0b30' class='xr-section-summary-in' type='checkbox' checked><label for='section-298c06af-cf5c-41e2-a903-4fcc8f2d0b30' class='xr-section-summary' >Coordinates: <span>(4)</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'>node</span></div><div class='xr-var-dims'>(node)</div><div class='xr-var-dtype'>object</div><div class='xr-var-preview xr-preview'>MultiIndex</div><input id='attrs-3ddbb588-66c1-4395-83f3-9a22a19b7001' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-3ddbb588-66c1-4395-83f3-9a22a19b7001' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-affd2ef5-a5a8-422a-88b7-7608e98a8376' class='xr-var-data-in' type='checkbox'><label for='data-affd2ef5-a5a8-422a-88b7-7608e98a8376' 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'></dl></div><div class='xr-var-data'><pre>array([(0, 0), (0, 1), (0, 2), ..., (31, 19), (31, 20), (31, 21)], dtype=object)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>x</span></div><div class='xr-var-dims'>(node)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>0 0 0 0 0 0 0 ... 31 31 31 31 31 31</div><input id='attrs-8c75dbea-570d-43e0-bda6-06d5058bb760' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-8c75dbea-570d-43e0-bda6-06d5058bb760' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-5c8b3190-383d-4bea-b3cd-28ac5f85004c' class='xr-var-data-in' type='checkbox'><label for='data-5c8b3190-383d-4bea-b3cd-28ac5f85004c' 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'></dl></div><div class='xr-var-data'><pre>array([ 0, 0, 0, ..., 31, 31, 31])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>y</span></div><div class='xr-var-dims'>(node)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>0 1 2 3 4 5 6 ... 16 17 18 19 20 21</div><input id='attrs-d033e65e-7a16-458b-bad9-2be3570a778e' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-d033e65e-7a16-458b-bad9-2be3570a778e' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-730acc2a-8662-4843-bb9d-ae8fa136c156' class='xr-var-data-in' type='checkbox'><label for='data-730acc2a-8662-4843-bb9d-ae8fa136c156' 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'></dl></div><div class='xr-var-data'><pre>array([ 0, 1, 2, ..., 19, 20, 21])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>node_id</span></div><div class='xr-var-dims'>(node)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>0 1 2 3 4 5 ... 699 700 701 702 703</div><input id='attrs-5033e4f0-3ad8-47bb-a08b-7be0f30457fb' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-5033e4f0-3ad8-47bb-a08b-7be0f30457fb' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-eb607499-9440-43d6-bb00-557f330acd7d' class='xr-var-data-in' type='checkbox'><label for='data-eb607499-9440-43d6-bb00-557f330acd7d' 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'></dl></div><div class='xr-var-data'><pre>array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,\n",
" 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,\n",
" 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38,\n",
" 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,\n",
" 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,\n",
" 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77,\n",
" 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90,\n",
" 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103,\n",
" 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116,\n",
" 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129,\n",
" 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142,\n",
" 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155,\n",
" 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168,\n",
" 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181,\n",
" 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,\n",
" 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207,\n",
" 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220,\n",
" 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233,\n",
" 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246,\n",
" 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259,\n",
"...\n",
" 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467,\n",
" 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480,\n",
" 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493,\n",
" 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506,\n",
" 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519,\n",
" 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532,\n",
" 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545,\n",
" 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558,\n",
" 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571,\n",
" 572, 573, 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584,\n",
" 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 597,\n",
" 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 609, 610,\n",
" 611, 612, 613, 614, 615, 616, 617, 618, 619, 620, 621, 622, 623,\n",
" 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636,\n",
" 637, 638, 639, 640, 641, 642, 643, 644, 645, 646, 647, 648, 649,\n",
" 650, 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, 661, 662,\n",
" 663, 664, 665, 666, 667, 668, 669, 670, 671, 672, 673, 674, 675,\n",
" 676, 677, 678, 679, 680, 681, 682, 683, 684, 685, 686, 687, 688,\n",
" 689, 690, 691, 692, 693, 694, 695, 696, 697, 698, 699, 700, 701,\n",
" 702, 703])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-339c1501-f3cd-4217-bc81-f0a9b4271c73' class='xr-section-summary-in' type='checkbox' checked><label for='section-339c1501-f3cd-4217-bc81-f0a9b4271c73' class='xr-section-summary' >Data variables: <span>(2)</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>glamf</span></div><div class='xr-var-dims'>(node)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>-71.52 -72.19 ... -64.1 -64.78</div><input id='attrs-9a0755d2-fa8e-4608-a9d8-79347c72c374' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-9a0755d2-fa8e-4608-a9d8-79347c72c374' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-8b89aec7-28f6-4102-9174-5463ccfcd1fa' class='xr-var-data-in' type='checkbox'><label for='data-8b89aec7-28f6-4102-9174-5463ccfcd1fa' 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'></dl></div><div class='xr-var-data'><pre>array([-71.51906 , -72.19311 , -72.86715 , -73.5412 , -74.21525 ,\n",
" -74.88929 , -75.56334 , -76.23739 , -76.91143 , -77.58548 ,\n",
" -78.25953 , -78.93358 , -79.60762 , -80.28167 , -80.95572 ,\n",
" -81.62976 , -82.30381 , -82.97786 , -83.65191 , -84.32595 ,\n",
" -85. , -85.67405 , -70.84501 , -71.51906 , -72.19311 ,\n",
" -72.86715 , -73.5412 , -74.21525 , -74.88929 , -75.56334 ,\n",
" -76.23739 , -76.91143 , -77.58548 , -78.25953 , -78.93358 ,\n",
" -79.60762 , -80.28167 , -80.95572 , -81.62976 , -82.30381 ,\n",
" -82.97786 , -83.65191 , -84.32595 , -85. , -70.17096 ,\n",
" -70.84501 , -71.51906 , -72.19311 , -72.86715 , -73.5412 ,\n",
" -74.21525 , -74.88929 , -75.56334 , -76.23739 , -76.91143 ,\n",
" -77.58548 , -78.25953 , -78.93358 , -79.60762 , -80.28167 ,\n",
" -80.95572 , -81.62976 , -82.30381 , -82.97786 , -83.65191 ,\n",
" -84.32595 , -69.49692 , -70.17096 , -70.84501 , -71.51906 ,\n",
" -72.19311 , -72.86715 , -73.5412 , -74.21525 , -74.88929 ,\n",
" -75.56334 , -76.23739 , -76.91143 , -77.58548 , -78.25953 ,\n",
" -78.93358 , -79.60762 , -80.28167 , -80.95572 , -81.62976 ,\n",
" -82.30381 , -82.97786 , -83.65191 , -68.82287 , -69.49692 ,\n",
" -70.17096 , -70.84501 , -71.51906 , -72.19311 , -72.86715 ,\n",
" -73.5412 , -74.21525 , -74.88929 , -75.56334 , -76.23739 ,\n",
"...\n",
" -60.734303, -61.408348, -62.082397, -62.756443, -63.430492,\n",
" -64.10454 , -64.77859 , -65.45263 , -66.12668 , -66.80073 ,\n",
" -67.47478 , -52.645737, -53.319782, -53.99383 , -54.667877,\n",
" -55.341927, -56.015972, -56.690018, -57.364067, -58.038113,\n",
" -58.712162, -59.386208, -60.060253, -60.734303, -61.408348,\n",
" -62.082397, -62.756443, -63.430492, -64.10454 , -64.77859 ,\n",
" -65.45263 , -66.12668 , -66.80073 , -51.971687, -52.645737,\n",
" -53.319782, -53.99383 , -54.667877, -55.341927, -56.015972,\n",
" -56.690018, -57.364067, -58.038113, -58.712162, -59.386208,\n",
" -60.060253, -60.734303, -61.408348, -62.082397, -62.756443,\n",
" -63.430492, -64.10454 , -64.77859 , -65.45263 , -66.12668 ,\n",
" -51.29764 , -51.971687, -52.645737, -53.319782, -53.99383 ,\n",
" -54.667877, -55.341927, -56.015972, -56.690018, -57.364067,\n",
" -58.038113, -58.712162, -59.386208, -60.060253, -60.734303,\n",
" -61.408348, -62.082397, -62.756443, -63.430492, -64.10454 ,\n",
" -64.77859 , -65.45263 , -50.623596, -51.29764 , -51.971687,\n",
" -52.645737, -53.319782, -53.99383 , -54.667877, -55.341927,\n",
" -56.015972, -56.690018, -57.364067, -58.038113, -58.712162,\n",
" -59.386208, -60.060253, -60.734303, -61.408348, -62.082397,\n",
" -62.756443, -63.430492, -64.10454 , -64.77859 ], dtype=float32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>gphif</span></div><div class='xr-var-dims'>(node)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>15.52 16.19 16.87 ... 49.9 50.57</div><input id='attrs-cc519701-46d6-4ce2-93fb-eca375df7b19' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-cc519701-46d6-4ce2-93fb-eca375df7b19' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9416dcaf-adca-4a99-b418-31d9fa22fe2a' class='xr-var-data-in' type='checkbox'><label for='data-9416dcaf-adca-4a99-b418-31d9fa22fe2a' 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'></dl></div><div class='xr-var-data'><pre>array([15.519056, 16.193104, 16.867151, 17.541199, 18.215246, 18.889292,\n",
" 19.56334 , 20.237387, 20.911434, 21.585482, 22.25953 , 22.933575,\n",
" 23.607622, 24.28167 , 24.955717, 25.629765, 26.303812, 26.977858,\n",
" 27.651905, 28.325953, 29. , 29.674047, 16.193104, 16.867151,\n",
" 17.541199, 18.215246, 18.889292, 19.56334 , 20.237387, 20.911434,\n",
" 21.585482, 22.25953 , 22.933575, 23.607622, 24.28167 , 24.955717,\n",
" 25.629765, 26.303812, 26.977858, 27.651905, 28.325953, 29. ,\n",
" 29.674047, 30.348095, 16.867151, 17.541199, 18.215246, 18.889292,\n",
" 19.56334 , 20.237387, 20.911434, 21.585482, 22.25953 , 22.933575,\n",
" 23.607622, 24.28167 , 24.955717, 25.629765, 26.303812, 26.977858,\n",
" 27.651905, 28.325953, 29. , 29.674047, 30.348095, 31.022142,\n",
" 17.541199, 18.215246, 18.889292, 19.56334 , 20.237387, 20.911434,\n",
" 21.585482, 22.25953 , 22.933575, 23.607622, 24.28167 , 24.955717,\n",
" 25.629765, 26.303812, 26.977858, 27.651905, 28.325953, 29. ,\n",
" 29.674047, 30.348095, 31.022142, 31.696188, 18.215246, 18.889292,\n",
" 19.56334 , 20.237387, 20.911434, 21.585482, 22.25953 , 22.933575,\n",
" 23.607622, 24.28167 , 24.955717, 25.629765, 26.303812, 26.977858,\n",
" 27.651905, 28.325953, 29. , 29.674047, 30.348095, 31.022142,\n",
" 31.696188, 32.370235, 18.889292, 19.56334 , 20.237387, 20.911434,\n",
" 21.585482, 22.25953 , 22.933575, 23.607622, 24.28167 , 24.955717,\n",
"...\n",
" 43.829037, 44.503086, 45.17713 , 45.851177, 46.525227, 47.199272,\n",
" 33.71833 , 34.392376, 35.066425, 35.74047 , 36.41452 , 37.088566,\n",
" 37.76261 , 38.43666 , 39.110706, 39.784756, 40.4588 , 41.13285 ,\n",
" 41.806896, 42.48094 , 43.15499 , 43.829037, 44.503086, 45.17713 ,\n",
" 45.851177, 46.525227, 47.199272, 47.87332 , 34.392376, 35.066425,\n",
" 35.74047 , 36.41452 , 37.088566, 37.76261 , 38.43666 , 39.110706,\n",
" 39.784756, 40.4588 , 41.13285 , 41.806896, 42.48094 , 43.15499 ,\n",
" 43.829037, 44.503086, 45.17713 , 45.851177, 46.525227, 47.199272,\n",
" 47.87332 , 48.547367, 35.066425, 35.74047 , 36.41452 , 37.088566,\n",
" 37.76261 , 38.43666 , 39.110706, 39.784756, 40.4588 , 41.13285 ,\n",
" 41.806896, 42.48094 , 43.15499 , 43.829037, 44.503086, 45.17713 ,\n",
" 45.851177, 46.525227, 47.199272, 47.87332 , 48.547367, 49.221416,\n",
" 35.74047 , 36.41452 , 37.088566, 37.76261 , 38.43666 , 39.110706,\n",
" 39.784756, 40.4588 , 41.13285 , 41.806896, 42.48094 , 43.15499 ,\n",
" 43.829037, 44.503086, 45.17713 , 45.851177, 46.525227, 47.199272,\n",
" 47.87332 , 48.547367, 49.221416, 49.895462, 36.41452 , 37.088566,\n",
" 37.76261 , 38.43666 , 39.110706, 39.784756, 40.4588 , 41.13285 ,\n",
" 41.806896, 42.48094 , 43.15499 , 43.829037, 44.503086, 45.17713 ,\n",
" 45.851177, 46.525227, 47.199272, 47.87332 , 48.547367, 49.221416,\n",
" 49.895462, 50.569508], dtype=float32)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-035ccdcb-f367-489e-9731-f1aab7c36e6c' class='xr-section-summary-in' type='checkbox' ><label for='section-035ccdcb-f367-489e-9731-f1aab7c36e6c' 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>node<br>x<br>y</div></div><div class='xr-index-preview'>PandasMultiIndex</div><input type='checkbox' disabled/><label></label><input id='index-69b04420-abea-4fc1-b52a-b797f2cba8e1' class='xr-index-data-in' type='checkbox'/><label for='index-69b04420-abea-4fc1-b52a-b797f2cba8e1' 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(MultiIndex([( 0, 0),\n",
" ( 0, 1),\n",
" ( 0, 2),\n",
" ( 0, 3),\n",
" ( 0, 4),\n",
" ( 0, 5),\n",
" ( 0, 6),\n",
" ( 0, 7),\n",
" ( 0, 8),\n",
" ( 0, 9),\n",
" ...\n",
" (31, 12),\n",
" (31, 13),\n",
" (31, 14),\n",
" (31, 15),\n",
" (31, 16),\n",
" (31, 17),\n",
" (31, 18),\n",
" (31, 19),\n",
" (31, 20),\n",
" (31, 21)],\n",
" name=&#x27;node&#x27;, length=704))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-660ef39b-6cfb-4dd6-b3f5-c2927f752c3b' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-660ef39b-6cfb-4dd6-b3f5-c2927f752c3b' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
],
"text/plain": [
"<xarray.Dataset> Size: 28kB\n",
"Dimensions: (node: 704)\n",
"Coordinates:\n",
" * node (node) object 6kB MultiIndex\n",
" * x (node) int64 6kB 0 0 0 0 0 0 0 0 0 0 ... 31 31 31 31 31 31 31 31 31\n",
" * y (node) int64 6kB 0 1 2 3 4 5 6 7 8 9 ... 13 14 15 16 17 18 19 20 21\n",
" node_id (node) int64 6kB 0 1 2 3 4 5 6 7 ... 697 698 699 700 701 702 703\n",
"Data variables:\n",
" glamf (node) float32 3kB -71.52 -72.19 -72.87 ... -63.43 -64.1 -64.78\n",
" gphif (node) float32 3kB 15.52 16.19 16.87 17.54 ... 49.22 49.9 50.57"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"mesh_nodes = xr.Dataset()\n",
"mesh_nodes = mesh_nodes.assign(glamf=dsm.glamf.stack(node=[\"x\", \"y\"]))\n",
"mesh_nodes = mesh_nodes.assign(gphif=dsm.gphif.stack(node=[\"x\", \"y\"]))\n",
"mesh_nodes = mesh_nodes.assign_coords(node_id=((\"node\", ), list(range(mesh_nodes.sizes[\"node\"]))))\n",
"mesh_nodes"
]
},
{
"cell_type": "markdown",
"id": "c79f97ec-510c-4e05-a09e-596446d61b5b",
"metadata": {},
"source": [
"## Elements"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "f21e92eb-4d1e-421b-a38e-756366e510d9",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/tmp/ipykernel_4459/2274926609.py:9: DeprecationWarning: Deleting a single level of a MultiIndex is deprecated. Previously, this deleted all levels of a MultiIndex. Please also drop the following variables: {'element'} to avoid an error in the future.\n",
" mesh_elements = mesh_elements.drop_vars([\"x\", \"y\"])\n"
]
},
{
"data": {
"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",
"html[data-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 0 20px 0 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: inline-block;\n",
" opacity: 0;\n",
" height: 0;\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:focus + label {\n",
" border: 2px solid var(--xr-font-color0);\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'>&lt;xarray.Dataset&gt; Size: 21kB\n",
"Dimensions: (corner: 4, element: 651)\n",
"Coordinates:\n",
" * corner (corner) &lt;U2 32B &#x27;ll&#x27; &#x27;lr&#x27; &#x27;ur&#x27; &#x27;ul&#x27;\n",
"Dimensions without coordinates: element\n",
"Data variables:\n",
" node_id_in_element (corner, element) int64 21kB 0 1 2 3 ... 678 679 680 681</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-7c929f1f-b2fa-4afe-8490-41ed0793b9a3' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-7c929f1f-b2fa-4afe-8490-41ed0793b9a3' 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'>corner</span>: 4</li><li><span>element</span>: 651</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-df7bbf81-1d22-4a18-a1af-66456577fb7d' class='xr-section-summary-in' type='checkbox' checked><label for='section-df7bbf81-1d22-4a18-a1af-66456577fb7d' 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'>corner</span></div><div class='xr-var-dims'>(corner)</div><div class='xr-var-dtype'>&lt;U2</div><div class='xr-var-preview xr-preview'>&#x27;ll&#x27; &#x27;lr&#x27; &#x27;ur&#x27; &#x27;ul&#x27;</div><input id='attrs-c41aa27e-c070-45a1-aada-bfa881c15e70' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-c41aa27e-c070-45a1-aada-bfa881c15e70' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-d14181c2-24fb-4493-be43-bb67de4c2617' class='xr-var-data-in' type='checkbox'><label for='data-d14181c2-24fb-4493-be43-bb67de4c2617' 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'></dl></div><div class='xr-var-data'><pre>array([&#x27;ll&#x27;, &#x27;lr&#x27;, &#x27;ur&#x27;, &#x27;ul&#x27;], dtype=&#x27;&lt;U2&#x27;)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-b8a72e7d-2103-4c6d-8cce-d94dbddfdf17' class='xr-section-summary-in' type='checkbox' checked><label for='section-b8a72e7d-2103-4c6d-8cce-d94dbddfdf17' class='xr-section-summary' >Data variables: <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>node_id_in_element</span></div><div class='xr-var-dims'>(corner, element)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>0 1 2 3 4 5 ... 677 678 679 680 681</div><input id='attrs-b03e0c3d-e1a3-4aba-ae40-31fbe401a979' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-b03e0c3d-e1a3-4aba-ae40-31fbe401a979' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-d8355ea5-f1c1-403a-a4a1-b6fdfe13bf37' class='xr-var-data-in' type='checkbox'><label for='data-d8355ea5-f1c1-403a-a4a1-b6fdfe13bf37' 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'></dl></div><div class='xr-var-data'><pre>array([[ 0, 1, 2, ..., 678, 679, 680],\n",
" [ 22, 23, 24, ..., 700, 701, 702],\n",
" [ 23, 24, 25, ..., 701, 702, 703],\n",
" [ 1, 2, 3, ..., 679, 680, 681]])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-f20ccc4b-a0cf-4532-9210-5a050e108822' class='xr-section-summary-in' type='checkbox' ><label for='section-f20ccc4b-a0cf-4532-9210-5a050e108822' 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>corner</div></div><div class='xr-index-preview'>PandasIndex</div><input type='checkbox' disabled/><label></label><input id='index-1b5fc8f3-ed3f-49f8-964d-fafc19cbe258' class='xr-index-data-in' type='checkbox'/><label for='index-1b5fc8f3-ed3f-49f8-964d-fafc19cbe258' 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(Index([&#x27;ll&#x27;, &#x27;lr&#x27;, &#x27;ur&#x27;, &#x27;ul&#x27;], dtype=&#x27;object&#x27;, name=&#x27;corner&#x27;))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-0b9e78c6-6eac-4f76-a72d-06c9f5abe56b' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-0b9e78c6-6eac-4f76-a72d-06c9f5abe56b' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
],
"text/plain": [
"<xarray.Dataset> Size: 21kB\n",
"Dimensions: (corner: 4, element: 651)\n",
"Coordinates:\n",
" * corner (corner) <U2 32B 'll' 'lr' 'ur' 'ul'\n",
"Dimensions without coordinates: element\n",
"Data variables:\n",
" node_id_in_element (corner, element) int64 21kB 0 1 2 3 ... 678 679 680 681"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"mesh_elements = xr.Dataset()\n",
"mesh_elements = mesh_elements.assign(node_id=mesh_nodes.unstack().node_id.sel(x=x_corners, y=y_corners))\n",
"mesh_elements = mesh_elements.rename({\"node_id\": \"node_id_in_element\"})\n",
"mesh_elements = mesh_elements.assign_coords(\n",
" x=mesh_elements.x.sel(corner=\"ur\", drop=True).isel(y=0, drop=True),\n",
" y=mesh_elements.y.sel(corner=\"ur\", drop=True).isel(x=0, drop=True),\n",
")\n",
"mesh_elements = mesh_elements.stack(element=[\"x\", \"y\"])\n",
"mesh_elements = mesh_elements.drop_vars([\"x\", \"y\"])\n",
"mesh_elements"
]
},
{
"cell_type": "markdown",
"id": "a6bce10b-7ca5-4f28-bee0-eb1abc3d5202",
"metadata": {},
"source": [
"## Merged"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "a3adb010-51d3-467c-8a63-76cf22808844",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/tmp/ipykernel_4459/3683065253.py:4: DeprecationWarning: dropping variables using `drop` is deprecated; use drop_vars.\n",
" mesh = mesh.drop([\"node_id\"])\n"
]
},
{
"data": {
"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",
"html[data-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 0 20px 0 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: inline-block;\n",
" opacity: 0;\n",
" height: 0;\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:focus + label {\n",
" border: 2px solid var(--xr-font-color0);\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'>&lt;xarray.Dataset&gt; Size: 43kB\n",
"Dimensions: (node: 704, corner: 4, element: 651)\n",
"Coordinates:\n",
" x (node) int64 6kB 0 0 0 0 0 0 0 ... 31 31 31 31 31 31 31\n",
" y (node) int64 6kB 0 1 2 3 4 5 6 ... 15 16 17 18 19 20 21\n",
" glamf (node) float32 3kB -71.52 -72.19 -72.87 ... -64.1 -64.78\n",
" gphif (node) float32 3kB 15.52 16.19 16.87 ... 49.9 50.57\n",
" * corner (corner) &lt;U2 32B &#x27;ll&#x27; &#x27;lr&#x27; &#x27;ur&#x27; &#x27;ul&#x27;\n",
" node_id_in_element (corner, element) int64 21kB 0 1 2 3 ... 678 679 680 681\n",
" * node (node) int64 6kB 0 1 2 3 4 5 ... 698 699 700 701 702 703\n",
"Dimensions without coordinates: element\n",
"Data variables:\n",
" *empty*</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-0d98f58e-221c-4c71-96c1-f6db24315de0' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-0d98f58e-221c-4c71-96c1-f6db24315de0' 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'>node</span>: 704</li><li><span class='xr-has-index'>corner</span>: 4</li><li><span>element</span>: 651</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-e9fe75bd-8b32-4c2f-8e14-d2698dba5452' class='xr-section-summary-in' type='checkbox' checked><label for='section-e9fe75bd-8b32-4c2f-8e14-d2698dba5452' class='xr-section-summary' >Coordinates: <span>(7)</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>x</span></div><div class='xr-var-dims'>(node)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>0 0 0 0 0 0 0 ... 31 31 31 31 31 31</div><input id='attrs-850b93b7-6fb7-4cde-8052-cb4ac9051be7' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-850b93b7-6fb7-4cde-8052-cb4ac9051be7' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-7245ee03-f21b-44d6-8484-2c67efad2a23' class='xr-var-data-in' type='checkbox'><label for='data-7245ee03-f21b-44d6-8484-2c67efad2a23' 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'></dl></div><div class='xr-var-data'><pre>array([ 0, 0, 0, ..., 31, 31, 31])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>y</span></div><div class='xr-var-dims'>(node)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>0 1 2 3 4 5 6 ... 16 17 18 19 20 21</div><input id='attrs-0b9099cc-aa0f-4991-8f7d-3fa44a441afe' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-0b9099cc-aa0f-4991-8f7d-3fa44a441afe' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-0c22ef35-4bb8-4cb7-96da-d25acdc46c79' class='xr-var-data-in' type='checkbox'><label for='data-0c22ef35-4bb8-4cb7-96da-d25acdc46c79' 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'></dl></div><div class='xr-var-data'><pre>array([ 0, 1, 2, ..., 19, 20, 21])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>glamf</span></div><div class='xr-var-dims'>(node)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>-71.52 -72.19 ... -64.1 -64.78</div><input id='attrs-1382c76c-a0c6-4613-82d8-b3e00c704b91' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-1382c76c-a0c6-4613-82d8-b3e00c704b91' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-530010c1-cf39-4dd4-8a13-859b914bdfac' class='xr-var-data-in' type='checkbox'><label for='data-530010c1-cf39-4dd4-8a13-859b914bdfac' 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'></dl></div><div class='xr-var-data'><pre>array([-71.51906 , -72.19311 , -72.86715 , -73.5412 , -74.21525 ,\n",
" -74.88929 , -75.56334 , -76.23739 , -76.91143 , -77.58548 ,\n",
" -78.25953 , -78.93358 , -79.60762 , -80.28167 , -80.95572 ,\n",
" -81.62976 , -82.30381 , -82.97786 , -83.65191 , -84.32595 ,\n",
" -85. , -85.67405 , -70.84501 , -71.51906 , -72.19311 ,\n",
" -72.86715 , -73.5412 , -74.21525 , -74.88929 , -75.56334 ,\n",
" -76.23739 , -76.91143 , -77.58548 , -78.25953 , -78.93358 ,\n",
" -79.60762 , -80.28167 , -80.95572 , -81.62976 , -82.30381 ,\n",
" -82.97786 , -83.65191 , -84.32595 , -85. , -70.17096 ,\n",
" -70.84501 , -71.51906 , -72.19311 , -72.86715 , -73.5412 ,\n",
" -74.21525 , -74.88929 , -75.56334 , -76.23739 , -76.91143 ,\n",
" -77.58548 , -78.25953 , -78.93358 , -79.60762 , -80.28167 ,\n",
" -80.95572 , -81.62976 , -82.30381 , -82.97786 , -83.65191 ,\n",
" -84.32595 , -69.49692 , -70.17096 , -70.84501 , -71.51906 ,\n",
" -72.19311 , -72.86715 , -73.5412 , -74.21525 , -74.88929 ,\n",
" -75.56334 , -76.23739 , -76.91143 , -77.58548 , -78.25953 ,\n",
" -78.93358 , -79.60762 , -80.28167 , -80.95572 , -81.62976 ,\n",
" -82.30381 , -82.97786 , -83.65191 , -68.82287 , -69.49692 ,\n",
" -70.17096 , -70.84501 , -71.51906 , -72.19311 , -72.86715 ,\n",
" -73.5412 , -74.21525 , -74.88929 , -75.56334 , -76.23739 ,\n",
"...\n",
" -60.734303, -61.408348, -62.082397, -62.756443, -63.430492,\n",
" -64.10454 , -64.77859 , -65.45263 , -66.12668 , -66.80073 ,\n",
" -67.47478 , -52.645737, -53.319782, -53.99383 , -54.667877,\n",
" -55.341927, -56.015972, -56.690018, -57.364067, -58.038113,\n",
" -58.712162, -59.386208, -60.060253, -60.734303, -61.408348,\n",
" -62.082397, -62.756443, -63.430492, -64.10454 , -64.77859 ,\n",
" -65.45263 , -66.12668 , -66.80073 , -51.971687, -52.645737,\n",
" -53.319782, -53.99383 , -54.667877, -55.341927, -56.015972,\n",
" -56.690018, -57.364067, -58.038113, -58.712162, -59.386208,\n",
" -60.060253, -60.734303, -61.408348, -62.082397, -62.756443,\n",
" -63.430492, -64.10454 , -64.77859 , -65.45263 , -66.12668 ,\n",
" -51.29764 , -51.971687, -52.645737, -53.319782, -53.99383 ,\n",
" -54.667877, -55.341927, -56.015972, -56.690018, -57.364067,\n",
" -58.038113, -58.712162, -59.386208, -60.060253, -60.734303,\n",
" -61.408348, -62.082397, -62.756443, -63.430492, -64.10454 ,\n",
" -64.77859 , -65.45263 , -50.623596, -51.29764 , -51.971687,\n",
" -52.645737, -53.319782, -53.99383 , -54.667877, -55.341927,\n",
" -56.015972, -56.690018, -57.364067, -58.038113, -58.712162,\n",
" -59.386208, -60.060253, -60.734303, -61.408348, -62.082397,\n",
" -62.756443, -63.430492, -64.10454 , -64.77859 ], dtype=float32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>gphif</span></div><div class='xr-var-dims'>(node)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>15.52 16.19 16.87 ... 49.9 50.57</div><input id='attrs-54433fb1-6c25-4a3a-aa91-513344c5e914' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-54433fb1-6c25-4a3a-aa91-513344c5e914' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-84156b6e-58d4-48c7-a399-16168775fd1f' class='xr-var-data-in' type='checkbox'><label for='data-84156b6e-58d4-48c7-a399-16168775fd1f' 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'></dl></div><div class='xr-var-data'><pre>array([15.519056, 16.193104, 16.867151, 17.541199, 18.215246, 18.889292,\n",
" 19.56334 , 20.237387, 20.911434, 21.585482, 22.25953 , 22.933575,\n",
" 23.607622, 24.28167 , 24.955717, 25.629765, 26.303812, 26.977858,\n",
" 27.651905, 28.325953, 29. , 29.674047, 16.193104, 16.867151,\n",
" 17.541199, 18.215246, 18.889292, 19.56334 , 20.237387, 20.911434,\n",
" 21.585482, 22.25953 , 22.933575, 23.607622, 24.28167 , 24.955717,\n",
" 25.629765, 26.303812, 26.977858, 27.651905, 28.325953, 29. ,\n",
" 29.674047, 30.348095, 16.867151, 17.541199, 18.215246, 18.889292,\n",
" 19.56334 , 20.237387, 20.911434, 21.585482, 22.25953 , 22.933575,\n",
" 23.607622, 24.28167 , 24.955717, 25.629765, 26.303812, 26.977858,\n",
" 27.651905, 28.325953, 29. , 29.674047, 30.348095, 31.022142,\n",
" 17.541199, 18.215246, 18.889292, 19.56334 , 20.237387, 20.911434,\n",
" 21.585482, 22.25953 , 22.933575, 23.607622, 24.28167 , 24.955717,\n",
" 25.629765, 26.303812, 26.977858, 27.651905, 28.325953, 29. ,\n",
" 29.674047, 30.348095, 31.022142, 31.696188, 18.215246, 18.889292,\n",
" 19.56334 , 20.237387, 20.911434, 21.585482, 22.25953 , 22.933575,\n",
" 23.607622, 24.28167 , 24.955717, 25.629765, 26.303812, 26.977858,\n",
" 27.651905, 28.325953, 29. , 29.674047, 30.348095, 31.022142,\n",
" 31.696188, 32.370235, 18.889292, 19.56334 , 20.237387, 20.911434,\n",
" 21.585482, 22.25953 , 22.933575, 23.607622, 24.28167 , 24.955717,\n",
"...\n",
" 43.829037, 44.503086, 45.17713 , 45.851177, 46.525227, 47.199272,\n",
" 33.71833 , 34.392376, 35.066425, 35.74047 , 36.41452 , 37.088566,\n",
" 37.76261 , 38.43666 , 39.110706, 39.784756, 40.4588 , 41.13285 ,\n",
" 41.806896, 42.48094 , 43.15499 , 43.829037, 44.503086, 45.17713 ,\n",
" 45.851177, 46.525227, 47.199272, 47.87332 , 34.392376, 35.066425,\n",
" 35.74047 , 36.41452 , 37.088566, 37.76261 , 38.43666 , 39.110706,\n",
" 39.784756, 40.4588 , 41.13285 , 41.806896, 42.48094 , 43.15499 ,\n",
" 43.829037, 44.503086, 45.17713 , 45.851177, 46.525227, 47.199272,\n",
" 47.87332 , 48.547367, 35.066425, 35.74047 , 36.41452 , 37.088566,\n",
" 37.76261 , 38.43666 , 39.110706, 39.784756, 40.4588 , 41.13285 ,\n",
" 41.806896, 42.48094 , 43.15499 , 43.829037, 44.503086, 45.17713 ,\n",
" 45.851177, 46.525227, 47.199272, 47.87332 , 48.547367, 49.221416,\n",
" 35.74047 , 36.41452 , 37.088566, 37.76261 , 38.43666 , 39.110706,\n",
" 39.784756, 40.4588 , 41.13285 , 41.806896, 42.48094 , 43.15499 ,\n",
" 43.829037, 44.503086, 45.17713 , 45.851177, 46.525227, 47.199272,\n",
" 47.87332 , 48.547367, 49.221416, 49.895462, 36.41452 , 37.088566,\n",
" 37.76261 , 38.43666 , 39.110706, 39.784756, 40.4588 , 41.13285 ,\n",
" 41.806896, 42.48094 , 43.15499 , 43.829037, 44.503086, 45.17713 ,\n",
" 45.851177, 46.525227, 47.199272, 47.87332 , 48.547367, 49.221416,\n",
" 49.895462, 50.569508], dtype=float32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>corner</span></div><div class='xr-var-dims'>(corner)</div><div class='xr-var-dtype'>&lt;U2</div><div class='xr-var-preview xr-preview'>&#x27;ll&#x27; &#x27;lr&#x27; &#x27;ur&#x27; &#x27;ul&#x27;</div><input id='attrs-a39197ba-c6ee-4dbc-9abc-ff61bccdf821' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-a39197ba-c6ee-4dbc-9abc-ff61bccdf821' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-af3b188f-91c7-4983-8dc4-02c8d56f7877' class='xr-var-data-in' type='checkbox'><label for='data-af3b188f-91c7-4983-8dc4-02c8d56f7877' 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'></dl></div><div class='xr-var-data'><pre>array([&#x27;ll&#x27;, &#x27;lr&#x27;, &#x27;ur&#x27;, &#x27;ul&#x27;], dtype=&#x27;&lt;U2&#x27;)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>node_id_in_element</span></div><div class='xr-var-dims'>(corner, element)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>0 1 2 3 4 5 ... 677 678 679 680 681</div><input id='attrs-8d9bb931-76f6-4b12-a620-d85bc5012552' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-8d9bb931-76f6-4b12-a620-d85bc5012552' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-f5274927-e7f4-4024-b10b-cbf9151fd959' class='xr-var-data-in' type='checkbox'><label for='data-f5274927-e7f4-4024-b10b-cbf9151fd959' 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'></dl></div><div class='xr-var-data'><pre>array([[ 0, 1, 2, ..., 678, 679, 680],\n",
" [ 22, 23, 24, ..., 700, 701, 702],\n",
" [ 23, 24, 25, ..., 701, 702, 703],\n",
" [ 1, 2, 3, ..., 679, 680, 681]])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>node</span></div><div class='xr-var-dims'>(node)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>0 1 2 3 4 5 ... 699 700 701 702 703</div><input id='attrs-1cd8b748-e972-45a2-b41a-1f9961bafe8b' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-1cd8b748-e972-45a2-b41a-1f9961bafe8b' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-5d9a95c0-9de0-40dd-b855-cdcf6174adf3' class='xr-var-data-in' type='checkbox'><label for='data-5d9a95c0-9de0-40dd-b855-cdcf6174adf3' 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'></dl></div><div class='xr-var-data'><pre>array([ 0, 1, 2, ..., 701, 702, 703])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-e0f733b0-be7d-4694-9ba5-5461bc33bf38' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-e0f733b0-be7d-4694-9ba5-5461bc33bf38' class='xr-section-summary' title='Expand/collapse section'>Data variables: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'></ul></div></li><li class='xr-section-item'><input id='section-f3431bb2-9efd-4877-a151-8285df0685e5' class='xr-section-summary-in' type='checkbox' ><label for='section-f3431bb2-9efd-4877-a151-8285df0685e5' class='xr-section-summary' >Indexes: <span>(2)</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>corner</div></div><div class='xr-index-preview'>PandasIndex</div><input type='checkbox' disabled/><label></label><input id='index-bed01af8-9414-45f0-b9a8-4b2c02c80b20' class='xr-index-data-in' type='checkbox'/><label for='index-bed01af8-9414-45f0-b9a8-4b2c02c80b20' 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(Index([&#x27;ll&#x27;, &#x27;lr&#x27;, &#x27;ur&#x27;, &#x27;ul&#x27;], dtype=&#x27;object&#x27;, name=&#x27;corner&#x27;))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>node</div></div><div class='xr-index-preview'>PandasIndex</div><input type='checkbox' disabled/><label></label><input id='index-f6a1d1e2-2bc8-45b8-88c4-c046bdbbd813' class='xr-index-data-in' type='checkbox'/><label for='index-f6a1d1e2-2bc8-45b8-88c4-c046bdbbd813' 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(Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,\n",
" ...\n",
" 694, 695, 696, 697, 698, 699, 700, 701, 702, 703],\n",
" dtype=&#x27;int64&#x27;, name=&#x27;node&#x27;, length=704))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-529da4d7-bc47-4278-b061-199791f05787' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-529da4d7-bc47-4278-b061-199791f05787' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>"
],
"text/plain": [
"<xarray.Dataset> Size: 43kB\n",
"Dimensions: (node: 704, corner: 4, element: 651)\n",
"Coordinates:\n",
" x (node) int64 6kB 0 0 0 0 0 0 0 ... 31 31 31 31 31 31 31\n",
" y (node) int64 6kB 0 1 2 3 4 5 6 ... 15 16 17 18 19 20 21\n",
" glamf (node) float32 3kB -71.52 -72.19 -72.87 ... -64.1 -64.78\n",
" gphif (node) float32 3kB 15.52 16.19 16.87 ... 49.9 50.57\n",
" * corner (corner) <U2 32B 'll' 'lr' 'ur' 'ul'\n",
" node_id_in_element (corner, element) int64 21kB 0 1 2 3 ... 678 679 680 681\n",
" * node (node) int64 6kB 0 1 2 3 4 5 ... 698 699 700 701 702 703\n",
"Dimensions without coordinates: element\n",
"Data variables:\n",
" *empty*"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"mesh = xr.merge([mesh_nodes, mesh_elements])\n",
"mesh = mesh.reset_index(\"node\")\n",
"mesh = mesh.assign_coords(node=mesh.node_id)\n",
"mesh = mesh.drop([\"node_id\"])\n",
"mesh = mesh.set_coords(mesh.data_vars.keys())\n",
"mesh"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.8"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment