Created
May 31, 2024 18:43
-
-
Save andersy005/72256fa3aa971b0f11c9cca71879fcea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"id": "615941be-a085-4837-a439-96de85463cb7", | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"import xarray as xr\n", | |
"from ndpyramid.utils import set_zarr_encoding\n", | |
"import numpy as np" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 2, | |
"id": "05813214-7566-492b-bae2-2554cfbd48af", | |
"metadata": { | |
"scrolled": true | |
}, | |
"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[data-theme=dark],\n", | |
"body.vscode-dark {\n", | |
" --xr-font-color0: rgba(255, 255, 255, 1);\n", | |
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n", | |
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n", | |
" --xr-border-color: #1F1F1F;\n", | |
" --xr-disabled-color: #515151;\n", | |
" --xr-background-color: #111111;\n", | |
" --xr-background-color-row-even: #111111;\n", | |
" --xr-background-color-row-odd: #313131;\n", | |
"}\n", | |
"\n", | |
".xr-wrap {\n", | |
" display: block !important;\n", | |
" min-width: 300px;\n", | |
" max-width: 700px;\n", | |
"}\n", | |
"\n", | |
".xr-text-repr-fallback {\n", | |
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-header {\n", | |
" padding-top: 6px;\n", | |
" padding-bottom: 6px;\n", | |
" margin-bottom: 4px;\n", | |
" border-bottom: solid 1px var(--xr-border-color);\n", | |
"}\n", | |
"\n", | |
".xr-header > div,\n", | |
".xr-header > ul {\n", | |
" display: inline;\n", | |
" margin-top: 0;\n", | |
" margin-bottom: 0;\n", | |
"}\n", | |
"\n", | |
".xr-obj-type,\n", | |
".xr-array-name {\n", | |
" margin-left: 2px;\n", | |
" margin-right: 10px;\n", | |
"}\n", | |
"\n", | |
".xr-obj-type {\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-sections {\n", | |
" padding-left: 0 !important;\n", | |
" display: grid;\n", | |
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n", | |
"}\n", | |
"\n", | |
".xr-section-item {\n", | |
" display: contents;\n", | |
"}\n", | |
"\n", | |
".xr-section-item input {\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-section-item input + label {\n", | |
" color: var(--xr-disabled-color);\n", | |
"}\n", | |
"\n", | |
".xr-section-item input:enabled + label {\n", | |
" cursor: pointer;\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-section-item input:enabled + label:hover {\n", | |
" color: var(--xr-font-color0);\n", | |
"}\n", | |
"\n", | |
".xr-section-summary {\n", | |
" grid-column: 1;\n", | |
" color: var(--xr-font-color2);\n", | |
" font-weight: 500;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary > span {\n", | |
" display: inline-block;\n", | |
" padding-left: 0.5em;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:disabled + label {\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in + label:before {\n", | |
" display: inline-block;\n", | |
" content: '►';\n", | |
" font-size: 11px;\n", | |
" width: 15px;\n", | |
" text-align: center;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:disabled + label:before {\n", | |
" color: var(--xr-disabled-color);\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:checked + label:before {\n", | |
" content: '▼';\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:checked + label > span {\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary,\n", | |
".xr-section-inline-details {\n", | |
" padding-top: 4px;\n", | |
" padding-bottom: 4px;\n", | |
"}\n", | |
"\n", | |
".xr-section-inline-details {\n", | |
" grid-column: 2 / -1;\n", | |
"}\n", | |
"\n", | |
".xr-section-details {\n", | |
" display: none;\n", | |
" grid-column: 1 / -1;\n", | |
" margin-bottom: 5px;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:checked ~ .xr-section-details {\n", | |
" display: contents;\n", | |
"}\n", | |
"\n", | |
".xr-array-wrap {\n", | |
" grid-column: 1 / -1;\n", | |
" display: grid;\n", | |
" grid-template-columns: 20px auto;\n", | |
"}\n", | |
"\n", | |
".xr-array-wrap > label {\n", | |
" grid-column: 1;\n", | |
" vertical-align: top;\n", | |
"}\n", | |
"\n", | |
".xr-preview {\n", | |
" color: var(--xr-font-color3);\n", | |
"}\n", | |
"\n", | |
".xr-array-preview,\n", | |
".xr-array-data {\n", | |
" padding: 0 5px !important;\n", | |
" grid-column: 2;\n", | |
"}\n", | |
"\n", | |
".xr-array-data,\n", | |
".xr-array-in:checked ~ .xr-array-preview {\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-array-in:checked ~ .xr-array-data,\n", | |
".xr-array-preview {\n", | |
" display: inline-block;\n", | |
"}\n", | |
"\n", | |
".xr-dim-list {\n", | |
" display: inline-block !important;\n", | |
" list-style: none;\n", | |
" padding: 0 !important;\n", | |
" margin: 0;\n", | |
"}\n", | |
"\n", | |
".xr-dim-list li {\n", | |
" display: inline-block;\n", | |
" padding: 0;\n", | |
" margin: 0;\n", | |
"}\n", | |
"\n", | |
".xr-dim-list:before {\n", | |
" content: '(';\n", | |
"}\n", | |
"\n", | |
".xr-dim-list:after {\n", | |
" content: ')';\n", | |
"}\n", | |
"\n", | |
".xr-dim-list li:not(:last-child):after {\n", | |
" content: ',';\n", | |
" padding-right: 5px;\n", | |
"}\n", | |
"\n", | |
".xr-has-index {\n", | |
" font-weight: bold;\n", | |
"}\n", | |
"\n", | |
".xr-var-list,\n", | |
".xr-var-item {\n", | |
" display: contents;\n", | |
"}\n", | |
"\n", | |
".xr-var-item > div,\n", | |
".xr-var-item label,\n", | |
".xr-var-item > .xr-var-name span {\n", | |
" background-color: var(--xr-background-color-row-even);\n", | |
" margin-bottom: 0;\n", | |
"}\n", | |
"\n", | |
".xr-var-item > .xr-var-name:hover span {\n", | |
" padding-right: 5px;\n", | |
"}\n", | |
"\n", | |
".xr-var-list > li:nth-child(odd) > div,\n", | |
".xr-var-list > li:nth-child(odd) > label,\n", | |
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n", | |
" background-color: var(--xr-background-color-row-odd);\n", | |
"}\n", | |
"\n", | |
".xr-var-name {\n", | |
" grid-column: 1;\n", | |
"}\n", | |
"\n", | |
".xr-var-dims {\n", | |
" grid-column: 2;\n", | |
"}\n", | |
"\n", | |
".xr-var-dtype {\n", | |
" grid-column: 3;\n", | |
" text-align: right;\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-var-preview {\n", | |
" grid-column: 4;\n", | |
"}\n", | |
"\n", | |
".xr-index-preview {\n", | |
" grid-column: 2 / 5;\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-var-name,\n", | |
".xr-var-dims,\n", | |
".xr-var-dtype,\n", | |
".xr-preview,\n", | |
".xr-attrs dt {\n", | |
" white-space: nowrap;\n", | |
" overflow: hidden;\n", | |
" text-overflow: ellipsis;\n", | |
" padding-right: 10px;\n", | |
"}\n", | |
"\n", | |
".xr-var-name:hover,\n", | |
".xr-var-dims:hover,\n", | |
".xr-var-dtype:hover,\n", | |
".xr-attrs dt:hover {\n", | |
" overflow: visible;\n", | |
" width: auto;\n", | |
" z-index: 1;\n", | |
"}\n", | |
"\n", | |
".xr-var-attrs,\n", | |
".xr-var-data,\n", | |
".xr-index-data {\n", | |
" display: none;\n", | |
" background-color: var(--xr-background-color) !important;\n", | |
" padding-bottom: 5px !important;\n", | |
"}\n", | |
"\n", | |
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n", | |
".xr-var-data-in:checked ~ .xr-var-data,\n", | |
".xr-index-data-in:checked ~ .xr-index-data {\n", | |
" display: block;\n", | |
"}\n", | |
"\n", | |
".xr-var-data > table {\n", | |
" float: right;\n", | |
"}\n", | |
"\n", | |
".xr-var-name span,\n", | |
".xr-var-data,\n", | |
".xr-index-name div,\n", | |
".xr-index-data,\n", | |
".xr-attrs {\n", | |
" padding-left: 25px !important;\n", | |
"}\n", | |
"\n", | |
".xr-attrs,\n", | |
".xr-var-attrs,\n", | |
".xr-var-data,\n", | |
".xr-index-data {\n", | |
" grid-column: 1 / -1;\n", | |
"}\n", | |
"\n", | |
"dl.xr-attrs {\n", | |
" padding: 0;\n", | |
" margin: 0;\n", | |
" display: grid;\n", | |
" grid-template-columns: 125px auto;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dt,\n", | |
".xr-attrs dd {\n", | |
" padding: 0;\n", | |
" margin: 0;\n", | |
" float: left;\n", | |
" padding-right: 10px;\n", | |
" width: auto;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dt {\n", | |
" font-weight: normal;\n", | |
" grid-column: 1;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dt:hover span {\n", | |
" display: inline-block;\n", | |
" background: var(--xr-background-color);\n", | |
" padding-right: 10px;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dd {\n", | |
" grid-column: 2;\n", | |
" white-space: pre-wrap;\n", | |
" word-break: break-all;\n", | |
"}\n", | |
"\n", | |
".xr-icon-database,\n", | |
".xr-icon-file-text2,\n", | |
".xr-no-icon {\n", | |
" display: inline-block;\n", | |
" vertical-align: middle;\n", | |
" width: 1em;\n", | |
" height: 1.5em !important;\n", | |
" stroke-width: 0;\n", | |
" stroke: currentColor;\n", | |
" fill: currentColor;\n", | |
"}\n", | |
"</style><pre class='xr-text-repr-fallback'><xarray.Dataset> Size: 283MB\n", | |
"Dimensions: (polygon: 300, region: 4, season: 4, time: 180,\n", | |
" dist2center: 82)\n", | |
"Coordinates:\n", | |
" * polygon (polygon) int32 1kB 0 1 2 3 4 ... 296 297 298 299\n", | |
" * region (region) <U20 320B 'North_Atlantic_basin' ... ...\n", | |
" * season (season) <U8 128B 'Januaray' ... 'October'\n", | |
" * time (time) int32 720B 0 1 2 3 4 ... 176 177 178 179\n", | |
" * dist2center (dist2center) float32 328B 0.0 5e+04 ... 4.05e+06\n", | |
"Data variables:\n", | |
" FG_CO2_percent_cumulative (region, polygon, season, time, dist2center) float32 283MB ...</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-0c367e3a-fdfb-474b-9b17-7e44bfa1fa51' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-0c367e3a-fdfb-474b-9b17-7e44bfa1fa51' 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'>polygon</span>: 300</li><li><span class='xr-has-index'>region</span>: 4</li><li><span class='xr-has-index'>season</span>: 4</li><li><span class='xr-has-index'>time</span>: 180</li><li><span class='xr-has-index'>dist2center</span>: 82</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-9eb6b3ab-9b21-41fb-8c30-f3520e80a1df' class='xr-section-summary-in' type='checkbox' checked><label for='section-9eb6b3ab-9b21-41fb-8c30-f3520e80a1df' 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'>polygon</span></div><div class='xr-var-dims'>(polygon)</div><div class='xr-var-dtype'>int32</div><div class='xr-var-preview xr-preview'>0 1 2 3 4 5 ... 295 296 297 298 299</div><input id='attrs-25d7b246-4b2b-43c0-ab44-848034904d9d' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-25d7b246-4b2b-43c0-ab44-848034904d9d' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-26583ba0-71ec-4f2e-9834-ad716f13ef47' class='xr-var-data-in' type='checkbox'><label for='data-26583ba0-71ec-4f2e-9834-ad716f13ef47' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([ 0, 1, 2, ..., 297, 298, 299], dtype=int32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>region</span></div><div class='xr-var-dims'>(region)</div><div class='xr-var-dtype'><U20</div><div class='xr-var-preview xr-preview'>'North_Atlantic_basin' ... 'Sout...</div><input id='attrs-1dc96155-f76b-4833-b4ad-05e030721430' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-1dc96155-f76b-4833-b4ad-05e030721430' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-1c16d010-fe09-4908-99bf-a7c9f550cc6f' class='xr-var-data-in' type='checkbox'><label for='data-1c16d010-fe09-4908-99bf-a7c9f550cc6f' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(['North_Atlantic_basin', 'North_Pacific_basin', 'South',\n", | |
" 'Southern_Ocean'], dtype='<U20')</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>season</span></div><div class='xr-var-dims'>(season)</div><div class='xr-var-dtype'><U8</div><div class='xr-var-preview xr-preview'>'Januaray' 'April' 'July' 'October'</div><input id='attrs-b5c8f286-a18d-4473-b775-e2b3a2e2e52c' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-b5c8f286-a18d-4473-b775-e2b3a2e2e52c' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-5ecc4780-0f95-477b-a7a6-6bb217c75dd2' class='xr-var-data-in' type='checkbox'><label for='data-5ecc4780-0f95-477b-a7a6-6bb217c75dd2' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(['Januaray', 'April', 'July', 'October'], dtype='<U8')</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'>int32</div><div class='xr-var-preview xr-preview'>0 1 2 3 4 5 ... 175 176 177 178 179</div><input id='attrs-34d750d6-c2c1-4137-bd89-ef761e839351' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-34d750d6-c2c1-4137-bd89-ef761e839351' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-424897f4-50d3-44f8-92bf-fdb7d56c30c0' class='xr-var-data-in' type='checkbox'><label for='data-424897f4-50d3-44f8-92bf-fdb7d56c30c0' 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>unit :</span></dt><dd>month</dd></dl></div><div class='xr-var-data'><pre>array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,\n", | |
" 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,\n", | |
" 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,\n", | |
" 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,\n", | |
" 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,\n", | |
" 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83,\n", | |
" 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97,\n", | |
" 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111,\n", | |
" 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125,\n", | |
" 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139,\n", | |
" 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153,\n", | |
" 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167,\n", | |
" 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179], dtype=int32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>dist2center</span></div><div class='xr-var-dims'>(dist2center)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>0.0 5e+04 1e+05 ... 4e+06 4.05e+06</div><input id='attrs-984cc0ba-3b02-4ac9-873f-da8c0f2a44e8' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-984cc0ba-3b02-4ac9-873f-da8c0f2a44e8' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-7865a972-72b0-4090-a0f3-4c8d76b0134f' class='xr-var-data-in' type='checkbox'><label for='data-7865a972-72b0-4090-a0f3-4c8d76b0134f' 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>unit :</span></dt><dd>m</dd></dl></div><div class='xr-var-data'><pre>array([ 0., 50000., 100000., 150000., 200000., 250000., 300000.,\n", | |
" 350000., 400000., 450000., 500000., 550000., 600000., 650000.,\n", | |
" 700000., 750000., 800000., 850000., 900000., 950000., 1000000.,\n", | |
" 1050000., 1100000., 1150000., 1200000., 1250000., 1300000., 1350000.,\n", | |
" 1400000., 1450000., 1500000., 1550000., 1600000., 1650000., 1700000.,\n", | |
" 1750000., 1800000., 1850000., 1900000., 1950000., 2000000., 2050000.,\n", | |
" 2100000., 2150000., 2200000., 2250000., 2300000., 2350000., 2400000.,\n", | |
" 2450000., 2500000., 2550000., 2600000., 2650000., 2700000., 2750000.,\n", | |
" 2800000., 2850000., 2900000., 2950000., 3000000., 3050000., 3100000.,\n", | |
" 3150000., 3200000., 3250000., 3300000., 3350000., 3400000., 3450000.,\n", | |
" 3500000., 3550000., 3600000., 3650000., 3700000., 3750000., 3800000.,\n", | |
" 3850000., 3900000., 3950000., 4000000., 4050000.], dtype=float32)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-26b76ded-5f09-47b2-a27a-97f5f9977cd9' class='xr-section-summary-in' type='checkbox' checked><label for='section-26b76ded-5f09-47b2-a27a-97f5f9977cd9' class='xr-section-summary' >Data variables: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>FG_CO2_percent_cumulative</span></div><div class='xr-var-dims'>(region, polygon, season, time, dist2center)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>0.4762 1.675 3.782 ... 0.0 0.0 0.0</div><input id='attrs-cfa65b61-40bb-42eb-b726-e9b2646d7886' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-cfa65b61-40bb-42eb-b726-e9b2646d7886' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-af2c770b-868d-4e9c-beb8-20f495c121b6' class='xr-var-data-in' type='checkbox'><label for='data-af2c770b-868d-4e9c-beb8-20f495c121b6' 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>detail :</span></dt><dd>Cumulative percent of CO2 uptake, within a time step and distance to center</dd></dl></div><div class='xr-var-data'><pre>array([[[[[4.76224124e-01, 1.67489338e+00, 3.78242731e+00, ...,\n", | |
" 1.10874910e+01, 1.10874920e+01, 1.10875359e+01],\n", | |
" [7.94292688e-01, 2.77199197e+00, 6.26467514e+00, ...,\n", | |
" 2.00699711e+01, 2.00699711e+01, 2.00701733e+01],\n", | |
" [9.15110826e-01, 3.19406104e+00, 7.25278616e+00, ...,\n", | |
" 2.55889168e+01, 2.55889168e+01, 2.55893059e+01],\n", | |
" ...,\n", | |
" [1.22276282e+00, 4.30911112e+00, 9.84353733e+00, ...,\n", | |
" 9.94930420e+01, 9.94991837e+01, 9.95693970e+01],\n", | |
" [1.22322547e+00, 4.31078339e+00, 9.84738636e+00, ...,\n", | |
" 9.96615982e+01, 9.96678085e+01, 9.97383652e+01],\n", | |
" [1.22383785e+00, 4.31300592e+00, 9.85255909e+00, ...,\n", | |
" 9.99228058e+01, 9.99290848e+01, 1.00000000e+02]],\n", | |
"\n", | |
" [[5.57920933e-01, 1.97799063e+00, 4.33573818e+00, ...,\n", | |
" 9.79599953e+00, 9.79600048e+00, 9.79631329e+00],\n", | |
" [9.64941025e-01, 3.45760584e+00, 7.67450428e+00, ...,\n", | |
" 2.04989643e+01, 2.04989662e+01, 2.05004063e+01],\n", | |
" [1.02435505e+00, 3.68249917e+00, 8.21796513e+00, ...,\n", | |
" 2.39291096e+01, 2.39291134e+01, 2.39316750e+01],\n", | |
"...\n", | |
" 0.00000000e+00, 0.00000000e+00, 0.00000000e+00],\n", | |
" [0.00000000e+00, 0.00000000e+00, 0.00000000e+00, ...,\n", | |
" 0.00000000e+00, 0.00000000e+00, 0.00000000e+00],\n", | |
" [0.00000000e+00, 0.00000000e+00, 0.00000000e+00, ...,\n", | |
" 0.00000000e+00, 0.00000000e+00, 0.00000000e+00]],\n", | |
"\n", | |
" [[0.00000000e+00, 0.00000000e+00, 0.00000000e+00, ...,\n", | |
" 0.00000000e+00, 0.00000000e+00, 0.00000000e+00],\n", | |
" [0.00000000e+00, 0.00000000e+00, 0.00000000e+00, ...,\n", | |
" 0.00000000e+00, 0.00000000e+00, 0.00000000e+00],\n", | |
" [0.00000000e+00, 0.00000000e+00, 0.00000000e+00, ...,\n", | |
" 0.00000000e+00, 0.00000000e+00, 0.00000000e+00],\n", | |
" ...,\n", | |
" [0.00000000e+00, 0.00000000e+00, 0.00000000e+00, ...,\n", | |
" 0.00000000e+00, 0.00000000e+00, 0.00000000e+00],\n", | |
" [0.00000000e+00, 0.00000000e+00, 0.00000000e+00, ...,\n", | |
" 0.00000000e+00, 0.00000000e+00, 0.00000000e+00],\n", | |
" [0.00000000e+00, 0.00000000e+00, 0.00000000e+00, ...,\n", | |
" 0.00000000e+00, 0.00000000e+00, 0.00000000e+00]]]]],\n", | |
" dtype=float32)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-7715c4bb-e530-4954-8cc8-2b0c59e63de4' class='xr-section-summary-in' type='checkbox' ><label for='section-7715c4bb-e530-4954-8cc8-2b0c59e63de4' class='xr-section-summary' >Indexes: <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-index-name'><div>polygon</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-56352d39-2f40-4b7e-a8ad-04ec6767d71f' class='xr-index-data-in' type='checkbox'/><label for='index-56352d39-2f40-4b7e-a8ad-04ec6767d71f' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,\n", | |
" ...\n", | |
" 290, 291, 292, 293, 294, 295, 296, 297, 298, 299],\n", | |
" dtype='int32', name='polygon', length=300))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>region</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-7390f004-aa1d-4789-b2a7-0c8fa78c9fef' class='xr-index-data-in' type='checkbox'/><label for='index-7390f004-aa1d-4789-b2a7-0c8fa78c9fef' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index(['North_Atlantic_basin', 'North_Pacific_basin', 'South',\n", | |
" 'Southern_Ocean'],\n", | |
" dtype='object', name='region'))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>season</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-03e7a2bc-490b-467a-acbf-b605e41716ff' class='xr-index-data-in' type='checkbox'/><label for='index-03e7a2bc-490b-467a-acbf-b605e41716ff' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index(['Januaray', 'April', 'July', 'October'], dtype='object', name='season'))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>time</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-4a51c28e-3c53-4092-83af-246f20baeb76' class='xr-index-data-in' type='checkbox'/><label for='index-4a51c28e-3c53-4092-83af-246f20baeb76' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,\n", | |
" ...\n", | |
" 170, 171, 172, 173, 174, 175, 176, 177, 178, 179],\n", | |
" dtype='int32', name='time', length=180))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>dist2center</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-b7750d83-6e08-45fd-abfe-45a3140ffc26' class='xr-index-data-in' type='checkbox'/><label for='index-b7750d83-6e08-45fd-abfe-45a3140ffc26' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([ 0.0, 50000.0, 100000.0, 150000.0, 200000.0, 250000.0,\n", | |
" 300000.0, 350000.0, 400000.0, 450000.0, 500000.0, 550000.0,\n", | |
" 600000.0, 650000.0, 700000.0, 750000.0, 800000.0, 850000.0,\n", | |
" 900000.0, 950000.0, 1000000.0, 1050000.0, 1100000.0, 1150000.0,\n", | |
" 1200000.0, 1250000.0, 1300000.0, 1350000.0, 1400000.0, 1450000.0,\n", | |
" 1500000.0, 1550000.0, 1600000.0, 1650000.0, 1700000.0, 1750000.0,\n", | |
" 1800000.0, 1850000.0, 1900000.0, 1950000.0, 2000000.0, 2050000.0,\n", | |
" 2100000.0, 2150000.0, 2200000.0, 2250000.0, 2300000.0, 2350000.0,\n", | |
" 2400000.0, 2450000.0, 2500000.0, 2550000.0, 2600000.0, 2650000.0,\n", | |
" 2700000.0, 2750000.0, 2800000.0, 2850000.0, 2900000.0, 2950000.0,\n", | |
" 3000000.0, 3050000.0, 3100000.0, 3150000.0, 3200000.0, 3250000.0,\n", | |
" 3300000.0, 3350000.0, 3400000.0, 3450000.0, 3500000.0, 3550000.0,\n", | |
" 3600000.0, 3650000.0, 3700000.0, 3750000.0, 3800000.0, 3850000.0,\n", | |
" 3900000.0, 3950000.0, 4000000.0, 4050000.0],\n", | |
" dtype='float32', name='dist2center'))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-c4967481-70b9-4368-a284-a3df4d0a91c9' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-c4967481-70b9-4368-a284-a3df4d0a91c9' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>" | |
], | |
"text/plain": [ | |
"<xarray.Dataset> Size: 283MB\n", | |
"Dimensions: (polygon: 300, region: 4, season: 4, time: 180,\n", | |
" dist2center: 82)\n", | |
"Coordinates:\n", | |
" * polygon (polygon) int32 1kB 0 1 2 3 4 ... 296 297 298 299\n", | |
" * region (region) <U20 320B 'North_Atlantic_basin' ... ...\n", | |
" * season (season) <U8 128B 'Januaray' ... 'October'\n", | |
" * time (time) int32 720B 0 1 2 3 4 ... 176 177 178 179\n", | |
" * dist2center (dist2center) float32 328B 0.0 5e+04 ... 4.05e+06\n", | |
"Data variables:\n", | |
" FG_CO2_percent_cumulative (region, polygon, season, time, dist2center) float32 283MB ..." | |
] | |
}, | |
"execution_count": 2, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"ds = xr.open_dataset(\"/tmp/Cumulative_FG_CO2_percent.nc\", engine='netcdf4')\n", | |
"ds = set_zarr_encoding(ds, float_dtype=np.float32, int_dtype=np.int32)\n", | |
"ds" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 3, | |
"id": "38773980-885a-4326-9b70-f17a6f958b9a", | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"atlantic = ds.sel(region='North_Atlantic_basin').isel(polygon=slice(0, 150))\n", | |
"pacific = ds.sel(region='North_Pacific_basin').isel(polygon=slice(0, 200))\n", | |
"south_atlantic = ds.sel(region='South').isel(polygon=slice(0, 300))\n", | |
"southern = ds.sel(region='Southern_Ocean').isel(polygon=slice(0, 40))" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 4, | |
"id": "87a332d0-ef64-404e-a69a-eb564db9b96f", | |
"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[data-theme=dark],\n", | |
"body.vscode-dark {\n", | |
" --xr-font-color0: rgba(255, 255, 255, 1);\n", | |
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n", | |
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n", | |
" --xr-border-color: #1F1F1F;\n", | |
" --xr-disabled-color: #515151;\n", | |
" --xr-background-color: #111111;\n", | |
" --xr-background-color-row-even: #111111;\n", | |
" --xr-background-color-row-odd: #313131;\n", | |
"}\n", | |
"\n", | |
".xr-wrap {\n", | |
" display: block !important;\n", | |
" min-width: 300px;\n", | |
" max-width: 700px;\n", | |
"}\n", | |
"\n", | |
".xr-text-repr-fallback {\n", | |
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-header {\n", | |
" padding-top: 6px;\n", | |
" padding-bottom: 6px;\n", | |
" margin-bottom: 4px;\n", | |
" border-bottom: solid 1px var(--xr-border-color);\n", | |
"}\n", | |
"\n", | |
".xr-header > div,\n", | |
".xr-header > ul {\n", | |
" display: inline;\n", | |
" margin-top: 0;\n", | |
" margin-bottom: 0;\n", | |
"}\n", | |
"\n", | |
".xr-obj-type,\n", | |
".xr-array-name {\n", | |
" margin-left: 2px;\n", | |
" margin-right: 10px;\n", | |
"}\n", | |
"\n", | |
".xr-obj-type {\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-sections {\n", | |
" padding-left: 0 !important;\n", | |
" display: grid;\n", | |
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n", | |
"}\n", | |
"\n", | |
".xr-section-item {\n", | |
" display: contents;\n", | |
"}\n", | |
"\n", | |
".xr-section-item input {\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-section-item input + label {\n", | |
" color: var(--xr-disabled-color);\n", | |
"}\n", | |
"\n", | |
".xr-section-item input:enabled + label {\n", | |
" cursor: pointer;\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-section-item input:enabled + label:hover {\n", | |
" color: var(--xr-font-color0);\n", | |
"}\n", | |
"\n", | |
".xr-section-summary {\n", | |
" grid-column: 1;\n", | |
" color: var(--xr-font-color2);\n", | |
" font-weight: 500;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary > span {\n", | |
" display: inline-block;\n", | |
" padding-left: 0.5em;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:disabled + label {\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in + label:before {\n", | |
" display: inline-block;\n", | |
" content: '►';\n", | |
" font-size: 11px;\n", | |
" width: 15px;\n", | |
" text-align: center;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:disabled + label:before {\n", | |
" color: var(--xr-disabled-color);\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:checked + label:before {\n", | |
" content: '▼';\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:checked + label > span {\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary,\n", | |
".xr-section-inline-details {\n", | |
" padding-top: 4px;\n", | |
" padding-bottom: 4px;\n", | |
"}\n", | |
"\n", | |
".xr-section-inline-details {\n", | |
" grid-column: 2 / -1;\n", | |
"}\n", | |
"\n", | |
".xr-section-details {\n", | |
" display: none;\n", | |
" grid-column: 1 / -1;\n", | |
" margin-bottom: 5px;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:checked ~ .xr-section-details {\n", | |
" display: contents;\n", | |
"}\n", | |
"\n", | |
".xr-array-wrap {\n", | |
" grid-column: 1 / -1;\n", | |
" display: grid;\n", | |
" grid-template-columns: 20px auto;\n", | |
"}\n", | |
"\n", | |
".xr-array-wrap > label {\n", | |
" grid-column: 1;\n", | |
" vertical-align: top;\n", | |
"}\n", | |
"\n", | |
".xr-preview {\n", | |
" color: var(--xr-font-color3);\n", | |
"}\n", | |
"\n", | |
".xr-array-preview,\n", | |
".xr-array-data {\n", | |
" padding: 0 5px !important;\n", | |
" grid-column: 2;\n", | |
"}\n", | |
"\n", | |
".xr-array-data,\n", | |
".xr-array-in:checked ~ .xr-array-preview {\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-array-in:checked ~ .xr-array-data,\n", | |
".xr-array-preview {\n", | |
" display: inline-block;\n", | |
"}\n", | |
"\n", | |
".xr-dim-list {\n", | |
" display: inline-block !important;\n", | |
" list-style: none;\n", | |
" padding: 0 !important;\n", | |
" margin: 0;\n", | |
"}\n", | |
"\n", | |
".xr-dim-list li {\n", | |
" display: inline-block;\n", | |
" padding: 0;\n", | |
" margin: 0;\n", | |
"}\n", | |
"\n", | |
".xr-dim-list:before {\n", | |
" content: '(';\n", | |
"}\n", | |
"\n", | |
".xr-dim-list:after {\n", | |
" content: ')';\n", | |
"}\n", | |
"\n", | |
".xr-dim-list li:not(:last-child):after {\n", | |
" content: ',';\n", | |
" padding-right: 5px;\n", | |
"}\n", | |
"\n", | |
".xr-has-index {\n", | |
" font-weight: bold;\n", | |
"}\n", | |
"\n", | |
".xr-var-list,\n", | |
".xr-var-item {\n", | |
" display: contents;\n", | |
"}\n", | |
"\n", | |
".xr-var-item > div,\n", | |
".xr-var-item label,\n", | |
".xr-var-item > .xr-var-name span {\n", | |
" background-color: var(--xr-background-color-row-even);\n", | |
" margin-bottom: 0;\n", | |
"}\n", | |
"\n", | |
".xr-var-item > .xr-var-name:hover span {\n", | |
" padding-right: 5px;\n", | |
"}\n", | |
"\n", | |
".xr-var-list > li:nth-child(odd) > div,\n", | |
".xr-var-list > li:nth-child(odd) > label,\n", | |
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n", | |
" background-color: var(--xr-background-color-row-odd);\n", | |
"}\n", | |
"\n", | |
".xr-var-name {\n", | |
" grid-column: 1;\n", | |
"}\n", | |
"\n", | |
".xr-var-dims {\n", | |
" grid-column: 2;\n", | |
"}\n", | |
"\n", | |
".xr-var-dtype {\n", | |
" grid-column: 3;\n", | |
" text-align: right;\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-var-preview {\n", | |
" grid-column: 4;\n", | |
"}\n", | |
"\n", | |
".xr-index-preview {\n", | |
" grid-column: 2 / 5;\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-var-name,\n", | |
".xr-var-dims,\n", | |
".xr-var-dtype,\n", | |
".xr-preview,\n", | |
".xr-attrs dt {\n", | |
" white-space: nowrap;\n", | |
" overflow: hidden;\n", | |
" text-overflow: ellipsis;\n", | |
" padding-right: 10px;\n", | |
"}\n", | |
"\n", | |
".xr-var-name:hover,\n", | |
".xr-var-dims:hover,\n", | |
".xr-var-dtype:hover,\n", | |
".xr-attrs dt:hover {\n", | |
" overflow: visible;\n", | |
" width: auto;\n", | |
" z-index: 1;\n", | |
"}\n", | |
"\n", | |
".xr-var-attrs,\n", | |
".xr-var-data,\n", | |
".xr-index-data {\n", | |
" display: none;\n", | |
" background-color: var(--xr-background-color) !important;\n", | |
" padding-bottom: 5px !important;\n", | |
"}\n", | |
"\n", | |
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n", | |
".xr-var-data-in:checked ~ .xr-var-data,\n", | |
".xr-index-data-in:checked ~ .xr-index-data {\n", | |
" display: block;\n", | |
"}\n", | |
"\n", | |
".xr-var-data > table {\n", | |
" float: right;\n", | |
"}\n", | |
"\n", | |
".xr-var-name span,\n", | |
".xr-var-data,\n", | |
".xr-index-name div,\n", | |
".xr-index-data,\n", | |
".xr-attrs {\n", | |
" padding-left: 25px !important;\n", | |
"}\n", | |
"\n", | |
".xr-attrs,\n", | |
".xr-var-attrs,\n", | |
".xr-var-data,\n", | |
".xr-index-data {\n", | |
" grid-column: 1 / -1;\n", | |
"}\n", | |
"\n", | |
"dl.xr-attrs {\n", | |
" padding: 0;\n", | |
" margin: 0;\n", | |
" display: grid;\n", | |
" grid-template-columns: 125px auto;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dt,\n", | |
".xr-attrs dd {\n", | |
" padding: 0;\n", | |
" margin: 0;\n", | |
" float: left;\n", | |
" padding-right: 10px;\n", | |
" width: auto;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dt {\n", | |
" font-weight: normal;\n", | |
" grid-column: 1;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dt:hover span {\n", | |
" display: inline-block;\n", | |
" background: var(--xr-background-color);\n", | |
" padding-right: 10px;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dd {\n", | |
" grid-column: 2;\n", | |
" white-space: pre-wrap;\n", | |
" word-break: break-all;\n", | |
"}\n", | |
"\n", | |
".xr-icon-database,\n", | |
".xr-icon-file-text2,\n", | |
".xr-no-icon {\n", | |
" display: inline-block;\n", | |
" vertical-align: middle;\n", | |
" width: 1em;\n", | |
" height: 1.5em !important;\n", | |
" stroke-width: 0;\n", | |
" stroke: currentColor;\n", | |
" fill: currentColor;\n", | |
"}\n", | |
"</style><pre class='xr-text-repr-fallback'><xarray.Dataset> Size: 35MB\n", | |
"Dimensions: (polygon: 150, season: 4, time: 180,\n", | |
" dist2center: 82)\n", | |
"Coordinates:\n", | |
" * polygon (polygon) int32 600B 0 1 2 3 ... 146 147 148 149\n", | |
" region <U20 80B 'North_Atlantic_basin'\n", | |
" * season (season) <U8 128B 'Januaray' ... 'October'\n", | |
" * time (time) int32 720B 0 1 2 3 4 ... 176 177 178 179\n", | |
" * dist2center (dist2center) float32 328B 0.0 5e+04 ... 4.05e+06\n", | |
"Data variables:\n", | |
" FG_CO2_percent_cumulative (polygon, season, time, dist2center) float32 35MB ...</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-e42100ff-5a90-428a-9cd8-21b8f926942a' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-e42100ff-5a90-428a-9cd8-21b8f926942a' 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'>polygon</span>: 150</li><li><span class='xr-has-index'>season</span>: 4</li><li><span class='xr-has-index'>time</span>: 180</li><li><span class='xr-has-index'>dist2center</span>: 82</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-0843ebf8-1a7b-4af5-99a8-d7ad61ceece9' class='xr-section-summary-in' type='checkbox' checked><label for='section-0843ebf8-1a7b-4af5-99a8-d7ad61ceece9' 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'>polygon</span></div><div class='xr-var-dims'>(polygon)</div><div class='xr-var-dtype'>int32</div><div class='xr-var-preview xr-preview'>0 1 2 3 4 5 ... 145 146 147 148 149</div><input id='attrs-8d729664-ebf9-4ce5-89a3-7e92588e2caf' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-8d729664-ebf9-4ce5-89a3-7e92588e2caf' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-0e85cfb8-5f2e-4f69-8cf7-3676a88428fe' class='xr-var-data-in' type='checkbox'><label for='data-0e85cfb8-5f2e-4f69-8cf7-3676a88428fe' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,\n", | |
" 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,\n", | |
" 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,\n", | |
" 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,\n", | |
" 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,\n", | |
" 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83,\n", | |
" 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97,\n", | |
" 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111,\n", | |
" 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125,\n", | |
" 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139,\n", | |
" 140, 141, 142, 143, 144, 145, 146, 147, 148, 149], dtype=int32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>region</span></div><div class='xr-var-dims'>()</div><div class='xr-var-dtype'><U20</div><div class='xr-var-preview xr-preview'>'North_Atlantic_basin'</div><input id='attrs-ba6f0ea1-3655-49e1-964e-f411381ad9cc' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-ba6f0ea1-3655-49e1-964e-f411381ad9cc' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ea8a1e94-7736-4ba8-8931-c3767400157b' class='xr-var-data-in' type='checkbox'><label for='data-ea8a1e94-7736-4ba8-8931-c3767400157b' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array('North_Atlantic_basin', dtype='<U20')</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>season</span></div><div class='xr-var-dims'>(season)</div><div class='xr-var-dtype'><U8</div><div class='xr-var-preview xr-preview'>'Januaray' 'April' 'July' 'October'</div><input id='attrs-0db07d84-35cc-44b7-bde3-c12079ea4609' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-0db07d84-35cc-44b7-bde3-c12079ea4609' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-084f511a-c2af-42fc-b2a4-76394c0fdfc2' class='xr-var-data-in' type='checkbox'><label for='data-084f511a-c2af-42fc-b2a4-76394c0fdfc2' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(['Januaray', 'April', 'July', 'October'], dtype='<U8')</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'>int32</div><div class='xr-var-preview xr-preview'>0 1 2 3 4 5 ... 175 176 177 178 179</div><input id='attrs-9db4e651-f005-4cc1-874e-f1ef8eb54650' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-9db4e651-f005-4cc1-874e-f1ef8eb54650' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-27361302-65dd-443e-ba8b-662d904b02ec' class='xr-var-data-in' type='checkbox'><label for='data-27361302-65dd-443e-ba8b-662d904b02ec' 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>unit :</span></dt><dd>month</dd></dl></div><div class='xr-var-data'><pre>array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,\n", | |
" 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,\n", | |
" 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,\n", | |
" 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,\n", | |
" 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,\n", | |
" 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83,\n", | |
" 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97,\n", | |
" 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111,\n", | |
" 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125,\n", | |
" 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139,\n", | |
" 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153,\n", | |
" 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167,\n", | |
" 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179], dtype=int32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>dist2center</span></div><div class='xr-var-dims'>(dist2center)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>0.0 5e+04 1e+05 ... 4e+06 4.05e+06</div><input id='attrs-01cc05f0-8495-430b-841e-b55564b1bf9b' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-01cc05f0-8495-430b-841e-b55564b1bf9b' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-e768fa07-bef9-4b45-bbed-4cae1597daf6' class='xr-var-data-in' type='checkbox'><label for='data-e768fa07-bef9-4b45-bbed-4cae1597daf6' 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>unit :</span></dt><dd>m</dd></dl></div><div class='xr-var-data'><pre>array([ 0., 50000., 100000., 150000., 200000., 250000., 300000.,\n", | |
" 350000., 400000., 450000., 500000., 550000., 600000., 650000.,\n", | |
" 700000., 750000., 800000., 850000., 900000., 950000., 1000000.,\n", | |
" 1050000., 1100000., 1150000., 1200000., 1250000., 1300000., 1350000.,\n", | |
" 1400000., 1450000., 1500000., 1550000., 1600000., 1650000., 1700000.,\n", | |
" 1750000., 1800000., 1850000., 1900000., 1950000., 2000000., 2050000.,\n", | |
" 2100000., 2150000., 2200000., 2250000., 2300000., 2350000., 2400000.,\n", | |
" 2450000., 2500000., 2550000., 2600000., 2650000., 2700000., 2750000.,\n", | |
" 2800000., 2850000., 2900000., 2950000., 3000000., 3050000., 3100000.,\n", | |
" 3150000., 3200000., 3250000., 3300000., 3350000., 3400000., 3450000.,\n", | |
" 3500000., 3550000., 3600000., 3650000., 3700000., 3750000., 3800000.,\n", | |
" 3850000., 3900000., 3950000., 4000000., 4050000.], dtype=float32)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-ff34c535-c85e-4396-a12e-3c0c139f5ef5' class='xr-section-summary-in' type='checkbox' checked><label for='section-ff34c535-c85e-4396-a12e-3c0c139f5ef5' class='xr-section-summary' >Data variables: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>FG_CO2_percent_cumulative</span></div><div class='xr-var-dims'>(polygon, season, time, dist2center)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>0.4762 1.675 3.782 ... 90.94 100.0</div><input id='attrs-16312872-946c-45b9-8b96-691100a96e8a' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-16312872-946c-45b9-8b96-691100a96e8a' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-724cbbfe-5b47-4110-8961-414833068b18' class='xr-var-data-in' type='checkbox'><label for='data-724cbbfe-5b47-4110-8961-414833068b18' 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>detail :</span></dt><dd>Cumulative percent of CO2 uptake, within a time step and distance to center</dd></dl></div><div class='xr-var-data'><pre>array([[[[4.76224124e-01, 1.67489338e+00, 3.78242731e+00, ...,\n", | |
" 1.10874910e+01, 1.10874920e+01, 1.10875359e+01],\n", | |
" [7.94292688e-01, 2.77199197e+00, 6.26467514e+00, ...,\n", | |
" 2.00699711e+01, 2.00699711e+01, 2.00701733e+01],\n", | |
" [9.15110826e-01, 3.19406104e+00, 7.25278616e+00, ...,\n", | |
" 2.55889168e+01, 2.55889168e+01, 2.55893059e+01],\n", | |
" ...,\n", | |
" [1.22276282e+00, 4.30911112e+00, 9.84353733e+00, ...,\n", | |
" 9.94930420e+01, 9.94991837e+01, 9.95693970e+01],\n", | |
" [1.22322547e+00, 4.31078339e+00, 9.84738636e+00, ...,\n", | |
" 9.96615982e+01, 9.96678085e+01, 9.97383652e+01],\n", | |
" [1.22383785e+00, 4.31300592e+00, 9.85255909e+00, ...,\n", | |
" 9.99228058e+01, 9.99290848e+01, 1.00000000e+02]],\n", | |
"\n", | |
" [[5.57920933e-01, 1.97799063e+00, 4.33573818e+00, ...,\n", | |
" 9.79599953e+00, 9.79600048e+00, 9.79631329e+00],\n", | |
" [9.64941025e-01, 3.45760584e+00, 7.67450428e+00, ...,\n", | |
" 2.04989643e+01, 2.04989662e+01, 2.05004063e+01],\n", | |
" [1.02435505e+00, 3.68249917e+00, 8.21796513e+00, ...,\n", | |
" 2.39291096e+01, 2.39291134e+01, 2.39316750e+01],\n", | |
"...\n", | |
" 9.08753967e+01, 9.12371826e+01, 9.99697723e+01],\n", | |
" [3.82001735e-02, 3.93497199e-01, 6.51183367e-01, ...,\n", | |
" 9.08831863e+01, 9.12453003e+01, 9.99880524e+01],\n", | |
" [3.82002667e-02, 3.93498152e-01, 6.51184916e-01, ...,\n", | |
" 9.08881760e+01, 9.12504959e+01, 1.00000000e+02]],\n", | |
"\n", | |
" [[1.73388608e-02, 1.83322653e-01, 3.03801000e-01, ...,\n", | |
" 3.58271003e+00, 3.58271003e+00, 3.58270669e+00],\n", | |
" [2.96960138e-02, 2.97939599e-01, 5.05848289e-01, ...,\n", | |
" 8.29588223e+00, 8.29588223e+00, 8.29588223e+00],\n", | |
" [3.23360637e-02, 3.24169904e-01, 5.57833314e-01, ...,\n", | |
" 1.41025324e+01, 1.41025324e+01, 1.41025419e+01],\n", | |
" ...,\n", | |
" [7.40564838e-02, 7.50408828e-01, 1.24415469e+00, ...,\n", | |
" 9.05132217e+01, 9.09303055e+01, 9.99723053e+01],\n", | |
" [7.40564764e-02, 7.50408709e-01, 1.24415457e+00, ...,\n", | |
" 9.05181274e+01, 9.09353638e+01, 9.99851456e+01],\n", | |
" [7.40564540e-02, 7.50408411e-01, 1.24415410e+00, ...,\n", | |
" 9.05221405e+01, 9.09395370e+01, 1.00000000e+02]]]],\n", | |
" dtype=float32)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-ef063fb4-eeaf-4c4e-87c5-cfd65cc6368d' class='xr-section-summary-in' type='checkbox' ><label for='section-ef063fb4-eeaf-4c4e-87c5-cfd65cc6368d' class='xr-section-summary' >Indexes: <span>(4)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>polygon</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-4d2a9800-69b7-4af4-95e4-6846f7cbf281' class='xr-index-data-in' type='checkbox'/><label for='index-4d2a9800-69b7-4af4-95e4-6846f7cbf281' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,\n", | |
" ...\n", | |
" 140, 141, 142, 143, 144, 145, 146, 147, 148, 149],\n", | |
" dtype='int32', name='polygon', length=150))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>season</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-bf23b077-978c-490c-b5e1-3f2b8d9463c9' class='xr-index-data-in' type='checkbox'/><label for='index-bf23b077-978c-490c-b5e1-3f2b8d9463c9' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index(['Januaray', 'April', 'July', 'October'], dtype='object', name='season'))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>time</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-af79913a-e78a-41dc-9f92-026126478bf0' class='xr-index-data-in' type='checkbox'/><label for='index-af79913a-e78a-41dc-9f92-026126478bf0' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,\n", | |
" ...\n", | |
" 170, 171, 172, 173, 174, 175, 176, 177, 178, 179],\n", | |
" dtype='int32', name='time', length=180))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>dist2center</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-757f0562-2129-4a51-bab6-211a7f5cc430' class='xr-index-data-in' type='checkbox'/><label for='index-757f0562-2129-4a51-bab6-211a7f5cc430' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([ 0.0, 50000.0, 100000.0, 150000.0, 200000.0, 250000.0,\n", | |
" 300000.0, 350000.0, 400000.0, 450000.0, 500000.0, 550000.0,\n", | |
" 600000.0, 650000.0, 700000.0, 750000.0, 800000.0, 850000.0,\n", | |
" 900000.0, 950000.0, 1000000.0, 1050000.0, 1100000.0, 1150000.0,\n", | |
" 1200000.0, 1250000.0, 1300000.0, 1350000.0, 1400000.0, 1450000.0,\n", | |
" 1500000.0, 1550000.0, 1600000.0, 1650000.0, 1700000.0, 1750000.0,\n", | |
" 1800000.0, 1850000.0, 1900000.0, 1950000.0, 2000000.0, 2050000.0,\n", | |
" 2100000.0, 2150000.0, 2200000.0, 2250000.0, 2300000.0, 2350000.0,\n", | |
" 2400000.0, 2450000.0, 2500000.0, 2550000.0, 2600000.0, 2650000.0,\n", | |
" 2700000.0, 2750000.0, 2800000.0, 2850000.0, 2900000.0, 2950000.0,\n", | |
" 3000000.0, 3050000.0, 3100000.0, 3150000.0, 3200000.0, 3250000.0,\n", | |
" 3300000.0, 3350000.0, 3400000.0, 3450000.0, 3500000.0, 3550000.0,\n", | |
" 3600000.0, 3650000.0, 3700000.0, 3750000.0, 3800000.0, 3850000.0,\n", | |
" 3900000.0, 3950000.0, 4000000.0, 4050000.0],\n", | |
" dtype='float32', name='dist2center'))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-75af345a-f207-4d5a-8d25-d8c781fb2e42' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-75af345a-f207-4d5a-8d25-d8c781fb2e42' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>" | |
], | |
"text/plain": [ | |
"<xarray.Dataset> Size: 35MB\n", | |
"Dimensions: (polygon: 150, season: 4, time: 180,\n", | |
" dist2center: 82)\n", | |
"Coordinates:\n", | |
" * polygon (polygon) int32 600B 0 1 2 3 ... 146 147 148 149\n", | |
" region <U20 80B 'North_Atlantic_basin'\n", | |
" * season (season) <U8 128B 'Januaray' ... 'October'\n", | |
" * time (time) int32 720B 0 1 2 3 4 ... 176 177 178 179\n", | |
" * dist2center (dist2center) float32 328B 0.0 5e+04 ... 4.05e+06\n", | |
"Data variables:\n", | |
" FG_CO2_percent_cumulative (polygon, season, time, dist2center) float32 35MB ..." | |
] | |
}, | |
"execution_count": 4, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"atlantic" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 5, | |
"id": "e149f3c3-b1c2-4fd0-8547-c1a818a8d3d0", | |
"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[data-theme=dark],\n", | |
"body.vscode-dark {\n", | |
" --xr-font-color0: rgba(255, 255, 255, 1);\n", | |
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n", | |
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n", | |
" --xr-border-color: #1F1F1F;\n", | |
" --xr-disabled-color: #515151;\n", | |
" --xr-background-color: #111111;\n", | |
" --xr-background-color-row-even: #111111;\n", | |
" --xr-background-color-row-odd: #313131;\n", | |
"}\n", | |
"\n", | |
".xr-wrap {\n", | |
" display: block !important;\n", | |
" min-width: 300px;\n", | |
" max-width: 700px;\n", | |
"}\n", | |
"\n", | |
".xr-text-repr-fallback {\n", | |
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-header {\n", | |
" padding-top: 6px;\n", | |
" padding-bottom: 6px;\n", | |
" margin-bottom: 4px;\n", | |
" border-bottom: solid 1px var(--xr-border-color);\n", | |
"}\n", | |
"\n", | |
".xr-header > div,\n", | |
".xr-header > ul {\n", | |
" display: inline;\n", | |
" margin-top: 0;\n", | |
" margin-bottom: 0;\n", | |
"}\n", | |
"\n", | |
".xr-obj-type,\n", | |
".xr-array-name {\n", | |
" margin-left: 2px;\n", | |
" margin-right: 10px;\n", | |
"}\n", | |
"\n", | |
".xr-obj-type {\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-sections {\n", | |
" padding-left: 0 !important;\n", | |
" display: grid;\n", | |
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n", | |
"}\n", | |
"\n", | |
".xr-section-item {\n", | |
" display: contents;\n", | |
"}\n", | |
"\n", | |
".xr-section-item input {\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-section-item input + label {\n", | |
" color: var(--xr-disabled-color);\n", | |
"}\n", | |
"\n", | |
".xr-section-item input:enabled + label {\n", | |
" cursor: pointer;\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-section-item input:enabled + label:hover {\n", | |
" color: var(--xr-font-color0);\n", | |
"}\n", | |
"\n", | |
".xr-section-summary {\n", | |
" grid-column: 1;\n", | |
" color: var(--xr-font-color2);\n", | |
" font-weight: 500;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary > span {\n", | |
" display: inline-block;\n", | |
" padding-left: 0.5em;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:disabled + label {\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in + label:before {\n", | |
" display: inline-block;\n", | |
" content: '►';\n", | |
" font-size: 11px;\n", | |
" width: 15px;\n", | |
" text-align: center;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:disabled + label:before {\n", | |
" color: var(--xr-disabled-color);\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:checked + label:before {\n", | |
" content: '▼';\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:checked + label > span {\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary,\n", | |
".xr-section-inline-details {\n", | |
" padding-top: 4px;\n", | |
" padding-bottom: 4px;\n", | |
"}\n", | |
"\n", | |
".xr-section-inline-details {\n", | |
" grid-column: 2 / -1;\n", | |
"}\n", | |
"\n", | |
".xr-section-details {\n", | |
" display: none;\n", | |
" grid-column: 1 / -1;\n", | |
" margin-bottom: 5px;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:checked ~ .xr-section-details {\n", | |
" display: contents;\n", | |
"}\n", | |
"\n", | |
".xr-array-wrap {\n", | |
" grid-column: 1 / -1;\n", | |
" display: grid;\n", | |
" grid-template-columns: 20px auto;\n", | |
"}\n", | |
"\n", | |
".xr-array-wrap > label {\n", | |
" grid-column: 1;\n", | |
" vertical-align: top;\n", | |
"}\n", | |
"\n", | |
".xr-preview {\n", | |
" color: var(--xr-font-color3);\n", | |
"}\n", | |
"\n", | |
".xr-array-preview,\n", | |
".xr-array-data {\n", | |
" padding: 0 5px !important;\n", | |
" grid-column: 2;\n", | |
"}\n", | |
"\n", | |
".xr-array-data,\n", | |
".xr-array-in:checked ~ .xr-array-preview {\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-array-in:checked ~ .xr-array-data,\n", | |
".xr-array-preview {\n", | |
" display: inline-block;\n", | |
"}\n", | |
"\n", | |
".xr-dim-list {\n", | |
" display: inline-block !important;\n", | |
" list-style: none;\n", | |
" padding: 0 !important;\n", | |
" margin: 0;\n", | |
"}\n", | |
"\n", | |
".xr-dim-list li {\n", | |
" display: inline-block;\n", | |
" padding: 0;\n", | |
" margin: 0;\n", | |
"}\n", | |
"\n", | |
".xr-dim-list:before {\n", | |
" content: '(';\n", | |
"}\n", | |
"\n", | |
".xr-dim-list:after {\n", | |
" content: ')';\n", | |
"}\n", | |
"\n", | |
".xr-dim-list li:not(:last-child):after {\n", | |
" content: ',';\n", | |
" padding-right: 5px;\n", | |
"}\n", | |
"\n", | |
".xr-has-index {\n", | |
" font-weight: bold;\n", | |
"}\n", | |
"\n", | |
".xr-var-list,\n", | |
".xr-var-item {\n", | |
" display: contents;\n", | |
"}\n", | |
"\n", | |
".xr-var-item > div,\n", | |
".xr-var-item label,\n", | |
".xr-var-item > .xr-var-name span {\n", | |
" background-color: var(--xr-background-color-row-even);\n", | |
" margin-bottom: 0;\n", | |
"}\n", | |
"\n", | |
".xr-var-item > .xr-var-name:hover span {\n", | |
" padding-right: 5px;\n", | |
"}\n", | |
"\n", | |
".xr-var-list > li:nth-child(odd) > div,\n", | |
".xr-var-list > li:nth-child(odd) > label,\n", | |
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n", | |
" background-color: var(--xr-background-color-row-odd);\n", | |
"}\n", | |
"\n", | |
".xr-var-name {\n", | |
" grid-column: 1;\n", | |
"}\n", | |
"\n", | |
".xr-var-dims {\n", | |
" grid-column: 2;\n", | |
"}\n", | |
"\n", | |
".xr-var-dtype {\n", | |
" grid-column: 3;\n", | |
" text-align: right;\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-var-preview {\n", | |
" grid-column: 4;\n", | |
"}\n", | |
"\n", | |
".xr-index-preview {\n", | |
" grid-column: 2 / 5;\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-var-name,\n", | |
".xr-var-dims,\n", | |
".xr-var-dtype,\n", | |
".xr-preview,\n", | |
".xr-attrs dt {\n", | |
" white-space: nowrap;\n", | |
" overflow: hidden;\n", | |
" text-overflow: ellipsis;\n", | |
" padding-right: 10px;\n", | |
"}\n", | |
"\n", | |
".xr-var-name:hover,\n", | |
".xr-var-dims:hover,\n", | |
".xr-var-dtype:hover,\n", | |
".xr-attrs dt:hover {\n", | |
" overflow: visible;\n", | |
" width: auto;\n", | |
" z-index: 1;\n", | |
"}\n", | |
"\n", | |
".xr-var-attrs,\n", | |
".xr-var-data,\n", | |
".xr-index-data {\n", | |
" display: none;\n", | |
" background-color: var(--xr-background-color) !important;\n", | |
" padding-bottom: 5px !important;\n", | |
"}\n", | |
"\n", | |
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n", | |
".xr-var-data-in:checked ~ .xr-var-data,\n", | |
".xr-index-data-in:checked ~ .xr-index-data {\n", | |
" display: block;\n", | |
"}\n", | |
"\n", | |
".xr-var-data > table {\n", | |
" float: right;\n", | |
"}\n", | |
"\n", | |
".xr-var-name span,\n", | |
".xr-var-data,\n", | |
".xr-index-name div,\n", | |
".xr-index-data,\n", | |
".xr-attrs {\n", | |
" padding-left: 25px !important;\n", | |
"}\n", | |
"\n", | |
".xr-attrs,\n", | |
".xr-var-attrs,\n", | |
".xr-var-data,\n", | |
".xr-index-data {\n", | |
" grid-column: 1 / -1;\n", | |
"}\n", | |
"\n", | |
"dl.xr-attrs {\n", | |
" padding: 0;\n", | |
" margin: 0;\n", | |
" display: grid;\n", | |
" grid-template-columns: 125px auto;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dt,\n", | |
".xr-attrs dd {\n", | |
" padding: 0;\n", | |
" margin: 0;\n", | |
" float: left;\n", | |
" padding-right: 10px;\n", | |
" width: auto;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dt {\n", | |
" font-weight: normal;\n", | |
" grid-column: 1;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dt:hover span {\n", | |
" display: inline-block;\n", | |
" background: var(--xr-background-color);\n", | |
" padding-right: 10px;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dd {\n", | |
" grid-column: 2;\n", | |
" white-space: pre-wrap;\n", | |
" word-break: break-all;\n", | |
"}\n", | |
"\n", | |
".xr-icon-database,\n", | |
".xr-icon-file-text2,\n", | |
".xr-no-icon {\n", | |
" display: inline-block;\n", | |
" vertical-align: middle;\n", | |
" width: 1em;\n", | |
" height: 1.5em !important;\n", | |
" stroke-width: 0;\n", | |
" stroke: currentColor;\n", | |
" fill: currentColor;\n", | |
"}\n", | |
"</style><pre class='xr-text-repr-fallback'><xarray.Dataset> Size: 163MB\n", | |
"Dimensions: (polygon: 690, season: 4, time: 180,\n", | |
" dist2center: 82)\n", | |
"Coordinates:\n", | |
" * polygon (polygon) int32 3kB 0 1 2 3 4 ... 686 687 688 689\n", | |
" * season (season) <U8 128B 'Januaray' ... 'October'\n", | |
" * time (time) int32 720B 0 1 2 3 4 ... 176 177 178 179\n", | |
" * dist2center (dist2center) float32 328B 0.0 5e+04 ... 4.05e+06\n", | |
"Data variables:\n", | |
" FG_CO2_percent_cumulative (polygon, season, time, dist2center) float32 163MB ...</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-4a43d2fa-c3c3-4fa0-8288-58a5ce91cad8' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-4a43d2fa-c3c3-4fa0-8288-58a5ce91cad8' 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'>polygon</span>: 690</li><li><span class='xr-has-index'>season</span>: 4</li><li><span class='xr-has-index'>time</span>: 180</li><li><span class='xr-has-index'>dist2center</span>: 82</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-f33b6d2a-3184-45c1-9356-d1282f594a43' class='xr-section-summary-in' type='checkbox' checked><label for='section-f33b6d2a-3184-45c1-9356-d1282f594a43' class='xr-section-summary' >Coordinates: <span>(4)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>polygon</span></div><div class='xr-var-dims'>(polygon)</div><div class='xr-var-dtype'>int32</div><div class='xr-var-preview xr-preview'>0 1 2 3 4 5 ... 685 686 687 688 689</div><input id='attrs-199f6087-973d-4ed7-96f7-d08a4a56811e' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-199f6087-973d-4ed7-96f7-d08a4a56811e' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-6f725649-db81-45af-ab2f-38a1bc197f10' class='xr-var-data-in' type='checkbox'><label for='data-6f725649-db81-45af-ab2f-38a1bc197f10' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([ 0, 1, 2, ..., 687, 688, 689], dtype=int32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>season</span></div><div class='xr-var-dims'>(season)</div><div class='xr-var-dtype'><U8</div><div class='xr-var-preview xr-preview'>'Januaray' 'April' 'July' 'October'</div><input id='attrs-659d36cf-75f8-44aa-a78e-88a7303dc443' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-659d36cf-75f8-44aa-a78e-88a7303dc443' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-8582188b-9f67-49c8-9014-13c940ebaecc' class='xr-var-data-in' type='checkbox'><label for='data-8582188b-9f67-49c8-9014-13c940ebaecc' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(['Januaray', 'April', 'July', 'October'], dtype='<U8')</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'>int32</div><div class='xr-var-preview xr-preview'>0 1 2 3 4 5 ... 175 176 177 178 179</div><input id='attrs-e6508137-0ead-426f-8500-aaef1f85dbc7' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-e6508137-0ead-426f-8500-aaef1f85dbc7' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-53621483-e5ba-42df-984c-293702102e6d' class='xr-var-data-in' type='checkbox'><label for='data-53621483-e5ba-42df-984c-293702102e6d' 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>unit :</span></dt><dd>month</dd></dl></div><div class='xr-var-data'><pre>array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,\n", | |
" 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,\n", | |
" 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,\n", | |
" 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,\n", | |
" 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,\n", | |
" 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83,\n", | |
" 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97,\n", | |
" 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111,\n", | |
" 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125,\n", | |
" 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139,\n", | |
" 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153,\n", | |
" 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167,\n", | |
" 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179], dtype=int32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>dist2center</span></div><div class='xr-var-dims'>(dist2center)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>0.0 5e+04 1e+05 ... 4e+06 4.05e+06</div><input id='attrs-b9e02ea3-6ce2-4bd3-ab35-a493d0d2da90' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-b9e02ea3-6ce2-4bd3-ab35-a493d0d2da90' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-798963ac-90b2-44f0-a166-ebc0f63096d0' class='xr-var-data-in' type='checkbox'><label for='data-798963ac-90b2-44f0-a166-ebc0f63096d0' 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>unit :</span></dt><dd>m</dd></dl></div><div class='xr-var-data'><pre>array([ 0., 50000., 100000., 150000., 200000., 250000., 300000.,\n", | |
" 350000., 400000., 450000., 500000., 550000., 600000., 650000.,\n", | |
" 700000., 750000., 800000., 850000., 900000., 950000., 1000000.,\n", | |
" 1050000., 1100000., 1150000., 1200000., 1250000., 1300000., 1350000.,\n", | |
" 1400000., 1450000., 1500000., 1550000., 1600000., 1650000., 1700000.,\n", | |
" 1750000., 1800000., 1850000., 1900000., 1950000., 2000000., 2050000.,\n", | |
" 2100000., 2150000., 2200000., 2250000., 2300000., 2350000., 2400000.,\n", | |
" 2450000., 2500000., 2550000., 2600000., 2650000., 2700000., 2750000.,\n", | |
" 2800000., 2850000., 2900000., 2950000., 3000000., 3050000., 3100000.,\n", | |
" 3150000., 3200000., 3250000., 3300000., 3350000., 3400000., 3450000.,\n", | |
" 3500000., 3550000., 3600000., 3650000., 3700000., 3750000., 3800000.,\n", | |
" 3850000., 3900000., 3950000., 4000000., 4050000.], dtype=float32)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-68b51678-cae0-4e6e-9349-30af0d7b494a' class='xr-section-summary-in' type='checkbox' checked><label for='section-68b51678-cae0-4e6e-9349-30af0d7b494a' class='xr-section-summary' >Data variables: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>FG_CO2_percent_cumulative</span></div><div class='xr-var-dims'>(polygon, season, time, dist2center)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>0.4762 1.675 3.782 ... 96.74 100.0</div><input id='attrs-7094d7ca-e805-4511-ad08-2eb4b77ad8e1' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-7094d7ca-e805-4511-ad08-2eb4b77ad8e1' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-aa743565-246e-49d6-b411-7e009ff501ff' class='xr-var-data-in' type='checkbox'><label for='data-aa743565-246e-49d6-b411-7e009ff501ff' 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>detail :</span></dt><dd>Cumulative percent of CO2 uptake, within a time step and distance to center</dd></dl></div><div class='xr-var-data'><pre>array([[[[4.76224124e-01, 1.67489338e+00, 3.78242731e+00, ...,\n", | |
" 1.10874910e+01, 1.10874920e+01, 1.10875359e+01],\n", | |
" [7.94292688e-01, 2.77199197e+00, 6.26467514e+00, ...,\n", | |
" 2.00699711e+01, 2.00699711e+01, 2.00701733e+01],\n", | |
" [9.15110826e-01, 3.19406104e+00, 7.25278616e+00, ...,\n", | |
" 2.55889168e+01, 2.55889168e+01, 2.55893059e+01],\n", | |
" ...,\n", | |
" [1.22276282e+00, 4.30911112e+00, 9.84353733e+00, ...,\n", | |
" 9.94930420e+01, 9.94991837e+01, 9.95693970e+01],\n", | |
" [1.22322547e+00, 4.31078339e+00, 9.84738636e+00, ...,\n", | |
" 9.96615982e+01, 9.96678085e+01, 9.97383652e+01],\n", | |
" [1.22383785e+00, 4.31300592e+00, 9.85255909e+00, ...,\n", | |
" 9.99228058e+01, 9.99290848e+01, 1.00000000e+02]],\n", | |
"\n", | |
" [[5.57920933e-01, 1.97799063e+00, 4.33573818e+00, ...,\n", | |
" 9.79599953e+00, 9.79600048e+00, 9.79631329e+00],\n", | |
" [9.64941025e-01, 3.45760584e+00, 7.67450428e+00, ...,\n", | |
" 2.04989643e+01, 2.04989662e+01, 2.05004063e+01],\n", | |
" [1.02435505e+00, 3.68249917e+00, 8.21796513e+00, ...,\n", | |
" 2.39291096e+01, 2.39291134e+01, 2.39316750e+01],\n", | |
"...\n", | |
" 9.62315521e+01, 9.63596191e+01, 9.99606705e+01],\n", | |
" [4.05743718e-01, 1.34588194e+00, 2.80461621e+00, ...,\n", | |
" 9.62443161e+01, 9.63725815e+01, 9.99795151e+01],\n", | |
" [4.05747682e-01, 1.34590006e+00, 2.80466151e+00, ...,\n", | |
" 9.62579193e+01, 9.63863983e+01, 1.00000000e+02]],\n", | |
"\n", | |
" [[1.58489607e-02, 5.34384735e-02, 1.14188261e-01, ...,\n", | |
" 3.98777056e+00, 3.98777080e+00, 3.98778963e+00],\n", | |
" [5.38193583e-02, 1.80051491e-01, 3.75453979e-01, ...,\n", | |
" 9.95819092e+00, 9.95819092e+00, 9.95830917e+00],\n", | |
" [1.25927001e-01, 4.16150957e-01, 8.55627894e-01, ...,\n", | |
" 1.60407524e+01, 1.60407524e+01, 1.60410385e+01],\n", | |
" ...,\n", | |
" [6.03799403e-01, 1.98709893e+00, 4.09231710e+00, ...,\n", | |
" 9.65985413e+01, 9.67116165e+01, 9.99520874e+01],\n", | |
" [6.03801012e-01, 1.98710477e+00, 4.09233093e+00, ...,\n", | |
" 9.66153259e+01, 9.67286453e+01, 9.99786453e+01],\n", | |
" [6.03801310e-01, 1.98710573e+00, 4.09233332e+00, ...,\n", | |
" 9.66283646e+01, 9.67418976e+01, 1.00000000e+02]]]],\n", | |
" dtype=float32)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-9eb92581-ddc3-47fb-adbd-ab14c75d5307' class='xr-section-summary-in' type='checkbox' ><label for='section-9eb92581-ddc3-47fb-adbd-ab14c75d5307' class='xr-section-summary' >Indexes: <span>(4)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>polygon</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-94de4741-83b5-451b-9310-fc9b81654d47' class='xr-index-data-in' type='checkbox'/><label for='index-94de4741-83b5-451b-9310-fc9b81654d47' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,\n", | |
" ...\n", | |
" 680, 681, 682, 683, 684, 685, 686, 687, 688, 689],\n", | |
" dtype='int32', name='polygon', length=690))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>season</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-ee62510d-4346-418a-8031-f18043e74ec2' class='xr-index-data-in' type='checkbox'/><label for='index-ee62510d-4346-418a-8031-f18043e74ec2' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index(['Januaray', 'April', 'July', 'October'], dtype='object', name='season'))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>time</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-ee602208-1031-44f0-9668-39f498ebc382' class='xr-index-data-in' type='checkbox'/><label for='index-ee602208-1031-44f0-9668-39f498ebc382' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,\n", | |
" ...\n", | |
" 170, 171, 172, 173, 174, 175, 176, 177, 178, 179],\n", | |
" dtype='int32', name='time', length=180))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>dist2center</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-03c0981f-d143-4259-bf25-6f4644108ac4' class='xr-index-data-in' type='checkbox'/><label for='index-03c0981f-d143-4259-bf25-6f4644108ac4' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([ 0.0, 50000.0, 100000.0, 150000.0, 200000.0, 250000.0,\n", | |
" 300000.0, 350000.0, 400000.0, 450000.0, 500000.0, 550000.0,\n", | |
" 600000.0, 650000.0, 700000.0, 750000.0, 800000.0, 850000.0,\n", | |
" 900000.0, 950000.0, 1000000.0, 1050000.0, 1100000.0, 1150000.0,\n", | |
" 1200000.0, 1250000.0, 1300000.0, 1350000.0, 1400000.0, 1450000.0,\n", | |
" 1500000.0, 1550000.0, 1600000.0, 1650000.0, 1700000.0, 1750000.0,\n", | |
" 1800000.0, 1850000.0, 1900000.0, 1950000.0, 2000000.0, 2050000.0,\n", | |
" 2100000.0, 2150000.0, 2200000.0, 2250000.0, 2300000.0, 2350000.0,\n", | |
" 2400000.0, 2450000.0, 2500000.0, 2550000.0, 2600000.0, 2650000.0,\n", | |
" 2700000.0, 2750000.0, 2800000.0, 2850000.0, 2900000.0, 2950000.0,\n", | |
" 3000000.0, 3050000.0, 3100000.0, 3150000.0, 3200000.0, 3250000.0,\n", | |
" 3300000.0, 3350000.0, 3400000.0, 3450000.0, 3500000.0, 3550000.0,\n", | |
" 3600000.0, 3650000.0, 3700000.0, 3750000.0, 3800000.0, 3850000.0,\n", | |
" 3900000.0, 3950000.0, 4000000.0, 4050000.0],\n", | |
" dtype='float32', name='dist2center'))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-330b0766-f89d-4474-8db6-d164af678422' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-330b0766-f89d-4474-8db6-d164af678422' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>" | |
], | |
"text/plain": [ | |
"<xarray.Dataset> Size: 163MB\n", | |
"Dimensions: (polygon: 690, season: 4, time: 180,\n", | |
" dist2center: 82)\n", | |
"Coordinates:\n", | |
" * polygon (polygon) int32 3kB 0 1 2 3 4 ... 686 687 688 689\n", | |
" * season (season) <U8 128B 'Januaray' ... 'October'\n", | |
" * time (time) int32 720B 0 1 2 3 4 ... 176 177 178 179\n", | |
" * dist2center (dist2center) float32 328B 0.0 5e+04 ... 4.05e+06\n", | |
"Data variables:\n", | |
" FG_CO2_percent_cumulative (polygon, season, time, dist2center) float32 163MB ..." | |
] | |
}, | |
"execution_count": 5, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"dset = xr.concat([atlantic, pacific, south_atlantic, southern], dim='polygon').drop_vars('region')\n", | |
"dset['polygon'] = np.arange(0, 690, dtype=np.int32)\n", | |
"dset" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 6, | |
"id": "86f2ed58-01c4-4ddc-9863-7594d6bf6aa1", | |
"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[data-theme=dark],\n", | |
"body.vscode-dark {\n", | |
" --xr-font-color0: rgba(255, 255, 255, 1);\n", | |
" --xr-font-color2: rgba(255, 255, 255, 0.54);\n", | |
" --xr-font-color3: rgba(255, 255, 255, 0.38);\n", | |
" --xr-border-color: #1F1F1F;\n", | |
" --xr-disabled-color: #515151;\n", | |
" --xr-background-color: #111111;\n", | |
" --xr-background-color-row-even: #111111;\n", | |
" --xr-background-color-row-odd: #313131;\n", | |
"}\n", | |
"\n", | |
".xr-wrap {\n", | |
" display: block !important;\n", | |
" min-width: 300px;\n", | |
" max-width: 700px;\n", | |
"}\n", | |
"\n", | |
".xr-text-repr-fallback {\n", | |
" /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-header {\n", | |
" padding-top: 6px;\n", | |
" padding-bottom: 6px;\n", | |
" margin-bottom: 4px;\n", | |
" border-bottom: solid 1px var(--xr-border-color);\n", | |
"}\n", | |
"\n", | |
".xr-header > div,\n", | |
".xr-header > ul {\n", | |
" display: inline;\n", | |
" margin-top: 0;\n", | |
" margin-bottom: 0;\n", | |
"}\n", | |
"\n", | |
".xr-obj-type,\n", | |
".xr-array-name {\n", | |
" margin-left: 2px;\n", | |
" margin-right: 10px;\n", | |
"}\n", | |
"\n", | |
".xr-obj-type {\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-sections {\n", | |
" padding-left: 0 !important;\n", | |
" display: grid;\n", | |
" grid-template-columns: 150px auto auto 1fr 20px 20px;\n", | |
"}\n", | |
"\n", | |
".xr-section-item {\n", | |
" display: contents;\n", | |
"}\n", | |
"\n", | |
".xr-section-item input {\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-section-item input + label {\n", | |
" color: var(--xr-disabled-color);\n", | |
"}\n", | |
"\n", | |
".xr-section-item input:enabled + label {\n", | |
" cursor: pointer;\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-section-item input:enabled + label:hover {\n", | |
" color: var(--xr-font-color0);\n", | |
"}\n", | |
"\n", | |
".xr-section-summary {\n", | |
" grid-column: 1;\n", | |
" color: var(--xr-font-color2);\n", | |
" font-weight: 500;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary > span {\n", | |
" display: inline-block;\n", | |
" padding-left: 0.5em;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:disabled + label {\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in + label:before {\n", | |
" display: inline-block;\n", | |
" content: '►';\n", | |
" font-size: 11px;\n", | |
" width: 15px;\n", | |
" text-align: center;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:disabled + label:before {\n", | |
" color: var(--xr-disabled-color);\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:checked + label:before {\n", | |
" content: '▼';\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:checked + label > span {\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary,\n", | |
".xr-section-inline-details {\n", | |
" padding-top: 4px;\n", | |
" padding-bottom: 4px;\n", | |
"}\n", | |
"\n", | |
".xr-section-inline-details {\n", | |
" grid-column: 2 / -1;\n", | |
"}\n", | |
"\n", | |
".xr-section-details {\n", | |
" display: none;\n", | |
" grid-column: 1 / -1;\n", | |
" margin-bottom: 5px;\n", | |
"}\n", | |
"\n", | |
".xr-section-summary-in:checked ~ .xr-section-details {\n", | |
" display: contents;\n", | |
"}\n", | |
"\n", | |
".xr-array-wrap {\n", | |
" grid-column: 1 / -1;\n", | |
" display: grid;\n", | |
" grid-template-columns: 20px auto;\n", | |
"}\n", | |
"\n", | |
".xr-array-wrap > label {\n", | |
" grid-column: 1;\n", | |
" vertical-align: top;\n", | |
"}\n", | |
"\n", | |
".xr-preview {\n", | |
" color: var(--xr-font-color3);\n", | |
"}\n", | |
"\n", | |
".xr-array-preview,\n", | |
".xr-array-data {\n", | |
" padding: 0 5px !important;\n", | |
" grid-column: 2;\n", | |
"}\n", | |
"\n", | |
".xr-array-data,\n", | |
".xr-array-in:checked ~ .xr-array-preview {\n", | |
" display: none;\n", | |
"}\n", | |
"\n", | |
".xr-array-in:checked ~ .xr-array-data,\n", | |
".xr-array-preview {\n", | |
" display: inline-block;\n", | |
"}\n", | |
"\n", | |
".xr-dim-list {\n", | |
" display: inline-block !important;\n", | |
" list-style: none;\n", | |
" padding: 0 !important;\n", | |
" margin: 0;\n", | |
"}\n", | |
"\n", | |
".xr-dim-list li {\n", | |
" display: inline-block;\n", | |
" padding: 0;\n", | |
" margin: 0;\n", | |
"}\n", | |
"\n", | |
".xr-dim-list:before {\n", | |
" content: '(';\n", | |
"}\n", | |
"\n", | |
".xr-dim-list:after {\n", | |
" content: ')';\n", | |
"}\n", | |
"\n", | |
".xr-dim-list li:not(:last-child):after {\n", | |
" content: ',';\n", | |
" padding-right: 5px;\n", | |
"}\n", | |
"\n", | |
".xr-has-index {\n", | |
" font-weight: bold;\n", | |
"}\n", | |
"\n", | |
".xr-var-list,\n", | |
".xr-var-item {\n", | |
" display: contents;\n", | |
"}\n", | |
"\n", | |
".xr-var-item > div,\n", | |
".xr-var-item label,\n", | |
".xr-var-item > .xr-var-name span {\n", | |
" background-color: var(--xr-background-color-row-even);\n", | |
" margin-bottom: 0;\n", | |
"}\n", | |
"\n", | |
".xr-var-item > .xr-var-name:hover span {\n", | |
" padding-right: 5px;\n", | |
"}\n", | |
"\n", | |
".xr-var-list > li:nth-child(odd) > div,\n", | |
".xr-var-list > li:nth-child(odd) > label,\n", | |
".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n", | |
" background-color: var(--xr-background-color-row-odd);\n", | |
"}\n", | |
"\n", | |
".xr-var-name {\n", | |
" grid-column: 1;\n", | |
"}\n", | |
"\n", | |
".xr-var-dims {\n", | |
" grid-column: 2;\n", | |
"}\n", | |
"\n", | |
".xr-var-dtype {\n", | |
" grid-column: 3;\n", | |
" text-align: right;\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-var-preview {\n", | |
" grid-column: 4;\n", | |
"}\n", | |
"\n", | |
".xr-index-preview {\n", | |
" grid-column: 2 / 5;\n", | |
" color: var(--xr-font-color2);\n", | |
"}\n", | |
"\n", | |
".xr-var-name,\n", | |
".xr-var-dims,\n", | |
".xr-var-dtype,\n", | |
".xr-preview,\n", | |
".xr-attrs dt {\n", | |
" white-space: nowrap;\n", | |
" overflow: hidden;\n", | |
" text-overflow: ellipsis;\n", | |
" padding-right: 10px;\n", | |
"}\n", | |
"\n", | |
".xr-var-name:hover,\n", | |
".xr-var-dims:hover,\n", | |
".xr-var-dtype:hover,\n", | |
".xr-attrs dt:hover {\n", | |
" overflow: visible;\n", | |
" width: auto;\n", | |
" z-index: 1;\n", | |
"}\n", | |
"\n", | |
".xr-var-attrs,\n", | |
".xr-var-data,\n", | |
".xr-index-data {\n", | |
" display: none;\n", | |
" background-color: var(--xr-background-color) !important;\n", | |
" padding-bottom: 5px !important;\n", | |
"}\n", | |
"\n", | |
".xr-var-attrs-in:checked ~ .xr-var-attrs,\n", | |
".xr-var-data-in:checked ~ .xr-var-data,\n", | |
".xr-index-data-in:checked ~ .xr-index-data {\n", | |
" display: block;\n", | |
"}\n", | |
"\n", | |
".xr-var-data > table {\n", | |
" float: right;\n", | |
"}\n", | |
"\n", | |
".xr-var-name span,\n", | |
".xr-var-data,\n", | |
".xr-index-name div,\n", | |
".xr-index-data,\n", | |
".xr-attrs {\n", | |
" padding-left: 25px !important;\n", | |
"}\n", | |
"\n", | |
".xr-attrs,\n", | |
".xr-var-attrs,\n", | |
".xr-var-data,\n", | |
".xr-index-data {\n", | |
" grid-column: 1 / -1;\n", | |
"}\n", | |
"\n", | |
"dl.xr-attrs {\n", | |
" padding: 0;\n", | |
" margin: 0;\n", | |
" display: grid;\n", | |
" grid-template-columns: 125px auto;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dt,\n", | |
".xr-attrs dd {\n", | |
" padding: 0;\n", | |
" margin: 0;\n", | |
" float: left;\n", | |
" padding-right: 10px;\n", | |
" width: auto;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dt {\n", | |
" font-weight: normal;\n", | |
" grid-column: 1;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dt:hover span {\n", | |
" display: inline-block;\n", | |
" background: var(--xr-background-color);\n", | |
" padding-right: 10px;\n", | |
"}\n", | |
"\n", | |
".xr-attrs dd {\n", | |
" grid-column: 2;\n", | |
" white-space: pre-wrap;\n", | |
" word-break: break-all;\n", | |
"}\n", | |
"\n", | |
".xr-icon-database,\n", | |
".xr-icon-file-text2,\n", | |
".xr-no-icon {\n", | |
" display: inline-block;\n", | |
" vertical-align: middle;\n", | |
" width: 1em;\n", | |
" height: 1.5em !important;\n", | |
" stroke-width: 0;\n", | |
" stroke: currentColor;\n", | |
" fill: currentColor;\n", | |
"}\n", | |
"</style><pre class='xr-text-repr-fallback'><xarray.Dataset> Size: 6MB\n", | |
"Dimensions: (polygon: 690, season: 4, time: 180,\n", | |
" dist2center: 3)\n", | |
"Coordinates:\n", | |
" * polygon (polygon) int32 3kB 0 1 2 3 4 ... 686 687 688 689\n", | |
" * season (season) <U8 128B 'Januaray' ... 'October'\n", | |
" * time (time) int32 720B 0 1 2 3 4 ... 176 177 178 179\n", | |
" * dist2center (dist2center) float32 12B 5e+05 1e+06 2e+06\n", | |
"Data variables:\n", | |
" FG_CO2_percent_cumulative (time, polygon, season, dist2center) float32 6MB dask.array<chunksize=(180, 690, 1, 3), meta=np.ndarray></pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-41e97a0d-3e0a-4d9d-9b78-e6541694bbeb' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-41e97a0d-3e0a-4d9d-9b78-e6541694bbeb' 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'>polygon</span>: 690</li><li><span class='xr-has-index'>season</span>: 4</li><li><span class='xr-has-index'>time</span>: 180</li><li><span class='xr-has-index'>dist2center</span>: 3</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-706592f5-bb65-42a4-ba30-439411840989' class='xr-section-summary-in' type='checkbox' checked><label for='section-706592f5-bb65-42a4-ba30-439411840989' class='xr-section-summary' >Coordinates: <span>(4)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>polygon</span></div><div class='xr-var-dims'>(polygon)</div><div class='xr-var-dtype'>int32</div><div class='xr-var-preview xr-preview'>0 1 2 3 4 5 ... 685 686 687 688 689</div><input id='attrs-ebca65ce-1ab5-4867-85b5-30fffcfb1ff5' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-ebca65ce-1ab5-4867-85b5-30fffcfb1ff5' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ee8c9f03-1166-4fe1-a1f3-fa323d355ff0' class='xr-var-data-in' type='checkbox'><label for='data-ee8c9f03-1166-4fe1-a1f3-fa323d355ff0' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([ 0, 1, 2, ..., 687, 688, 689], dtype=int32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>season</span></div><div class='xr-var-dims'>(season)</div><div class='xr-var-dtype'><U8</div><div class='xr-var-preview xr-preview'>'Januaray' 'April' 'July' 'October'</div><input id='attrs-e3ceb853-63f4-4b0d-8b40-1d8e43e883d2' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-e3ceb853-63f4-4b0d-8b40-1d8e43e883d2' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-a3e9a1d5-9b39-4e58-9ea3-5455d94fa348' class='xr-var-data-in' type='checkbox'><label for='data-a3e9a1d5-9b39-4e58-9ea3-5455d94fa348' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array(['Januaray', 'April', 'July', 'October'], dtype='<U8')</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'>int32</div><div class='xr-var-preview xr-preview'>0 1 2 3 4 5 ... 175 176 177 178 179</div><input id='attrs-b6841e77-5fb6-4964-a272-c311d10eb13b' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-b6841e77-5fb6-4964-a272-c311d10eb13b' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-373149ae-931a-4565-baab-ede1c106078f' class='xr-var-data-in' type='checkbox'><label for='data-373149ae-931a-4565-baab-ede1c106078f' 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>unit :</span></dt><dd>month</dd></dl></div><div class='xr-var-data'><pre>array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,\n", | |
" 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,\n", | |
" 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,\n", | |
" 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,\n", | |
" 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,\n", | |
" 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83,\n", | |
" 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97,\n", | |
" 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111,\n", | |
" 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125,\n", | |
" 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139,\n", | |
" 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153,\n", | |
" 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167,\n", | |
" 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179], dtype=int32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>dist2center</span></div><div class='xr-var-dims'>(dist2center)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>5e+05 1e+06 2e+06</div><input id='attrs-7777c2e3-1c6a-4bf4-81f7-b6f606c5d373' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-7777c2e3-1c6a-4bf4-81f7-b6f606c5d373' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-550f80d1-c5ec-41f0-9420-c6fdbe0224a9' class='xr-var-data-in' type='checkbox'><label for='data-550f80d1-c5ec-41f0-9420-c6fdbe0224a9' 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>unit :</span></dt><dd>m</dd></dl></div><div class='xr-var-data'><pre>array([ 500000., 1000000., 2000000.], dtype=float32)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-08b2ca53-cba8-492d-9840-9d8632e89edf' class='xr-section-summary-in' type='checkbox' checked><label for='section-08b2ca53-cba8-492d-9840-9d8632e89edf' class='xr-section-summary' >Data variables: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>FG_CO2_percent_cumulative</span></div><div class='xr-var-dims'>(time, polygon, season, dist2center)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>dask.array<chunksize=(180, 690, 1, 3), meta=np.ndarray></div><input id='attrs-0fc668d1-be78-4f87-9224-674df619a553' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-0fc668d1-be78-4f87-9224-674df619a553' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-708e33da-b229-479c-8dbf-43a89bacd037' class='xr-var-data-in' type='checkbox'><label for='data-708e33da-b229-479c-8dbf-43a89bacd037' 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>detail :</span></dt><dd>Cumulative percent of CO2 uptake, within a time step and distance to center</dd></dl></div><div class='xr-var-data'><table>\n", | |
" <tr>\n", | |
" <td>\n", | |
" <table style=\"border-collapse: collapse;\">\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> 5.69 MiB </td>\n", | |
" <td> 1.42 MiB </td>\n", | |
" </tr>\n", | |
" \n", | |
" <tr>\n", | |
" <th> Shape </th>\n", | |
" <td> (180, 690, 4, 3) </td>\n", | |
" <td> (180, 690, 1, 3) </td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th> Dask graph </th>\n", | |
" <td colspan=\"2\"> 4 chunks in 1 graph layer </td>\n", | |
" </tr>\n", | |
" <tr>\n", | |
" <th> Data type </th>\n", | |
" <td colspan=\"2\"> float32 numpy.ndarray </td>\n", | |
" </tr>\n", | |
" </tbody>\n", | |
" </table>\n", | |
" </td>\n", | |
" <td>\n", | |
" <svg width=\"372\" height=\"146\" style=\"stroke:rgb(0,0,0);stroke-width:1\" >\n", | |
"\n", | |
" <!-- Horizontal lines -->\n", | |
" <line x1=\"0\" y1=\"0\" x2=\"43\" y2=\"0\" style=\"stroke-width:2\" />\n", | |
" <line x1=\"0\" y1=\"25\" x2=\"43\" 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=\"43\" y1=\"0\" x2=\"43\" y2=\"25\" style=\"stroke-width:2\" />\n", | |
"\n", | |
" <!-- Colored Rectangle -->\n", | |
" <polygon points=\"0.0,0.0 43.0560195120558,0.0 43.0560195120558,25.412616514582485 0.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n", | |
"\n", | |
" <!-- Text -->\n", | |
" <text x=\"21.528010\" y=\"45.412617\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >180</text>\n", | |
" <text x=\"63.056020\" y=\"12.706308\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,63.056020,12.706308)\">1</text>\n", | |
"\n", | |
"\n", | |
" <!-- Horizontal lines -->\n", | |
" <line x1=\"113\" y1=\"0\" x2=\"183\" y2=\"70\" style=\"stroke-width:2\" />\n", | |
" <line x1=\"113\" y1=\"6\" x2=\"183\" y2=\"76\" />\n", | |
" <line x1=\"113\" y1=\"12\" x2=\"183\" y2=\"83\" />\n", | |
" <line x1=\"113\" y1=\"19\" x2=\"183\" y2=\"89\" />\n", | |
" <line x1=\"113\" y1=\"25\" x2=\"183\" y2=\"96\" style=\"stroke-width:2\" />\n", | |
"\n", | |
" <!-- Vertical lines -->\n", | |
" <line x1=\"113\" y1=\"0\" x2=\"113\" y2=\"25\" style=\"stroke-width:2\" />\n", | |
" <line x1=\"183\" y1=\"70\" x2=\"183\" y2=\"96\" style=\"stroke-width:2\" />\n", | |
"\n", | |
" <!-- Colored Rectangle -->\n", | |
" <polygon points=\"113.0,0.0 183.58823529411765,70.58823529411765 183.58823529411765,96.00085180870013 113.0,25.412616514582485\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n", | |
"\n", | |
" <!-- Horizontal lines -->\n", | |
" <line x1=\"113\" y1=\"0\" x2=\"138\" y2=\"0\" style=\"stroke-width:2\" />\n", | |
" <line x1=\"183\" y1=\"70\" x2=\"209\" y2=\"70\" style=\"stroke-width:2\" />\n", | |
"\n", | |
" <!-- Vertical lines -->\n", | |
" <line x1=\"113\" y1=\"0\" x2=\"183\" y2=\"70\" style=\"stroke-width:2\" />\n", | |
" <line x1=\"138\" y1=\"0\" x2=\"209\" y2=\"70\" style=\"stroke-width:2\" />\n", | |
"\n", | |
" <!-- Colored Rectangle -->\n", | |
" <polygon points=\"113.0,0.0 138.41261651458248,0.0 209.00085180870013,70.58823529411765 183.58823529411765,70.58823529411765\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n", | |
"\n", | |
" <!-- Horizontal lines -->\n", | |
" <line x1=\"183\" y1=\"70\" x2=\"209\" y2=\"70\" style=\"stroke-width:2\" />\n", | |
" <line x1=\"183\" y1=\"76\" x2=\"209\" y2=\"76\" />\n", | |
" <line x1=\"183\" y1=\"83\" x2=\"209\" y2=\"83\" />\n", | |
" <line x1=\"183\" y1=\"89\" x2=\"209\" y2=\"89\" />\n", | |
" <line x1=\"183\" y1=\"96\" x2=\"209\" y2=\"96\" style=\"stroke-width:2\" />\n", | |
"\n", | |
" <!-- Vertical lines -->\n", | |
" <line x1=\"183\" y1=\"70\" x2=\"183\" y2=\"96\" style=\"stroke-width:2\" />\n", | |
" <line x1=\"209\" y1=\"70\" x2=\"209\" y2=\"96\" style=\"stroke-width:2\" />\n", | |
"\n", | |
" <!-- Colored Rectangle -->\n", | |
" <polygon points=\"183.58823529411765,70.58823529411765 209.00085180870013,70.58823529411765 209.00085180870013,96.00085180870013 183.58823529411765,96.00085180870013\" style=\"fill:#ECB172A0;stroke-width:0\"/>\n", | |
"\n", | |
" <!-- Text -->\n", | |
" <text x=\"196.294544\" y=\"116.000852\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" >3</text>\n", | |
" <text x=\"229.000852\" y=\"83.294544\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(0,229.000852,83.294544)\">4</text>\n", | |
" <text x=\"138.294118\" y=\"80.706734\" font-size=\"1.0rem\" font-weight=\"100\" text-anchor=\"middle\" transform=\"rotate(45,138.294118,80.706734)\">690</text>\n", | |
"</svg>\n", | |
" </td>\n", | |
" </tr>\n", | |
"</table></div></li></ul></div></li><li class='xr-section-item'><input id='section-c88153a6-90af-4a7e-924a-c1c560ca46b8' class='xr-section-summary-in' type='checkbox' ><label for='section-c88153a6-90af-4a7e-924a-c1c560ca46b8' class='xr-section-summary' >Indexes: <span>(4)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>polygon</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-b0db381b-ed63-4471-ab7d-f7156f163fcd' class='xr-index-data-in' type='checkbox'/><label for='index-b0db381b-ed63-4471-ab7d-f7156f163fcd' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,\n", | |
" ...\n", | |
" 680, 681, 682, 683, 684, 685, 686, 687, 688, 689],\n", | |
" dtype='int32', name='polygon', length=690))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>season</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-dd43a3c4-05e5-4cb3-8b62-a710c027f6a1' class='xr-index-data-in' type='checkbox'/><label for='index-dd43a3c4-05e5-4cb3-8b62-a710c027f6a1' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index(['Januaray', 'April', 'July', 'October'], dtype='object', name='season'))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>time</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-7d0a1cf2-9a7d-4725-9d92-a9778d9e87d1' class='xr-index-data-in' type='checkbox'/><label for='index-7d0a1cf2-9a7d-4725-9d92-a9778d9e87d1' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,\n", | |
" ...\n", | |
" 170, 171, 172, 173, 174, 175, 176, 177, 178, 179],\n", | |
" dtype='int32', name='time', length=180))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>dist2center</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-42fa8360-e719-42b9-abb7-6ece851b966d' class='xr-index-data-in' type='checkbox'/><label for='index-42fa8360-e719-42b9-abb7-6ece851b966d' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([500000.0, 1000000.0, 2000000.0], dtype='float32', name='dist2center'))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-ac2db062-e674-4ebc-9278-460f40c13ee6' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-ac2db062-e674-4ebc-9278-460f40c13ee6' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>" | |
], | |
"text/plain": [ | |
"<xarray.Dataset> Size: 6MB\n", | |
"Dimensions: (polygon: 690, season: 4, time: 180,\n", | |
" dist2center: 3)\n", | |
"Coordinates:\n", | |
" * polygon (polygon) int32 3kB 0 1 2 3 4 ... 686 687 688 689\n", | |
" * season (season) <U8 128B 'Januaray' ... 'October'\n", | |
" * time (time) int32 720B 0 1 2 3 4 ... 176 177 178 179\n", | |
" * dist2center (dist2center) float32 12B 5e+05 1e+06 2e+06\n", | |
"Data variables:\n", | |
" FG_CO2_percent_cumulative (time, polygon, season, dist2center) float32 6MB dask.array<chunksize=(180, 690, 1, 3), meta=np.ndarray>" | |
] | |
}, | |
"execution_count": 6, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"#{500, 1000, 2000} km\n", | |
"values = np.array([500, 1000, 2000]) * 1_000 # conversion to meters\n", | |
"dset = dset.sel(dist2center=values, method='nearest')\n", | |
"\n", | |
"# time (180), polygon_id (690), season (1), dist2center (1)\n", | |
"dset = dset.transpose('time', 'polygon', 'season', 'dist2center').chunk({'time': -1, 'polygon': -1, 'season': 1, 'dist2center': -1})\n", | |
"dset" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 7, | |
"id": "aaf64c9a-a855-4f8a-99e7-12c83eaa2462", | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"path = 's3://carbonplan-share/oae-efficiency/cumulative_FG_CO2_percent.zarr'" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 8, | |
"id": "325b9f3b-67c3-41d3-a449-1f06ac45f965", | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"data": { | |
"text/plain": [ | |
"<xarray.backends.zarr.ZarrStore at 0x300102840>" | |
] | |
}, | |
"execution_count": 8, | |
"metadata": {}, | |
"output_type": "execute_result" | |
} | |
], | |
"source": [ | |
"dset.to_zarr(path, consolidated=True)" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python 3 (ipykernel)", | |
"language": "python", | |
"name": "python3" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython3", | |
"version": "3.10.13" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 5 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment