Skip to content

Instantly share code, notes, and snippets.

@navidcy
Created September 14, 2021 02:07
Show Gist options
  • Save navidcy/b12e5469d1a809cc4c9b447456da1fe5 to your computer and use it in GitHub Desktop.
Save navidcy/b12e5469d1a809cc4c9b447456da1fe5 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# MnWE for `nanny`-related errors\n"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"from matplotlib import rc\n",
"rc('font', **{'size':12})\n",
"rc('xtick', labelsize=12) \n",
"rc('ytick', labelsize=12) \n",
"rc('axes', titlesize=16) # fontsize of the axes title\n",
"rc('axes', labelsize=12) # fontsize of the x and y labels\n",
"\n",
"import numpy as np\n",
"from netCDF4 import Dataset\n",
"import matplotlib.pyplot as plt\n",
"import os\n",
"import xarray as xr\n",
"from xgcm import Grid"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
" <div style=\"width: 24px; height: 24px; background-color: #e1e1e1; border: 3px solid #9D9D9D; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <h3 style=\"margin-bottom: 0px;\">Client</h3>\n",
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Client-691cd6b5-14fe-11ec-af3d-40f2e9c9039e</p>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
"\n",
" <tr>\n",
" \n",
" <td style=\"text-align: left;\"><strong>Connection method:</strong> Cluster object</td>\n",
" <td style=\"text-align: left;\"><strong>Cluster type:</strong> distributed.LocalCluster</td>\n",
" \n",
" </tr>\n",
"\n",
" \n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"/proxy/8787/status\" target=\"_blank\">/proxy/8787/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" \n",
"\n",
" </table>\n",
"\n",
" \n",
" <details>\n",
" <summary style=\"margin-bottom: 20px;\"><h3 style=\"display: inline;\">Cluster Info</h3></summary>\n",
" <div class=\"jp-RenderedHTMLCommon jp-RenderedHTML jp-mod-trusted jp-OutputArea-output\">\n",
" <div style=\"width: 24px; height: 24px; background-color: #e1e1e1; border: 3px solid #9D9D9D; border-radius: 5px; position: absolute;\">\n",
" </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <h3 style=\"margin-bottom: 0px; margin-top: 0px;\">LocalCluster</h3>\n",
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">4615f7c4</p>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard:</strong> <a href=\"/proxy/8787/status\" target=\"_blank\">/proxy/8787/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Workers:</strong> 4\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads:</strong> 12\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total memory:</strong> 48.00 GiB\n",
" </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <td style=\"text-align: left;\"><strong>Status:</strong> running</td>\n",
" <td style=\"text-align: left;\"><strong>Using processes:</strong> True</td>\n",
"</tr>\n",
"\n",
" \n",
" </table>\n",
"\n",
" <details>\n",
" <summary style=\"margin-bottom: 20px;\">\n",
" <h3 style=\"display: inline;\">Scheduler Info</h3>\n",
" </summary>\n",
"\n",
" <div style=\"\">\n",
" <div>\n",
" <div style=\"width: 24px; height: 24px; background-color: #FFF7E5; border: 3px solid #FF6132; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <h3 style=\"margin-bottom: 0px;\">Scheduler</h3>\n",
" <p style=\"color: #9D9D9D; margin-bottom: 0px;\">Scheduler-5171febe-5e1b-45a8-8264-af4164ba7458</p>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Comm:</strong> tcp://127.0.0.1:43105\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Workers:</strong> 4\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard:</strong> <a href=\"/proxy/8787/status\" target=\"_blank\">/proxy/8787/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads:</strong> 12\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Started:</strong> Just now\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total memory:</strong> 48.00 GiB\n",
" </td>\n",
" </tr>\n",
" </table>\n",
" </div>\n",
" </div>\n",
"\n",
" <details style=\"margin-left: 48px;\">\n",
" <summary style=\"margin-bottom: 20px;\">\n",
" <h3 style=\"display: inline;\">Workers</h3>\n",
" </summary>\n",
"\n",
" \n",
" <div style=\"margin-bottom: 20px;\">\n",
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <details>\n",
" <summary>\n",
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 0</h4>\n",
" </summary>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Comm: </strong> tcp://10.6.123.68:35395\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 3\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"/proxy/33637/status\" target=\"_blank\">/proxy/33637/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 12.00 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Nanny: </strong> tcp://127.0.0.1:40045\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
" <strong>Local directory: </strong> /g/data/v45/nc3020/dask-worker-space/worker-y9akhyxy\n",
" </td>\n",
" </tr>\n",
"\n",
" \n",
"\n",
" \n",
"\n",
" </table>\n",
" </details>\n",
" </div>\n",
" </div>\n",
" \n",
" <div style=\"margin-bottom: 20px;\">\n",
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <details>\n",
" <summary>\n",
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 1</h4>\n",
" </summary>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Comm: </strong> tcp://10.6.123.68:41351\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 3\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"/proxy/35289/status\" target=\"_blank\">/proxy/35289/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 12.00 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Nanny: </strong> tcp://127.0.0.1:34477\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
" <strong>Local directory: </strong> /g/data/v45/nc3020/dask-worker-space/worker-d0hc3qex\n",
" </td>\n",
" </tr>\n",
"\n",
" \n",
"\n",
" \n",
"\n",
" </table>\n",
" </details>\n",
" </div>\n",
" </div>\n",
" \n",
" <div style=\"margin-bottom: 20px;\">\n",
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <details>\n",
" <summary>\n",
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 2</h4>\n",
" </summary>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Comm: </strong> tcp://10.6.123.68:44653\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 3\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"/proxy/40801/status\" target=\"_blank\">/proxy/40801/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 12.00 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Nanny: </strong> tcp://127.0.0.1:37515\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
" <strong>Local directory: </strong> /g/data/v45/nc3020/dask-worker-space/worker-7i1_68n0\n",
" </td>\n",
" </tr>\n",
"\n",
" \n",
"\n",
" \n",
"\n",
" </table>\n",
" </details>\n",
" </div>\n",
" </div>\n",
" \n",
" <div style=\"margin-bottom: 20px;\">\n",
" <div style=\"width: 24px; height: 24px; background-color: #DBF5FF; border: 3px solid #4CC9FF; border-radius: 5px; position: absolute;\"> </div>\n",
" <div style=\"margin-left: 48px;\">\n",
" <details>\n",
" <summary>\n",
" <h4 style=\"margin-bottom: 0px; display: inline;\">Worker: 3</h4>\n",
" </summary>\n",
" <table style=\"width: 100%; text-align: left;\">\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Comm: </strong> tcp://10.6.123.68:38403\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Total threads: </strong> 3\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Dashboard: </strong> <a href=\"/proxy/33205/status\" target=\"_blank\">/proxy/33205/status</a>\n",
" </td>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Memory: </strong> 12.00 GiB\n",
" </td>\n",
" </tr>\n",
" <tr>\n",
" <td style=\"text-align: left;\">\n",
" <strong>Nanny: </strong> tcp://127.0.0.1:41625\n",
" </td>\n",
" <td style=\"text-align: left;\"></td>\n",
" </tr>\n",
" <tr>\n",
" <td colspan=\"2\" style=\"text-align: left;\">\n",
" <strong>Local directory: </strong> /g/data/v45/nc3020/dask-worker-space/worker-2qyfmtpn\n",
" </td>\n",
" </tr>\n",
"\n",
" \n",
"\n",
" \n",
"\n",
" </table>\n",
" </details>\n",
" </div>\n",
" </div>\n",
" \n",
"\n",
" </details>\n",
"</div>\n",
"\n",
" </details>\n",
" </div>\n",
"</div>\n",
" </details>\n",
" \n",
"\n",
" </div>\n",
"</div>"
],
"text/plain": [
"<Client: 'tcp://127.0.0.1:43105' processes=4 threads=12, memory=48.00 GiB>"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from dask.distributed import Client\n",
"c = Client()\n",
"c"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"folder = '/scratch/v45/nc3020/mom6/archive/Ellie-formstress/'\n",
"inputfolder = '/g/data/v45/qo9901/3layer_input/layer3_tau1p0e-01_fresh_trial_canyon/'"
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {},
"outputs": [],
"source": [
"def loadprogfiles(datafolder, start_output, end_output):\n",
" \n",
" FileList = [folder + 'output' + '{0:03}'.format(i) + '/prog.nc' for i in range(start_output, end_output)]\n",
" dsx = xr.open_mfdataset(FileList, concat_dim='Time', decode_times=False, engine='netcdf4', parallel=True,\n",
" preprocess = lambda d: d[['u', 'v', 'e', 'h', 'uh', 'vh', 'pbo']])\n",
"\n",
" dsx.coords['Time'] = dsx.coords['Time']/(365)\n",
" dsx.Time.attrs['units'] = 'years'\n",
"\n",
" finalyear = dsx.Time[-1].values\n",
"\n",
" dsx.coords['xh'].attrs.update(axis='X')\n",
" dsx.coords['xq'].attrs.update(axis='X', c_grid_axis_shift=0.5)\n",
" dsx.coords['yh'].attrs.update(axis='Y')\n",
" dsx.coords['yq'].attrs.update(axis='Y', c_grid_axis_shift=0.5)\n",
"\n",
" FileList = folder + 'output*/ocean.stats.nc'\n",
" dsx_stats = xr.open_mfdataset(FileList, concat_dim='Time', decode_times=False, engine='netcdf4', parallel=True)\n",
" dsx_stats.coords['Time'] = dsx_stats.coords['Time']/(365)\n",
" dsx_stats.Time.attrs['units'] = 'years'\n",
" \n",
" return dsx, dsx_stats"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Load a year of data with daily averages"
]
},
{
"cell_type": "code",
"execution_count": 19,
"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",
"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;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: '►';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: '▼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-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",
" 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",
" 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-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-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",
" 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;\n",
"Dimensions: (Time: 365, zl: 3, yh: 500, xq: 1000, yq: 500, xh: 1000, zi: 4)\n",
"Coordinates:\n",
" * xq (xq) float64 -499.0 -498.0 -497.0 -496.0 ... 498.0 499.0 500.0\n",
" * yh (yh) float64 -249.5 -248.5 -247.5 -246.5 ... 247.5 248.5 249.5\n",
" * zl (zl) float64 1.028e+03 1.028e+03 1.028e+03\n",
" * Time (Time) float64 30.0 30.01 30.01 30.01 ... 30.99 30.99 31.0 31.0\n",
" * xh (xh) float64 -499.5 -498.5 -497.5 -496.5 ... 497.5 498.5 499.5\n",
" * yq (yq) float64 -249.0 -248.0 -247.0 -246.0 ... 248.0 249.0 250.0\n",
" * zi (zi) float64 1.028e+03 1.028e+03 1.028e+03 1.028e+03\n",
"Data variables:\n",
" u (Time, zl, yh, xq) float32 dask.array&lt;chunksize=(365, 3, 500, 1000), meta=np.ndarray&gt;\n",
" v (Time, zl, yq, xh) float32 dask.array&lt;chunksize=(365, 3, 500, 1000), meta=np.ndarray&gt;\n",
" e (Time, zi, yh, xh) float32 dask.array&lt;chunksize=(365, 4, 500, 1000), meta=np.ndarray&gt;\n",
" h (Time, zl, yh, xh) float32 dask.array&lt;chunksize=(365, 3, 500, 1000), meta=np.ndarray&gt;\n",
" uh (Time, zl, yh, xq) float32 dask.array&lt;chunksize=(365, 3, 500, 1000), meta=np.ndarray&gt;\n",
" vh (Time, zl, yq, xh) float32 dask.array&lt;chunksize=(365, 3, 500, 1000), meta=np.ndarray&gt;\n",
" pbo (Time, yh, xh) float32 dask.array&lt;chunksize=(365, 500, 1000), meta=np.ndarray&gt;\n",
"Attributes:\n",
" NumFilesInSet: 1\n",
" title: Navid Channel\n",
" grid_type: regular\n",
" grid_tile: N/A</pre><div class='xr-wrap' hidden><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-3bddd161-b7c9-4b2d-a959-99fc020b5c94' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-3bddd161-b7c9-4b2d-a959-99fc020b5c94' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span class='xr-has-index'>Time</span>: 365</li><li><span class='xr-has-index'>zl</span>: 3</li><li><span class='xr-has-index'>yh</span>: 500</li><li><span class='xr-has-index'>xq</span>: 1000</li><li><span class='xr-has-index'>yq</span>: 500</li><li><span class='xr-has-index'>xh</span>: 1000</li><li><span class='xr-has-index'>zi</span>: 4</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-7c932a43-9a1c-427c-9a5e-156c7f10f5bc' class='xr-section-summary-in' type='checkbox' checked><label for='section-7c932a43-9a1c-427c-9a5e-156c7f10f5bc' 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 class='xr-has-index'>xq</span></div><div class='xr-var-dims'>(xq)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-499.0 -498.0 ... 499.0 500.0</div><input id='attrs-9efbc2a3-b6ea-46fb-845e-3c6ddc686300' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-9efbc2a3-b6ea-46fb-845e-3c6ddc686300' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-640ace53-b0f7-4a0d-8d83-9e9a422142b6' class='xr-var-data-in' type='checkbox'><label for='data-640ace53-b0f7-4a0d-8d83-9e9a422142b6' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>domain_decomposition :</span></dt><dd>[ 1 1000 1 1000]</dd><dt><span>units :</span></dt><dd>kilometers</dd><dt><span>long_name :</span></dt><dd>q point nominal longitude</dd><dt><span>axis :</span></dt><dd>X</dd><dt><span>c_grid_axis_shift :</span></dt><dd>0.5</dd></dl></div><div class='xr-var-data'><pre>array([-499., -498., -497., ..., 498., 499., 500.])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>yh</span></div><div class='xr-var-dims'>(yh)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-249.5 -248.5 ... 248.5 249.5</div><input id='attrs-712a7576-6d25-46a2-bee8-f8c36d7a0b25' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-712a7576-6d25-46a2-bee8-f8c36d7a0b25' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-5c34ea48-828e-4709-8c72-114d52625335' class='xr-var-data-in' type='checkbox'><label for='data-5c34ea48-828e-4709-8c72-114d52625335' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>domain_decomposition :</span></dt><dd>[ 1 500 1 500]</dd><dt><span>units :</span></dt><dd>kilometers</dd><dt><span>long_name :</span></dt><dd>h point nominal latitude</dd><dt><span>axis :</span></dt><dd>Y</dd></dl></div><div class='xr-var-data'><pre>array([-249.5, -248.5, -247.5, ..., 247.5, 248.5, 249.5])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>zl</span></div><div class='xr-var-dims'>(zl)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>1.028e+03 1.028e+03 1.028e+03</div><input id='attrs-d9200ee2-c302-47c1-adce-c20d88864e3f' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-d9200ee2-c302-47c1-adce-c20d88864e3f' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-f04eeda1-1ac1-43da-859a-c98c2c6148b0' class='xr-var-data-in' type='checkbox'><label for='data-f04eeda1-1ac1-43da-859a-c98c2c6148b0' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>kg m-3</dd><dt><span>long_name :</span></dt><dd>Layer Target Potential Density</dd><dt><span>axis :</span></dt><dd>Z</dd><dt><span>positive :</span></dt><dd>up</dd></dl></div><div class='xr-var-data'><pre>array([1028. , 1028.1, 1028.3])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>Time</span></div><div class='xr-var-dims'>(Time)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>30.0 30.01 30.01 ... 31.0 31.0</div><input id='attrs-8e92af3a-b3a1-4558-a3c5-506c5d55d547' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-8e92af3a-b3a1-4558-a3c5-506c5d55d547' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-8b6aebb5-2e65-4687-b63d-90e14959ab56' class='xr-var-data-in' type='checkbox'><label for='data-8b6aebb5-2e65-4687-b63d-90e14959ab56' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>years</dd></dl></div><div class='xr-var-data'><pre>array([30.00274 , 30.005479, 30.008219, ..., 30.994521, 30.99726 , 31. ])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>xh</span></div><div class='xr-var-dims'>(xh)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-499.5 -498.5 ... 498.5 499.5</div><input id='attrs-8068e0ee-d2c4-4201-a14f-09752a654631' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-8068e0ee-d2c4-4201-a14f-09752a654631' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-bf0927f8-e05f-4452-a38a-a3576b48e457' class='xr-var-data-in' type='checkbox'><label for='data-bf0927f8-e05f-4452-a38a-a3576b48e457' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>domain_decomposition :</span></dt><dd>[ 1 1000 1 1000]</dd><dt><span>units :</span></dt><dd>kilometers</dd><dt><span>long_name :</span></dt><dd>h point nominal longitude</dd><dt><span>axis :</span></dt><dd>X</dd></dl></div><div class='xr-var-data'><pre>array([-499.5, -498.5, -497.5, ..., 497.5, 498.5, 499.5])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>yq</span></div><div class='xr-var-dims'>(yq)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-249.0 -248.0 ... 249.0 250.0</div><input id='attrs-c634cdf7-cb27-4112-81fd-14cfda7d0cd4' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-c634cdf7-cb27-4112-81fd-14cfda7d0cd4' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-c9b53450-f69e-4d01-8470-95c4048acaa9' class='xr-var-data-in' type='checkbox'><label for='data-c9b53450-f69e-4d01-8470-95c4048acaa9' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>domain_decomposition :</span></dt><dd>[ 1 500 1 500]</dd><dt><span>units :</span></dt><dd>kilometers</dd><dt><span>long_name :</span></dt><dd>q point nominal latitude</dd><dt><span>axis :</span></dt><dd>Y</dd><dt><span>c_grid_axis_shift :</span></dt><dd>0.5</dd></dl></div><div class='xr-var-data'><pre>array([-249., -248., -247., ..., 248., 249., 250.])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>zi</span></div><div class='xr-var-dims'>(zi)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>1.028e+03 1.028e+03 ... 1.028e+03</div><input id='attrs-419d176e-28e3-4232-acb4-9ee30013797a' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-419d176e-28e3-4232-acb4-9ee30013797a' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-e32db90b-7ce6-45fe-a229-8086a3bc493c' class='xr-var-data-in' type='checkbox'><label for='data-e32db90b-7ce6-45fe-a229-8086a3bc493c' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>kg m-3</dd><dt><span>long_name :</span></dt><dd>Interface Target Potential Density</dd><dt><span>axis :</span></dt><dd>Z</dd><dt><span>positive :</span></dt><dd>up</dd></dl></div><div class='xr-var-data'><pre>array([1027.95, 1028.05, 1028.2 , 1028.4 ])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-4a04f9c4-c144-46c2-b6dc-c8bbed874af5' class='xr-section-summary-in' type='checkbox' checked><label for='section-4a04f9c4-c144-46c2-b6dc-c8bbed874af5' class='xr-section-summary' >Data variables: <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>u</span></div><div class='xr-var-dims'>(Time, zl, yh, xq)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(365, 3, 500, 1000), meta=np.ndarray&gt;</div><input id='attrs-30c95501-31fa-4513-98c8-5da4cd3fb2a9' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-30c95501-31fa-4513-98c8-5da4cd3fb2a9' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-5b831790-a63c-4bf3-93f1-fd07ade2e109' class='xr-var-data-in' type='checkbox'><label for='data-5b831790-a63c-4bf3-93f1-fd07ade2e109' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>m s-1</dd><dt><span>long_name :</span></dt><dd>Zonal velocity</dd><dt><span>cell_methods :</span></dt><dd>zl:mean yh:mean xq:point time: point</dd><dt><span>interp_method :</span></dt><dd>none</dd></dl></div><div class='xr-var-data'><table>\n",
" <tr>\n",
" <td>\n",
" <table>\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 2.04 GiB </td>\n",
" <td> 2.04 GiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (365, 3, 500, 1000) </td>\n",
" <td> (365, 3, 500, 1000) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Count </th>\n",
" <td> 2 Tasks </td>\n",
" <td> 1 Chunks </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Type </th>\n",
" <td> float32 </td>\n",
" <td> numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"412\" height=\"124\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"44\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"0\" y1=\"25\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
" <line x1=\"44\" y1=\"0\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"0.0,0.0 44.161123816716184,0.0 44.161123816716184,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"22.080562\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >365</text>\n",
" <text x=\"64.161124\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,64.161124,12.706308)\">1</text>\n",
"\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"114\" y1=\"60\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"114\" y2=\"60\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 128.9485979497544,14.948597949754403 128.9485979497544,74.9485979497544 114.0,60.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"234\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"234\" y1=\"0\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 234.0,0.0 248.9485979497544,14.948597949754403 128.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"74\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
" <line x1=\"248\" y1=\"14\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"128.9485979497544,14.948597949754403 248.9485979497544,14.948597949754403 248.9485979497544,74.9485979497544 128.9485979497544,74.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"188.948598\" y=\"94.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1000</text>\n",
" <text x=\"268.948598\" y=\"44.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,268.948598,44.948598)\">500</text>\n",
" <text x=\"111.474299\" y=\"87.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,111.474299,87.474299)\">3</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>v</span></div><div class='xr-var-dims'>(Time, zl, yq, xh)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(365, 3, 500, 1000), meta=np.ndarray&gt;</div><input id='attrs-9b412439-bf75-4b5c-bb49-83e04f920188' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-9b412439-bf75-4b5c-bb49-83e04f920188' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-e0124982-6f44-44a5-9b15-70751b7960dd' class='xr-var-data-in' type='checkbox'><label for='data-e0124982-6f44-44a5-9b15-70751b7960dd' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>m s-1</dd><dt><span>long_name :</span></dt><dd>Meridional velocity</dd><dt><span>cell_methods :</span></dt><dd>zl:mean yq:point xh:mean time: point</dd><dt><span>interp_method :</span></dt><dd>none</dd></dl></div><div class='xr-var-data'><table>\n",
" <tr>\n",
" <td>\n",
" <table>\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 2.04 GiB </td>\n",
" <td> 2.04 GiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (365, 3, 500, 1000) </td>\n",
" <td> (365, 3, 500, 1000) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Count </th>\n",
" <td> 2 Tasks </td>\n",
" <td> 1 Chunks </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Type </th>\n",
" <td> float32 </td>\n",
" <td> numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"412\" height=\"124\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"44\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"0\" y1=\"25\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
" <line x1=\"44\" y1=\"0\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"0.0,0.0 44.161123816716184,0.0 44.161123816716184,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"22.080562\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >365</text>\n",
" <text x=\"64.161124\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,64.161124,12.706308)\">1</text>\n",
"\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"114\" y1=\"60\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"114\" y2=\"60\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 128.9485979497544,14.948597949754403 128.9485979497544,74.9485979497544 114.0,60.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"234\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"234\" y1=\"0\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 234.0,0.0 248.9485979497544,14.948597949754403 128.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"74\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
" <line x1=\"248\" y1=\"14\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"128.9485979497544,14.948597949754403 248.9485979497544,14.948597949754403 248.9485979497544,74.9485979497544 128.9485979497544,74.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"188.948598\" y=\"94.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1000</text>\n",
" <text x=\"268.948598\" y=\"44.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,268.948598,44.948598)\">500</text>\n",
" <text x=\"111.474299\" y=\"87.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,111.474299,87.474299)\">3</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e</span></div><div class='xr-var-dims'>(Time, zi, yh, xh)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(365, 4, 500, 1000), meta=np.ndarray&gt;</div><input id='attrs-a5052b6b-67e8-4147-9a4c-22e617f56d68' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-a5052b6b-67e8-4147-9a4c-22e617f56d68' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-b1ffb482-6ff2-48e3-8dfe-44ec74937b38' class='xr-var-data-in' type='checkbox'><label for='data-b1ffb482-6ff2-48e3-8dfe-44ec74937b38' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>m</dd><dt><span>long_name :</span></dt><dd>Interface Height Relative to Mean Sea Level</dd><dt><span>cell_methods :</span></dt><dd>area:mean zi:point yh:mean xh:mean time: point</dd></dl></div><div class='xr-var-data'><table>\n",
" <tr>\n",
" <td>\n",
" <table>\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 2.72 GiB </td>\n",
" <td> 2.72 GiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (365, 4, 500, 1000) </td>\n",
" <td> (365, 4, 500, 1000) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Count </th>\n",
" <td> 2 Tasks </td>\n",
" <td> 1 Chunks </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Type </th>\n",
" <td> float32 </td>\n",
" <td> numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"412\" height=\"124\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"44\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"0\" y1=\"25\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
" <line x1=\"44\" y1=\"0\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"0.0,0.0 44.161123816716184,0.0 44.161123816716184,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"22.080562\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >365</text>\n",
" <text x=\"64.161124\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,64.161124,12.706308)\">1</text>\n",
"\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"114\" y1=\"60\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"114\" y2=\"60\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 128.9485979497544,14.948597949754403 128.9485979497544,74.9485979497544 114.0,60.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"234\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"234\" y1=\"0\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 234.0,0.0 248.9485979497544,14.948597949754403 128.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"74\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
" <line x1=\"248\" y1=\"14\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"128.9485979497544,14.948597949754403 248.9485979497544,14.948597949754403 248.9485979497544,74.9485979497544 128.9485979497544,74.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"188.948598\" y=\"94.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1000</text>\n",
" <text x=\"268.948598\" y=\"44.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,268.948598,44.948598)\">500</text>\n",
" <text x=\"111.474299\" y=\"87.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,111.474299,87.474299)\">4</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>h</span></div><div class='xr-var-dims'>(Time, zl, yh, xh)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(365, 3, 500, 1000), meta=np.ndarray&gt;</div><input id='attrs-82833459-3fd8-4964-83d3-765d337e2078' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-82833459-3fd8-4964-83d3-765d337e2078' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ebfe3c7e-1159-499c-aa44-bbf82b2925a7' class='xr-var-data-in' type='checkbox'><label for='data-ebfe3c7e-1159-499c-aa44-bbf82b2925a7' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>m</dd><dt><span>long_name :</span></dt><dd>Layer Thickness</dd><dt><span>cell_methods :</span></dt><dd>area:mean zl:sum yh:mean xh:mean time: point</dd></dl></div><div class='xr-var-data'><table>\n",
" <tr>\n",
" <td>\n",
" <table>\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 2.04 GiB </td>\n",
" <td> 2.04 GiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (365, 3, 500, 1000) </td>\n",
" <td> (365, 3, 500, 1000) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Count </th>\n",
" <td> 2 Tasks </td>\n",
" <td> 1 Chunks </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Type </th>\n",
" <td> float32 </td>\n",
" <td> numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"412\" height=\"124\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"44\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"0\" y1=\"25\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
" <line x1=\"44\" y1=\"0\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"0.0,0.0 44.161123816716184,0.0 44.161123816716184,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"22.080562\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >365</text>\n",
" <text x=\"64.161124\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,64.161124,12.706308)\">1</text>\n",
"\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"114\" y1=\"60\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"114\" y2=\"60\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 128.9485979497544,14.948597949754403 128.9485979497544,74.9485979497544 114.0,60.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"234\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"234\" y1=\"0\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 234.0,0.0 248.9485979497544,14.948597949754403 128.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"74\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
" <line x1=\"248\" y1=\"14\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"128.9485979497544,14.948597949754403 248.9485979497544,14.948597949754403 248.9485979497544,74.9485979497544 128.9485979497544,74.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"188.948598\" y=\"94.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1000</text>\n",
" <text x=\"268.948598\" y=\"44.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,268.948598,44.948598)\">500</text>\n",
" <text x=\"111.474299\" y=\"87.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,111.474299,87.474299)\">3</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>uh</span></div><div class='xr-var-dims'>(Time, zl, yh, xq)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(365, 3, 500, 1000), meta=np.ndarray&gt;</div><input id='attrs-5b7bc677-9dd2-4c58-9d5e-1bf5f82a3e72' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-5b7bc677-9dd2-4c58-9d5e-1bf5f82a3e72' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-720b8b63-513a-45e4-898e-b1128f2d39a4' class='xr-var-data-in' type='checkbox'><label for='data-720b8b63-513a-45e4-898e-b1128f2d39a4' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>m3 s-1</dd><dt><span>long_name :</span></dt><dd>Zonal Thickness Flux</dd><dt><span>cell_methods :</span></dt><dd>zl:sum yh:sum xq:point time: point</dd><dt><span>interp_method :</span></dt><dd>none</dd></dl></div><div class='xr-var-data'><table>\n",
" <tr>\n",
" <td>\n",
" <table>\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 2.04 GiB </td>\n",
" <td> 2.04 GiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (365, 3, 500, 1000) </td>\n",
" <td> (365, 3, 500, 1000) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Count </th>\n",
" <td> 2 Tasks </td>\n",
" <td> 1 Chunks </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Type </th>\n",
" <td> float32 </td>\n",
" <td> numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"412\" height=\"124\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"44\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"0\" y1=\"25\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
" <line x1=\"44\" y1=\"0\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"0.0,0.0 44.161123816716184,0.0 44.161123816716184,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"22.080562\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >365</text>\n",
" <text x=\"64.161124\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,64.161124,12.706308)\">1</text>\n",
"\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"114\" y1=\"60\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"114\" y2=\"60\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 128.9485979497544,14.948597949754403 128.9485979497544,74.9485979497544 114.0,60.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"234\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"234\" y1=\"0\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 234.0,0.0 248.9485979497544,14.948597949754403 128.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"74\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
" <line x1=\"248\" y1=\"14\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"128.9485979497544,14.948597949754403 248.9485979497544,14.948597949754403 248.9485979497544,74.9485979497544 128.9485979497544,74.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"188.948598\" y=\"94.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1000</text>\n",
" <text x=\"268.948598\" y=\"44.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,268.948598,44.948598)\">500</text>\n",
" <text x=\"111.474299\" y=\"87.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,111.474299,87.474299)\">3</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>vh</span></div><div class='xr-var-dims'>(Time, zl, yq, xh)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(365, 3, 500, 1000), meta=np.ndarray&gt;</div><input id='attrs-3fcd5a7e-cb6f-4812-8c26-fdc19ea26bb9' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-3fcd5a7e-cb6f-4812-8c26-fdc19ea26bb9' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-aec68e32-fe9e-471a-b780-98ce89ad27de' class='xr-var-data-in' type='checkbox'><label for='data-aec68e32-fe9e-471a-b780-98ce89ad27de' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>m3 s-1</dd><dt><span>long_name :</span></dt><dd>Meridional Thickness Flux</dd><dt><span>cell_methods :</span></dt><dd>zl:sum yq:point xh:sum time: point</dd><dt><span>interp_method :</span></dt><dd>none</dd></dl></div><div class='xr-var-data'><table>\n",
" <tr>\n",
" <td>\n",
" <table>\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 2.04 GiB </td>\n",
" <td> 2.04 GiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (365, 3, 500, 1000) </td>\n",
" <td> (365, 3, 500, 1000) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Count </th>\n",
" <td> 2 Tasks </td>\n",
" <td> 1 Chunks </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Type </th>\n",
" <td> float32 </td>\n",
" <td> numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"412\" height=\"124\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"44\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"0\" y1=\"25\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
" <line x1=\"44\" y1=\"0\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"0.0,0.0 44.161123816716184,0.0 44.161123816716184,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"22.080562\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >365</text>\n",
" <text x=\"64.161124\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,64.161124,12.706308)\">1</text>\n",
"\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"114\" y1=\"60\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"114\" y2=\"60\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 128.9485979497544,14.948597949754403 128.9485979497544,74.9485979497544 114.0,60.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"234\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"234\" y1=\"0\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 234.0,0.0 248.9485979497544,14.948597949754403 128.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"74\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
" <line x1=\"248\" y1=\"14\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"128.9485979497544,14.948597949754403 248.9485979497544,14.948597949754403 248.9485979497544,74.9485979497544 128.9485979497544,74.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"188.948598\" y=\"94.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1000</text>\n",
" <text x=\"268.948598\" y=\"44.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,268.948598,44.948598)\">500</text>\n",
" <text x=\"111.474299\" y=\"87.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,111.474299,87.474299)\">3</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>pbo</span></div><div class='xr-var-dims'>(Time, yh, xh)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(365, 500, 1000), meta=np.ndarray&gt;</div><input id='attrs-dabcff4f-2462-429a-8886-3a34dd317328' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-dabcff4f-2462-429a-8886-3a34dd317328' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ddc10b94-3f45-4266-8ac7-b69b997875ff' class='xr-var-data-in' type='checkbox'><label for='data-ddc10b94-3f45-4266-8ac7-b69b997875ff' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>Pa</dd><dt><span>long_name :</span></dt><dd>Sea Water Pressure at Sea Floor</dd><dt><span>cell_methods :</span></dt><dd>area:mean yh:mean xh:mean time: point</dd><dt><span>standard_name :</span></dt><dd>sea_water_pressure_at_sea_floor</dd></dl></div><div class='xr-var-data'><table>\n",
" <tr>\n",
" <td>\n",
" <table>\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 696.18 MiB </td>\n",
" <td> 696.18 MiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (365, 500, 1000) </td>\n",
" <td> (365, 500, 1000) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Count </th>\n",
" <td> 2 Tasks </td>\n",
" <td> 1 Chunks </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Type </th>\n",
" <td> float32 </td>\n",
" <td> numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"205\" height=\"135\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"35\" y2=\"25\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"60\" x2=\"35\" y2=\"85\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"60\" style=\"stroke-width:2\" />\n",
" <line x1=\"35\" y1=\"25\" x2=\"35\" y2=\"85\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 35.97713165689187,25.977131656891874 35.97713165689187,85.97713165689187 10.0,60.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"35\" y1=\"25\" x2=\"155\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"35\" y2=\"25\" style=\"stroke-width:2\" />\n",
" <line x1=\"130\" y1=\"0\" x2=\"155\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 130.0,0.0 155.97713165689188,25.977131656891874 35.97713165689187,25.977131656891874\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"35\" y1=\"25\" x2=\"155\" y2=\"25\" style=\"stroke-width:2\" />\n",
" <line x1=\"35\" y1=\"85\" x2=\"155\" y2=\"85\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"35\" y1=\"25\" x2=\"35\" y2=\"85\" style=\"stroke-width:2\" />\n",
" <line x1=\"155\" y1=\"25\" x2=\"155\" y2=\"85\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"35.97713165689187,25.977131656891874 155.97713165689186,25.977131656891874 155.97713165689186,85.97713165689187 35.97713165689187,85.97713165689187\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"95.977132\" y=\"105.977132\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1000</text>\n",
" <text x=\"175.977132\" y=\"55.977132\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,175.977132,55.977132)\">500</text>\n",
" <text x=\"12.988566\" y=\"92.988566\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,12.988566,92.988566)\">365</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li></ul></div></li><li class='xr-section-item'><input id='section-b2927ca8-665b-4984-b579-f8cd4382b860' class='xr-section-summary-in' type='checkbox' checked><label for='section-b2927ca8-665b-4984-b579-f8cd4382b860' class='xr-section-summary' >Attributes: <span>(4)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>NumFilesInSet :</span></dt><dd>1</dd><dt><span>title :</span></dt><dd>Navid Channel</dd><dt><span>grid_type :</span></dt><dd>regular</dd><dt><span>grid_tile :</span></dt><dd>N/A</dd></dl></div></li></ul></div></div>"
],
"text/plain": [
"<xarray.Dataset>\n",
"Dimensions: (Time: 365, zl: 3, yh: 500, xq: 1000, yq: 500, xh: 1000, zi: 4)\n",
"Coordinates:\n",
" * xq (xq) float64 -499.0 -498.0 -497.0 -496.0 ... 498.0 499.0 500.0\n",
" * yh (yh) float64 -249.5 -248.5 -247.5 -246.5 ... 247.5 248.5 249.5\n",
" * zl (zl) float64 1.028e+03 1.028e+03 1.028e+03\n",
" * Time (Time) float64 30.0 30.01 30.01 30.01 ... 30.99 30.99 31.0 31.0\n",
" * xh (xh) float64 -499.5 -498.5 -497.5 -496.5 ... 497.5 498.5 499.5\n",
" * yq (yq) float64 -249.0 -248.0 -247.0 -246.0 ... 248.0 249.0 250.0\n",
" * zi (zi) float64 1.028e+03 1.028e+03 1.028e+03 1.028e+03\n",
"Data variables:\n",
" u (Time, zl, yh, xq) float32 dask.array<chunksize=(365, 3, 500, 1000), meta=np.ndarray>\n",
" v (Time, zl, yq, xh) float32 dask.array<chunksize=(365, 3, 500, 1000), meta=np.ndarray>\n",
" e (Time, zi, yh, xh) float32 dask.array<chunksize=(365, 4, 500, 1000), meta=np.ndarray>\n",
" h (Time, zl, yh, xh) float32 dask.array<chunksize=(365, 3, 500, 1000), meta=np.ndarray>\n",
" uh (Time, zl, yh, xq) float32 dask.array<chunksize=(365, 3, 500, 1000), meta=np.ndarray>\n",
" vh (Time, zl, yq, xh) float32 dask.array<chunksize=(365, 3, 500, 1000), meta=np.ndarray>\n",
" pbo (Time, yh, xh) float32 dask.array<chunksize=(365, 500, 1000), meta=np.ndarray>\n",
"Attributes:\n",
" NumFilesInSet: 1\n",
" title: Navid Channel\n",
" grid_type: regular\n",
" grid_tile: N/A"
]
},
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dsx, dsx_stats = loadprogfiles(folder, 30, 31)\n",
"\n",
"dsx"
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {},
"outputs": [],
"source": [
"def interpolate_on_hgrid(dsx):\n",
" dy = 1.e3\n",
" \n",
" ds = xr.merge([dsx.u, dsx.v])\n",
" ds.coords['xh'].attrs.update(axis='X')\n",
" ds.coords['xq'].attrs.update(axis='X', c_grid_axis_shift=0.5)\n",
" ds.coords['yh'].attrs.update(axis='Y')\n",
" ds.coords['yq'].attrs.update(axis='Y', c_grid_axis_shift=0.5)\n",
" \n",
" g = Grid(ds, periodic = ['X'])\n",
" u_initial = dsx.u\n",
" v_initial = dsx.v\n",
" v_initial = v_initial.fillna(0.)\n",
" uh_initial = dsx.uh\n",
" vh_initial = dsx.vh\n",
" vh_initial = vh_initial.fillna(0.)\n",
" e_initial = dsx.e\n",
" h_initial = dsx.h\n",
"\n",
" u = g.interp(u_initial, 'X')\n",
" u = u.rename('u')\n",
" v = g.interp(v_initial, 'Y', boundary='extend')\n",
" v = v.rename('v')\n",
" uh = g.interp(uh_initial, 'X')\n",
" uh = uh.rename('uh')\n",
" vh = g.interp(vh_initial, 'Y', boundary='extend')\n",
" vh = vh.rename('vh')\n",
" e = e_initial.rename('e')\n",
" h = h_initial.rename('h')\n",
" pbo = dsx.pbo\n",
"\n",
" dsx_interpolated_on_hgrid = xr.Dataset({'h':h, 'e':e, 'u':u, 'v':v, 'uh':uh, 'vh':vh, 'pbo': pbo})\n",
"\n",
" return dsx_interpolated_on_hgrid\n"
]
},
{
"cell_type": "code",
"execution_count": 22,
"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",
"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;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: '►';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: '▼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-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",
" 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",
" 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-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-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",
" 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;\n",
"Dimensions: (yh: 500, zl: 3, Time: 365, xh: 1000, zi: 4)\n",
"Coordinates:\n",
" * yh (yh) float64 -249.5 -248.5 -247.5 -246.5 ... 247.5 248.5 249.5\n",
" * zl (zl) float64 1.028e+03 1.028e+03 1.028e+03\n",
" * Time (Time) float64 30.0 30.01 30.01 30.01 ... 30.99 30.99 31.0 31.0\n",
" * xh (xh) float64 -499.5 -498.5 -497.5 -496.5 ... 497.5 498.5 499.5\n",
" * zi (zi) float64 1.028e+03 1.028e+03 1.028e+03 1.028e+03\n",
"Data variables:\n",
" h (Time, zl, yh, xh) float32 dask.array&lt;chunksize=(365, 3, 500, 1000), meta=np.ndarray&gt;\n",
" e (Time, zi, yh, xh) float32 dask.array&lt;chunksize=(365, 4, 500, 1000), meta=np.ndarray&gt;\n",
" u (Time, zl, yh, xh) float32 dask.array&lt;chunksize=(365, 3, 500, 1), meta=np.ndarray&gt;\n",
" v (Time, zl, yh, xh) float32 dask.array&lt;chunksize=(365, 3, 1, 1000), meta=np.ndarray&gt;\n",
" uh (Time, zl, yh, xh) float32 dask.array&lt;chunksize=(365, 3, 500, 1), meta=np.ndarray&gt;\n",
" vh (Time, zl, yh, xh) float32 dask.array&lt;chunksize=(365, 3, 1, 1000), meta=np.ndarray&gt;\n",
" pbo (Time, yh, xh) float32 dask.array&lt;chunksize=(365, 500, 1000), meta=np.ndarray&gt;</pre><div class='xr-wrap' hidden><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-b0527250-659b-4fd9-8710-4f297254831e' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-b0527250-659b-4fd9-8710-4f297254831e' 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'>yh</span>: 500</li><li><span class='xr-has-index'>zl</span>: 3</li><li><span class='xr-has-index'>Time</span>: 365</li><li><span class='xr-has-index'>xh</span>: 1000</li><li><span class='xr-has-index'>zi</span>: 4</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-f47dcbfe-6b36-46d6-b24e-6d16559cc2c9' class='xr-section-summary-in' type='checkbox' checked><label for='section-f47dcbfe-6b36-46d6-b24e-6d16559cc2c9' class='xr-section-summary' >Coordinates: <span>(5)</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'>yh</span></div><div class='xr-var-dims'>(yh)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-249.5 -248.5 ... 248.5 249.5</div><input id='attrs-05b934fa-8914-42f4-a229-cc608aaa40de' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-05b934fa-8914-42f4-a229-cc608aaa40de' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-cc232c56-6c71-4e7c-ad29-871ae19fe0b8' class='xr-var-data-in' type='checkbox'><label for='data-cc232c56-6c71-4e7c-ad29-871ae19fe0b8' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>domain_decomposition :</span></dt><dd>[ 1 500 1 500]</dd><dt><span>units :</span></dt><dd>kilometers</dd><dt><span>long_name :</span></dt><dd>h point nominal latitude</dd><dt><span>axis :</span></dt><dd>Y</dd></dl></div><div class='xr-var-data'><pre>array([-249.5, -248.5, -247.5, ..., 247.5, 248.5, 249.5])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>zl</span></div><div class='xr-var-dims'>(zl)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>1.028e+03 1.028e+03 1.028e+03</div><input id='attrs-39a9c667-1803-4050-92da-65a713dc692b' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-39a9c667-1803-4050-92da-65a713dc692b' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-233d1375-3996-44b5-b83c-3c8198887bd9' class='xr-var-data-in' type='checkbox'><label for='data-233d1375-3996-44b5-b83c-3c8198887bd9' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>kg m-3</dd><dt><span>long_name :</span></dt><dd>Layer Target Potential Density</dd><dt><span>axis :</span></dt><dd>Z</dd><dt><span>positive :</span></dt><dd>up</dd></dl></div><div class='xr-var-data'><pre>array([1028. , 1028.1, 1028.3])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>Time</span></div><div class='xr-var-dims'>(Time)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>30.0 30.01 30.01 ... 31.0 31.0</div><input id='attrs-ec7a110d-0c7d-4ac0-81f5-e0da7fdef859' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-ec7a110d-0c7d-4ac0-81f5-e0da7fdef859' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-65ccc966-7e27-4bf0-a79b-47d38b058b78' class='xr-var-data-in' type='checkbox'><label for='data-65ccc966-7e27-4bf0-a79b-47d38b058b78' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>years</dd></dl></div><div class='xr-var-data'><pre>array([30.00274 , 30.005479, 30.008219, ..., 30.994521, 30.99726 , 31. ])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>xh</span></div><div class='xr-var-dims'>(xh)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-499.5 -498.5 ... 498.5 499.5</div><input id='attrs-cb037b3e-9eb8-41c4-8621-f9c34a83a842' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-cb037b3e-9eb8-41c4-8621-f9c34a83a842' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-65f23d97-3f4e-4ad4-b449-27e64bec1c1a' class='xr-var-data-in' type='checkbox'><label for='data-65f23d97-3f4e-4ad4-b449-27e64bec1c1a' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>domain_decomposition :</span></dt><dd>[ 1 1000 1 1000]</dd><dt><span>units :</span></dt><dd>kilometers</dd><dt><span>long_name :</span></dt><dd>h point nominal longitude</dd><dt><span>axis :</span></dt><dd>X</dd></dl></div><div class='xr-var-data'><pre>array([-499.5, -498.5, -497.5, ..., 497.5, 498.5, 499.5])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>zi</span></div><div class='xr-var-dims'>(zi)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>1.028e+03 1.028e+03 ... 1.028e+03</div><input id='attrs-84b49373-3dbf-4ce4-bdf5-5b28758a6b09' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-84b49373-3dbf-4ce4-bdf5-5b28758a6b09' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-35b23c66-4d20-403a-b674-bfb925875185' class='xr-var-data-in' type='checkbox'><label for='data-35b23c66-4d20-403a-b674-bfb925875185' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>kg m-3</dd><dt><span>long_name :</span></dt><dd>Interface Target Potential Density</dd><dt><span>axis :</span></dt><dd>Z</dd><dt><span>positive :</span></dt><dd>up</dd></dl></div><div class='xr-var-data'><pre>array([1027.95, 1028.05, 1028.2 , 1028.4 ])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-ac032e19-f571-4a0f-bc57-77532ffcc9f3' class='xr-section-summary-in' type='checkbox' checked><label for='section-ac032e19-f571-4a0f-bc57-77532ffcc9f3' class='xr-section-summary' >Data variables: <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>h</span></div><div class='xr-var-dims'>(Time, zl, yh, xh)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(365, 3, 500, 1000), meta=np.ndarray&gt;</div><input id='attrs-c5ed9826-98ef-42da-b4b6-e1f12413f7db' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-c5ed9826-98ef-42da-b4b6-e1f12413f7db' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-31cabf69-415d-4743-b6fe-0306bd7a5a4e' class='xr-var-data-in' type='checkbox'><label for='data-31cabf69-415d-4743-b6fe-0306bd7a5a4e' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>m</dd><dt><span>long_name :</span></dt><dd>Layer Thickness</dd><dt><span>cell_methods :</span></dt><dd>area:mean zl:sum yh:mean xh:mean time: point</dd></dl></div><div class='xr-var-data'><table>\n",
" <tr>\n",
" <td>\n",
" <table>\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 2.04 GiB </td>\n",
" <td> 2.04 GiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (365, 3, 500, 1000) </td>\n",
" <td> (365, 3, 500, 1000) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Count </th>\n",
" <td> 2 Tasks </td>\n",
" <td> 1 Chunks </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Type </th>\n",
" <td> float32 </td>\n",
" <td> numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"412\" height=\"124\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"44\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"0\" y1=\"25\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
" <line x1=\"44\" y1=\"0\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"0.0,0.0 44.161123816716184,0.0 44.161123816716184,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"22.080562\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >365</text>\n",
" <text x=\"64.161124\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,64.161124,12.706308)\">1</text>\n",
"\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"114\" y1=\"60\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"114\" y2=\"60\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 128.9485979497544,14.948597949754403 128.9485979497544,74.9485979497544 114.0,60.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"234\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"234\" y1=\"0\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 234.0,0.0 248.9485979497544,14.948597949754403 128.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"74\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
" <line x1=\"248\" y1=\"14\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"128.9485979497544,14.948597949754403 248.9485979497544,14.948597949754403 248.9485979497544,74.9485979497544 128.9485979497544,74.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"188.948598\" y=\"94.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1000</text>\n",
" <text x=\"268.948598\" y=\"44.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,268.948598,44.948598)\">500</text>\n",
" <text x=\"111.474299\" y=\"87.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,111.474299,87.474299)\">3</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>e</span></div><div class='xr-var-dims'>(Time, zi, yh, xh)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(365, 4, 500, 1000), meta=np.ndarray&gt;</div><input id='attrs-074f1ab2-714a-4c28-980c-555e4eab0704' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-074f1ab2-714a-4c28-980c-555e4eab0704' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-bc0cf66d-3fac-495d-95e8-483b8f6db8b4' class='xr-var-data-in' type='checkbox'><label for='data-bc0cf66d-3fac-495d-95e8-483b8f6db8b4' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>m</dd><dt><span>long_name :</span></dt><dd>Interface Height Relative to Mean Sea Level</dd><dt><span>cell_methods :</span></dt><dd>area:mean zi:point yh:mean xh:mean time: point</dd></dl></div><div class='xr-var-data'><table>\n",
" <tr>\n",
" <td>\n",
" <table>\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 2.72 GiB </td>\n",
" <td> 2.72 GiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (365, 4, 500, 1000) </td>\n",
" <td> (365, 4, 500, 1000) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Count </th>\n",
" <td> 2 Tasks </td>\n",
" <td> 1 Chunks </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Type </th>\n",
" <td> float32 </td>\n",
" <td> numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"412\" height=\"124\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"44\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"0\" y1=\"25\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
" <line x1=\"44\" y1=\"0\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"0.0,0.0 44.161123816716184,0.0 44.161123816716184,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"22.080562\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >365</text>\n",
" <text x=\"64.161124\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,64.161124,12.706308)\">1</text>\n",
"\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"114\" y1=\"60\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"114\" y2=\"60\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 128.9485979497544,14.948597949754403 128.9485979497544,74.9485979497544 114.0,60.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"234\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"234\" y1=\"0\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 234.0,0.0 248.9485979497544,14.948597949754403 128.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"74\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
" <line x1=\"248\" y1=\"14\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"128.9485979497544,14.948597949754403 248.9485979497544,14.948597949754403 248.9485979497544,74.9485979497544 128.9485979497544,74.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"188.948598\" y=\"94.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1000</text>\n",
" <text x=\"268.948598\" y=\"44.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,268.948598,44.948598)\">500</text>\n",
" <text x=\"111.474299\" y=\"87.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,111.474299,87.474299)\">4</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>u</span></div><div class='xr-var-dims'>(Time, zl, yh, xh)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(365, 3, 500, 1), meta=np.ndarray&gt;</div><input id='attrs-82ff6bca-dd0a-44c1-bc7b-c5267dc01d49' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-82ff6bca-dd0a-44c1-bc7b-c5267dc01d49' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-f0088ea3-466e-4480-ac67-376701f30925' class='xr-var-data-in' type='checkbox'><label for='data-f0088ea3-466e-4480-ac67-376701f30925' 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'><table>\n",
" <tr>\n",
" <td>\n",
" <table>\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 2.04 GiB </td>\n",
" <td> 2.04 GiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (365, 3, 500, 1000) </td>\n",
" <td> (365, 3, 500, 999) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Count </th>\n",
" <td> 15 Tasks </td>\n",
" <td> 2 Chunks </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Type </th>\n",
" <td> float32 </td>\n",
" <td> numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"412\" height=\"124\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"44\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"0\" y1=\"25\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
" <line x1=\"44\" y1=\"0\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"0.0,0.0 44.161123816716184,0.0 44.161123816716184,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"22.080562\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >365</text>\n",
" <text x=\"64.161124\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,64.161124,12.706308)\">1</text>\n",
"\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"114\" y1=\"60\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"114\" y2=\"60\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 128.9485979497544,14.948597949754403 128.9485979497544,74.9485979497544 114.0,60.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"234\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"114\" y1=\"0\" x2=\"129\" y2=\"14\" />\n",
" <line x1=\"234\" y1=\"0\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 234.0,0.0 248.9485979497544,14.948597949754403 128.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"74\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
" <line x1=\"129\" y1=\"14\" x2=\"129\" y2=\"74\" />\n",
" <line x1=\"248\" y1=\"14\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"128.9485979497544,14.948597949754403 248.9485979497544,14.948597949754403 248.9485979497544,74.9485979497544 128.9485979497544,74.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"188.948598\" y=\"94.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1000</text>\n",
" <text x=\"268.948598\" y=\"44.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,268.948598,44.948598)\">500</text>\n",
" <text x=\"111.474299\" y=\"87.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,111.474299,87.474299)\">3</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>v</span></div><div class='xr-var-dims'>(Time, zl, yh, xh)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(365, 3, 1, 1000), meta=np.ndarray&gt;</div><input id='attrs-0fcf3159-75f4-44bd-8d8d-7b5ce7786b13' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-0fcf3159-75f4-44bd-8d8d-7b5ce7786b13' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-b8cd16f8-3a71-41c8-a439-ee6f5ff3b5ac' class='xr-var-data-in' type='checkbox'><label for='data-b8cd16f8-3a71-41c8-a439-ee6f5ff3b5ac' 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'><table>\n",
" <tr>\n",
" <td>\n",
" <table>\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 2.04 GiB </td>\n",
" <td> 2.04 GiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (365, 3, 500, 1000) </td>\n",
" <td> (365, 3, 499, 1000) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Count </th>\n",
" <td> 18 Tasks </td>\n",
" <td> 2 Chunks </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Type </th>\n",
" <td> float32 </td>\n",
" <td> numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"412\" height=\"124\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"44\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"0\" y1=\"25\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
" <line x1=\"44\" y1=\"0\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"0.0,0.0 44.161123816716184,0.0 44.161123816716184,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"22.080562\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >365</text>\n",
" <text x=\"64.161124\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,64.161124,12.706308)\">1</text>\n",
"\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"15\" />\n",
" <line x1=\"114\" y1=\"60\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"114\" y2=\"60\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 128.9485979497544,14.948597949754403 128.9485979497544,74.9485979497544 114.0,60.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"234\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"234\" y1=\"0\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 234.0,0.0 248.9485979497544,14.948597949754403 128.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"15\" x2=\"248\" y2=\"15\" />\n",
" <line x1=\"128\" y1=\"74\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
" <line x1=\"248\" y1=\"14\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"128.9485979497544,14.948597949754403 248.9485979497544,14.948597949754403 248.9485979497544,74.9485979497544 128.9485979497544,74.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"188.948598\" y=\"94.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1000</text>\n",
" <text x=\"268.948598\" y=\"44.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,268.948598,44.948598)\">500</text>\n",
" <text x=\"111.474299\" y=\"87.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,111.474299,87.474299)\">3</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>uh</span></div><div class='xr-var-dims'>(Time, zl, yh, xh)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(365, 3, 500, 1), meta=np.ndarray&gt;</div><input id='attrs-a365793d-8822-4613-a36a-ef3bb4194b79' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-a365793d-8822-4613-a36a-ef3bb4194b79' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ad878b33-b2af-4c56-b718-dd4e6d2d631a' class='xr-var-data-in' type='checkbox'><label for='data-ad878b33-b2af-4c56-b718-dd4e6d2d631a' 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'><table>\n",
" <tr>\n",
" <td>\n",
" <table>\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 2.04 GiB </td>\n",
" <td> 2.04 GiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (365, 3, 500, 1000) </td>\n",
" <td> (365, 3, 500, 999) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Count </th>\n",
" <td> 15 Tasks </td>\n",
" <td> 2 Chunks </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Type </th>\n",
" <td> float32 </td>\n",
" <td> numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"412\" height=\"124\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"44\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"0\" y1=\"25\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
" <line x1=\"44\" y1=\"0\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"0.0,0.0 44.161123816716184,0.0 44.161123816716184,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"22.080562\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >365</text>\n",
" <text x=\"64.161124\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,64.161124,12.706308)\">1</text>\n",
"\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"114\" y1=\"60\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"114\" y2=\"60\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 128.9485979497544,14.948597949754403 128.9485979497544,74.9485979497544 114.0,60.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"234\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"114\" y1=\"0\" x2=\"129\" y2=\"14\" />\n",
" <line x1=\"234\" y1=\"0\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 234.0,0.0 248.9485979497544,14.948597949754403 128.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"74\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
" <line x1=\"129\" y1=\"14\" x2=\"129\" y2=\"74\" />\n",
" <line x1=\"248\" y1=\"14\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"128.9485979497544,14.948597949754403 248.9485979497544,14.948597949754403 248.9485979497544,74.9485979497544 128.9485979497544,74.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"188.948598\" y=\"94.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1000</text>\n",
" <text x=\"268.948598\" y=\"44.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,268.948598,44.948598)\">500</text>\n",
" <text x=\"111.474299\" y=\"87.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,111.474299,87.474299)\">3</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>vh</span></div><div class='xr-var-dims'>(Time, zl, yh, xh)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(365, 3, 1, 1000), meta=np.ndarray&gt;</div><input id='attrs-073b08f0-71d1-4d36-8e93-91c80b7d3fad' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-073b08f0-71d1-4d36-8e93-91c80b7d3fad' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-51b6eb84-a55c-498a-a169-0f5da0c8c5c3' class='xr-var-data-in' type='checkbox'><label for='data-51b6eb84-a55c-498a-a169-0f5da0c8c5c3' 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'><table>\n",
" <tr>\n",
" <td>\n",
" <table>\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 2.04 GiB </td>\n",
" <td> 2.04 GiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (365, 3, 500, 1000) </td>\n",
" <td> (365, 3, 499, 1000) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Count </th>\n",
" <td> 18 Tasks </td>\n",
" <td> 2 Chunks </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Type </th>\n",
" <td> float32 </td>\n",
" <td> numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"412\" height=\"124\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"44\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"0\" y1=\"25\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"0\" y1=\"0\" x2=\"0\" y2=\"25\" style=\"stroke-width:2\" />\n",
" <line x1=\"44\" y1=\"0\" x2=\"44\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"0.0,0.0 44.161123816716184,0.0 44.161123816716184,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"22.080562\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >365</text>\n",
" <text x=\"64.161124\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,64.161124,12.706308)\">1</text>\n",
"\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"15\" />\n",
" <line x1=\"114\" y1=\"60\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"114\" y2=\"60\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 128.9485979497544,14.948597949754403 128.9485979497544,74.9485979497544 114.0,60.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"234\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"114\" y1=\"0\" x2=\"128\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"234\" y1=\"0\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"114.0,0.0 234.0,0.0 248.9485979497544,14.948597949754403 128.9485979497544,14.948597949754403\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"248\" y2=\"14\" style=\"stroke-width:2\" />\n",
" <line x1=\"128\" y1=\"15\" x2=\"248\" y2=\"15\" />\n",
" <line x1=\"128\" y1=\"74\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"128\" y1=\"14\" x2=\"128\" y2=\"74\" style=\"stroke-width:2\" />\n",
" <line x1=\"248\" y1=\"14\" x2=\"248\" y2=\"74\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"128.9485979497544,14.948597949754403 248.9485979497544,14.948597949754403 248.9485979497544,74.9485979497544 128.9485979497544,74.9485979497544\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"188.948598\" y=\"94.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1000</text>\n",
" <text x=\"268.948598\" y=\"44.948598\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,268.948598,44.948598)\">500</text>\n",
" <text x=\"111.474299\" y=\"87.474299\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,111.474299,87.474299)\">3</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li><li class='xr-var-item'><div class='xr-var-name'><span>pbo</span></div><div class='xr-var-dims'>(Time, yh, xh)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array&lt;chunksize=(365, 500, 1000), meta=np.ndarray&gt;</div><input id='attrs-3fad33d3-fc32-499f-9269-00191a22b1f9' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-3fad33d3-fc32-499f-9269-00191a22b1f9' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-a3ec4aac-770d-4e19-b364-c46ece2bb6d9' class='xr-var-data-in' type='checkbox'><label for='data-a3ec4aac-770d-4e19-b364-c46ece2bb6d9' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>Pa</dd><dt><span>long_name :</span></dt><dd>Sea Water Pressure at Sea Floor</dd><dt><span>cell_methods :</span></dt><dd>area:mean yh:mean xh:mean time: point</dd><dt><span>standard_name :</span></dt><dd>sea_water_pressure_at_sea_floor</dd></dl></div><div class='xr-var-data'><table>\n",
" <tr>\n",
" <td>\n",
" <table>\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 696.18 MiB </td>\n",
" <td> 696.18 MiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (365, 500, 1000) </td>\n",
" <td> (365, 500, 1000) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Count </th>\n",
" <td> 2 Tasks </td>\n",
" <td> 1 Chunks </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Type </th>\n",
" <td> float32 </td>\n",
" <td> numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"205\" height=\"135\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"35\" y2=\"25\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"60\" x2=\"35\" y2=\"85\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"60\" style=\"stroke-width:2\" />\n",
" <line x1=\"35\" y1=\"25\" x2=\"35\" y2=\"85\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 35.97713165689187,25.977131656891874 35.97713165689187,85.97713165689187 10.0,60.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"35\" y1=\"25\" x2=\"155\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"35\" y2=\"25\" style=\"stroke-width:2\" />\n",
" <line x1=\"130\" y1=\"0\" x2=\"155\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 130.0,0.0 155.97713165689188,25.977131656891874 35.97713165689187,25.977131656891874\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"35\" y1=\"25\" x2=\"155\" y2=\"25\" style=\"stroke-width:2\" />\n",
" <line x1=\"35\" y1=\"85\" x2=\"155\" y2=\"85\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"35\" y1=\"25\" x2=\"35\" y2=\"85\" style=\"stroke-width:2\" />\n",
" <line x1=\"155\" y1=\"25\" x2=\"155\" y2=\"85\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"35.97713165689187,25.977131656891874 155.97713165689186,25.977131656891874 155.97713165689186,85.97713165689187 35.97713165689187,85.97713165689187\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"95.977132\" y=\"105.977132\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1000</text>\n",
" <text x=\"175.977132\" y=\"55.977132\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,175.977132,55.977132)\">500</text>\n",
" <text x=\"12.988566\" y=\"92.988566\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,12.988566,92.988566)\">365</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></li></ul></div></li><li class='xr-section-item'><input id='section-02c55c96-cb83-450f-a57e-db0309e6b0ff' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-02c55c96-cb83-450f-a57e-db0309e6b0ff' 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>\n",
"Dimensions: (yh: 500, zl: 3, Time: 365, xh: 1000, zi: 4)\n",
"Coordinates:\n",
" * yh (yh) float64 -249.5 -248.5 -247.5 -246.5 ... 247.5 248.5 249.5\n",
" * zl (zl) float64 1.028e+03 1.028e+03 1.028e+03\n",
" * Time (Time) float64 30.0 30.01 30.01 30.01 ... 30.99 30.99 31.0 31.0\n",
" * xh (xh) float64 -499.5 -498.5 -497.5 -496.5 ... 497.5 498.5 499.5\n",
" * zi (zi) float64 1.028e+03 1.028e+03 1.028e+03 1.028e+03\n",
"Data variables:\n",
" h (Time, zl, yh, xh) float32 dask.array<chunksize=(365, 3, 500, 1000), meta=np.ndarray>\n",
" e (Time, zi, yh, xh) float32 dask.array<chunksize=(365, 4, 500, 1000), meta=np.ndarray>\n",
" u (Time, zl, yh, xh) float32 dask.array<chunksize=(365, 3, 500, 1), meta=np.ndarray>\n",
" v (Time, zl, yh, xh) float32 dask.array<chunksize=(365, 3, 1, 1000), meta=np.ndarray>\n",
" uh (Time, zl, yh, xh) float32 dask.array<chunksize=(365, 3, 500, 1), meta=np.ndarray>\n",
" vh (Time, zl, yh, xh) float32 dask.array<chunksize=(365, 3, 1, 1000), meta=np.ndarray>\n",
" pbo (Time, yh, xh) float32 dask.array<chunksize=(365, 500, 1000), meta=np.ndarray>"
]
},
"execution_count": 22,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"dsx_interpolated_on_hgrid = interpolate_on_hgrid(dsx)\n",
"\n",
"dsx_interpolated_on_hgrid"
]
},
{
"cell_type": "code",
"execution_count": 23,
"metadata": {},
"outputs": [],
"source": [
"def compute_bottomdrag(dsx_interpolated_on_hgrid):\n",
"\n",
" h1 = dsx_interpolated_on_hgrid.h.isel(zl=0)\n",
" h2 = dsx_interpolated_on_hgrid.h.isel(zl=1)\n",
" h3 = dsx_interpolated_on_hgrid.h.isel(zl=2)\n",
"\n",
" u1 = dsx_interpolated_on_hgrid.u.isel(zl=0)\n",
" u2 = dsx_interpolated_on_hgrid.u.isel(zl=1)\n",
" u3 = dsx_interpolated_on_hgrid.u.isel(zl=2)\n",
"\n",
" v1 = dsx_interpolated_on_hgrid.v.isel(zl=0)\n",
" v2 = dsx_interpolated_on_hgrid.v.isel(zl=1)\n",
" v3 = dsx_interpolated_on_hgrid.v.isel(zl=2)\n",
"\n",
" cdrag = 0.003\n",
" hbbl = 10.0\n",
"\n",
" ubottom = (u3.where(h3>hbbl, other=0)\n",
" + (u3 * h3/hbbl + u2 * (hbbl-h3)/hbbl).where((h3<hbbl)*(h3+h2>hbbl), other=0) \n",
" + (u3 * h3/hbbl + u2 * h2/hbbl + u1 * (hbbl-h2-h3)/hbbl).where(h3+h2<hbbl, other=0))\n",
"\n",
" vbottom = (v3.where(h3>hbbl, other=0)\n",
" + (v3 * h3/hbbl + v2 * (hbbl-h3)/hbbl).where((h3<hbbl)*(h3+h2>hbbl), other=0) \n",
" + (v3 * h3/hbbl + v2 * h2/hbbl + v1 * (hbbl-h2-h3)/hbbl).where(h3+h2<hbbl, other=0))\n",
"\n",
" uref = 0.1\n",
"\n",
" bottomdrag = cdrag * np.sqrt(ubottom**2 + vbottom**2 + uref**2) * ubottom\n",
" bottomdrag = bottomdrag.chunk('auto')\n",
" return bottomdrag"
]
},
{
"cell_type": "code",
"execution_count": 24,
"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",
"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;\n",
" min-width: 300px;\n",
" max-width: 700px;\n",
"}\n",
"\n",
".xr-text-repr-fallback {\n",
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
" display: none;\n",
"}\n",
"\n",
".xr-header {\n",
" padding-top: 6px;\n",
" padding-bottom: 6px;\n",
" margin-bottom: 4px;\n",
" border-bottom: solid 1px var(--xr-border-color);\n",
"}\n",
"\n",
".xr-header > div,\n",
".xr-header > ul {\n",
" display: inline;\n",
" margin-top: 0;\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-obj-type,\n",
".xr-array-name {\n",
" margin-left: 2px;\n",
" margin-right: 10px;\n",
"}\n",
"\n",
".xr-obj-type {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-sections {\n",
" padding-left: 0 !important;\n",
" display: grid;\n",
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n",
"}\n",
"\n",
".xr-section-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-section-item input {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-item input + label {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label {\n",
" cursor: pointer;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-item input:enabled + label:hover {\n",
" color: var(--xr-font-color0);\n",
"}\n",
"\n",
".xr-section-summary {\n",
" grid-column: 1;\n",
" color: var(--xr-font-color2);\n",
" font-weight: 500;\n",
"}\n",
"\n",
".xr-section-summary > span {\n",
" display: inline-block;\n",
" padding-left: 0.5em;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label {\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-section-summary-in + label:before {\n",
" display: inline-block;\n",
" content: '►';\n",
" font-size: 11px;\n",
" width: 15px;\n",
" text-align: center;\n",
"}\n",
"\n",
".xr-section-summary-in:disabled + label:before {\n",
" color: var(--xr-disabled-color);\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label:before {\n",
" content: '▼';\n",
"}\n",
"\n",
".xr-section-summary-in:checked + label > span {\n",
" display: none;\n",
"}\n",
"\n",
".xr-section-summary,\n",
".xr-section-inline-details {\n",
" padding-top: 4px;\n",
" padding-bottom: 4px;\n",
"}\n",
"\n",
".xr-section-inline-details {\n",
" grid-column: 2 / -1;\n",
"}\n",
"\n",
".xr-section-details {\n",
" display: none;\n",
" grid-column: 1 / -1;\n",
" margin-bottom: 5px;\n",
"}\n",
"\n",
".xr-section-summary-in:checked ~ .xr-section-details {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-array-wrap {\n",
" grid-column: 1 / -1;\n",
" display: grid;\n",
" grid-template-columns: 20px auto;\n",
"}\n",
"\n",
".xr-array-wrap > label {\n",
" grid-column: 1;\n",
" vertical-align: top;\n",
"}\n",
"\n",
".xr-preview {\n",
" color: var(--xr-font-color3);\n",
"}\n",
"\n",
".xr-array-preview,\n",
".xr-array-data {\n",
" padding: 0 5px !important;\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-array-data,\n",
".xr-array-in:checked ~ .xr-array-preview {\n",
" display: none;\n",
"}\n",
"\n",
".xr-array-in:checked ~ .xr-array-data,\n",
".xr-array-preview {\n",
" display: inline-block;\n",
"}\n",
"\n",
".xr-dim-list {\n",
" display: inline-block !important;\n",
" list-style: none;\n",
" padding: 0 !important;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list li {\n",
" display: inline-block;\n",
" padding: 0;\n",
" margin: 0;\n",
"}\n",
"\n",
".xr-dim-list:before {\n",
" content: '(';\n",
"}\n",
"\n",
".xr-dim-list:after {\n",
" content: ')';\n",
"}\n",
"\n",
".xr-dim-list li:not(:last-child):after {\n",
" content: ',';\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-has-index {\n",
" font-weight: bold;\n",
"}\n",
"\n",
".xr-var-list,\n",
".xr-var-item {\n",
" display: contents;\n",
"}\n",
"\n",
".xr-var-item > div,\n",
".xr-var-item label,\n",
".xr-var-item > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-even);\n",
" margin-bottom: 0;\n",
"}\n",
"\n",
".xr-var-item > .xr-var-name:hover span {\n",
" padding-right: 5px;\n",
"}\n",
"\n",
".xr-var-list > li:nth-child(odd) > div,\n",
".xr-var-list > li:nth-child(odd) > label,\n",
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
" background-color: var(--xr-background-color-row-odd);\n",
"}\n",
"\n",
".xr-var-name {\n",
" grid-column: 1;\n",
"}\n",
"\n",
".xr-var-dims {\n",
" grid-column: 2;\n",
"}\n",
"\n",
".xr-var-dtype {\n",
" grid-column: 3;\n",
" text-align: right;\n",
" color: var(--xr-font-color2);\n",
"}\n",
"\n",
".xr-var-preview {\n",
" grid-column: 4;\n",
"}\n",
"\n",
".xr-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",
" 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",
" 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-attrs {\n",
" padding-left: 25px !important;\n",
"}\n",
"\n",
".xr-attrs,\n",
".xr-var-attrs,\n",
".xr-var-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",
" 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.DataArray (Time: 365, yh: 500, xh: 1000)&gt;\n",
"dask.array&lt;rechunk-merge, shape=(365, 500, 1000), dtype=float32, chunksize=(365, 125, 250), chunktype=numpy.ndarray&gt;\n",
"Coordinates:\n",
" * yh (yh) float64 -249.5 -248.5 -247.5 -246.5 ... 247.5 248.5 249.5\n",
" * Time (Time) float64 30.0 30.01 30.01 30.01 ... 30.99 30.99 31.0 31.0\n",
" * xh (xh) float64 -499.5 -498.5 -497.5 -496.5 ... 497.5 498.5 499.5</pre><div class='xr-wrap' hidden><div class='xr-header'><div class='xr-obj-type'>xarray.DataArray</div><div class='xr-array-name'></div><ul class='xr-dim-list'><li><span class='xr-has-index'>Time</span>: 365</li><li><span class='xr-has-index'>yh</span>: 500</li><li><span class='xr-has-index'>xh</span>: 1000</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-079c4e01-5259-4c83-b869-0c6608560aa4' class='xr-array-in' type='checkbox' checked><label for='section-079c4e01-5259-4c83-b869-0c6608560aa4' title='Show/hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-array-preview xr-preview'><span>dask.array&lt;chunksize=(365, 125, 250), meta=np.ndarray&gt;</span></div><div class='xr-array-data'><table>\n",
" <tr>\n",
" <td>\n",
" <table>\n",
" <thead>\n",
" <tr>\n",
" <td> </td>\n",
" <th> Array </th>\n",
" <th> Chunk </th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" \n",
" <tr>\n",
" <th> Bytes </th>\n",
" <td> 696.18 MiB </td>\n",
" <td> 43.51 MiB </td>\n",
" </tr>\n",
" \n",
" <tr>\n",
" <th> Shape </th>\n",
" <td> (365, 500, 1000) </td>\n",
" <td> (365, 125, 250) </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Count </th>\n",
" <td> 266 Tasks </td>\n",
" <td> 16 Chunks </td>\n",
" </tr>\n",
" <tr>\n",
" <th> Type </th>\n",
" <td> float32 </td>\n",
" <td> numpy.ndarray </td>\n",
" </tr>\n",
" </tbody>\n",
" </table>\n",
" </td>\n",
" <td>\n",
" <svg width=\"205\" height=\"135\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"35\" y2=\"25\" style=\"stroke-width:2\" />\n",
" <line x1=\"10\" y1=\"15\" x2=\"35\" y2=\"40\" />\n",
" <line x1=\"10\" y1=\"30\" x2=\"35\" y2=\"55\" />\n",
" <line x1=\"10\" y1=\"45\" x2=\"35\" y2=\"70\" />\n",
" <line x1=\"10\" y1=\"60\" x2=\"35\" y2=\"85\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"10\" y2=\"60\" style=\"stroke-width:2\" />\n",
" <line x1=\"35\" y1=\"25\" x2=\"35\" y2=\"85\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 35.97713165689187,25.977131656891874 35.97713165689187,85.97713165689187 10.0,60.0\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"130\" y2=\"0\" style=\"stroke-width:2\" />\n",
" <line x1=\"35\" y1=\"25\" x2=\"155\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"10\" y1=\"0\" x2=\"35\" y2=\"25\" style=\"stroke-width:2\" />\n",
" <line x1=\"40\" y1=\"0\" x2=\"65\" y2=\"25\" />\n",
" <line x1=\"70\" y1=\"0\" x2=\"95\" y2=\"25\" />\n",
" <line x1=\"100\" y1=\"0\" x2=\"125\" y2=\"25\" />\n",
" <line x1=\"130\" y1=\"0\" x2=\"155\" y2=\"25\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"10.0,0.0 130.0,0.0 155.97713165689188,25.977131656891874 35.97713165689187,25.977131656891874\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Horizontal lines -->\n",
" <line x1=\"35\" y1=\"25\" x2=\"155\" y2=\"25\" style=\"stroke-width:2\" />\n",
" <line x1=\"35\" y1=\"40\" x2=\"155\" y2=\"40\" />\n",
" <line x1=\"35\" y1=\"55\" x2=\"155\" y2=\"55\" />\n",
" <line x1=\"35\" y1=\"70\" x2=\"155\" y2=\"70\" />\n",
" <line x1=\"35\" y1=\"85\" x2=\"155\" y2=\"85\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Vertical lines -->\n",
" <line x1=\"35\" y1=\"25\" x2=\"35\" y2=\"85\" style=\"stroke-width:2\" />\n",
" <line x1=\"65\" y1=\"25\" x2=\"65\" y2=\"85\" />\n",
" <line x1=\"95\" y1=\"25\" x2=\"95\" y2=\"85\" />\n",
" <line x1=\"125\" y1=\"25\" x2=\"125\" y2=\"85\" />\n",
" <line x1=\"155\" y1=\"25\" x2=\"155\" y2=\"85\" style=\"stroke-width:2\" />\n",
"\n",
" <!-- Colored Rectangle -->\n",
" <polygon points=\"35.97713165689187,25.977131656891874 155.97713165689186,25.977131656891874 155.97713165689186,85.97713165689187 35.97713165689187,85.97713165689187\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n",
"\n",
" <!-- Text -->\n",
" <text x=\"95.977132\" y=\"105.977132\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >1000</text>\n",
" <text x=\"175.977132\" y=\"55.977132\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(-90,175.977132,55.977132)\">500</text>\n",
" <text x=\"12.988566\" y=\"92.988566\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,12.988566,92.988566)\">365</text>\n",
"</svg>\n",
" </td>\n",
" </tr>\n",
"</table></div></div></li><li class='xr-section-item'><input id='section-e2354405-f909-4ef6-9cdf-b6af183aed5a' class='xr-section-summary-in' type='checkbox' checked><label for='section-e2354405-f909-4ef6-9cdf-b6af183aed5a' class='xr-section-summary' >Coordinates: <span>(3)</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'>yh</span></div><div class='xr-var-dims'>(yh)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-249.5 -248.5 ... 248.5 249.5</div><input id='attrs-c4c47a22-5468-4e95-b764-e3322e4098d2' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-c4c47a22-5468-4e95-b764-e3322e4098d2' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-bef1f60a-e504-4b39-bf2c-a3a255b80a69' class='xr-var-data-in' type='checkbox'><label for='data-bef1f60a-e504-4b39-bf2c-a3a255b80a69' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>domain_decomposition :</span></dt><dd>[ 1 500 1 500]</dd><dt><span>units :</span></dt><dd>kilometers</dd><dt><span>long_name :</span></dt><dd>h point nominal latitude</dd><dt><span>axis :</span></dt><dd>Y</dd></dl></div><div class='xr-var-data'><pre>array([-249.5, -248.5, -247.5, ..., 247.5, 248.5, 249.5])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>Time</span></div><div class='xr-var-dims'>(Time)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>30.0 30.01 30.01 ... 31.0 31.0</div><input id='attrs-c71cd562-e940-46ac-b2d3-5bd783afb75f' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-c71cd562-e940-46ac-b2d3-5bd783afb75f' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-e43d9e33-483d-4235-8cf6-98268b2aa496' class='xr-var-data-in' type='checkbox'><label for='data-e43d9e33-483d-4235-8cf6-98268b2aa496' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>units :</span></dt><dd>years</dd></dl></div><div class='xr-var-data'><pre>array([30.00274 , 30.005479, 30.008219, ..., 30.994521, 30.99726 , 31. ])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>xh</span></div><div class='xr-var-dims'>(xh)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-499.5 -498.5 ... 498.5 499.5</div><input id='attrs-055ee7d1-e23a-4f48-8ee9-f265acf68c8c' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-055ee7d1-e23a-4f48-8ee9-f265acf68c8c' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-f57adcca-04a1-48de-9525-52200add9970' class='xr-var-data-in' type='checkbox'><label for='data-f57adcca-04a1-48de-9525-52200add9970' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'><dt><span>domain_decomposition :</span></dt><dd>[ 1 1000 1 1000]</dd><dt><span>units :</span></dt><dd>kilometers</dd><dt><span>long_name :</span></dt><dd>h point nominal longitude</dd><dt><span>axis :</span></dt><dd>X</dd></dl></div><div class='xr-var-data'><pre>array([-499.5, -498.5, -497.5, ..., 497.5, 498.5, 499.5])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-f38103ea-a111-456c-9573-62ead1c0032f' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-f38103ea-a111-456c-9573-62ead1c0032f' 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.DataArray (Time: 365, yh: 500, xh: 1000)>\n",
"dask.array<rechunk-merge, shape=(365, 500, 1000), dtype=float32, chunksize=(365, 125, 250), chunktype=numpy.ndarray>\n",
"Coordinates:\n",
" * yh (yh) float64 -249.5 -248.5 -247.5 -246.5 ... 247.5 248.5 249.5\n",
" * Time (Time) float64 30.0 30.01 30.01 30.01 ... 30.99 30.99 31.0 31.0\n",
" * xh (xh) float64 -499.5 -498.5 -497.5 -496.5 ... 497.5 498.5 499.5"
]
},
"execution_count": 24,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"bottomdrag = compute_bottomdrag(dsx_interpolated_on_hgrid)\n",
"bottomdrag"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"distributed.nanny - WARNING - Worker exceeded 95% memory budget. Restarting\n",
"distributed.worker - ERROR - failed during get data with tcp://10.6.123.68:44653 -> tcp://10.6.123.68:41351\n",
"Traceback (most recent call last):\n",
" File \"/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.07/lib/python3.9/site-packages/tornado/iostream.py\", line 867, in _read_to_buffer\n",
" bytes_read = self.read_from_fd(buf)\n",
" File \"/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.07/lib/python3.9/site-packages/tornado/iostream.py\", line 1140, in read_from_fd\n",
" return self.socket.recv_into(buf, len(buf))\n",
"ConnectionResetError: [Errno 104] Connection reset by peer\n",
"\n",
"The above exception was the direct cause of the following exception:\n",
"\n",
"Traceback (most recent call last):\n",
" File \"/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.07/lib/python3.9/site-packages/distributed/worker.py\", line 1453, in get_data\n",
" response = await comm.read(deserializers=serializers)\n",
" File \"/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.07/lib/python3.9/site-packages/distributed/comm/tcp.py\", line 214, in read\n",
" convert_stream_closed_error(self, e)\n",
" File \"/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.07/lib/python3.9/site-packages/distributed/comm/tcp.py\", line 126, in convert_stream_closed_error\n",
" raise CommClosedError(f\"in {obj}: {exc.__class__.__name__}: {exc}\") from exc\n",
"distributed.comm.core.CommClosedError: in <TCP (closed) local=tcp://10.6.123.68:44653 remote=tcp://10.6.123.68:47876>: ConnectionResetError: [Errno 104] Connection reset by peer\n",
"distributed.nanny - WARNING - Restarting worker\n",
"distributed.worker - WARNING - Worker is at 93% memory usage. Pausing worker. Process memory: 11.26 GiB -- Worker memory limit: 12.00 GiB\n",
"distributed.nanny - WARNING - Worker exceeded 95% memory budget. Restarting\n",
"distributed.worker - ERROR - failed during get data with tcp://10.6.123.68:35395 -> tcp://10.6.123.68:44653\n",
"Traceback (most recent call last):\n",
" File \"/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.07/lib/python3.9/site-packages/distributed/comm/tcp.py\", line 198, in read\n",
" frames_nbytes = await stream.read_bytes(fmt_size)\n",
"tornado.iostream.StreamClosedError: Stream is closed\n",
"\n",
"The above exception was the direct cause of the following exception:\n",
"\n",
"Traceback (most recent call last):\n",
" File \"/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.07/lib/python3.9/site-packages/distributed/worker.py\", line 1453, in get_data\n",
" response = await comm.read(deserializers=serializers)\n",
" File \"/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.07/lib/python3.9/site-packages/distributed/comm/tcp.py\", line 214, in read\n",
" convert_stream_closed_error(self, e)\n",
" File \"/g/data/hh5/public/apps/miniconda3/envs/analysis3-21.07/lib/python3.9/site-packages/distributed/comm/tcp.py\", line 128, in convert_stream_closed_error\n",
" raise CommClosedError(f\"in {obj}: {exc}\") from exc\n",
"distributed.comm.core.CommClosedError: in <TCP (closed) local=tcp://10.6.123.68:35395 remote=tcp://10.6.123.68:58164>: Stream is closed\n",
"distributed.nanny - WARNING - Restarting worker\n"
]
}
],
"source": [
"bottomdrag.isel(Time=100).plot()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### I didn't even get to the ones below!"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"meanbottomdrag = bottomdrag.mean('Time').load()\n",
"meanbottomdrag"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"meanbottomdrag.plot()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python [conda env:analysis3-21.07]",
"language": "python",
"name": "conda-env-analysis3-21.07-py"
},
"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.9.7"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment