Skip to content

Commit

Permalink
docs:rerun doc notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Aug 4, 2024
1 parent 51f4266 commit 4424866
Show file tree
Hide file tree
Showing 13 changed files with 64 additions and 74 deletions.
2 changes: 1 addition & 1 deletion docs/how_to/colormaps.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@
"output_type": "stream",
"text": [
"grd2cpt [ERROR]: Making a continuous cpt from a discrete cpt may give unexpected results!\n",
"/home/mdtanker/polartoolkit/src/polartoolkit/maps.py:1185: UserWarning: getting max/min values from grid, if cpt_lims were used to create the colorscale, histogram will not properly align with colorbar!\n",
"/home/mdtanker/polartoolkit/src/polartoolkit/maps.py:1197: UserWarning: getting max/min values from grid, if cpt_lims were used to create the colorscale, histogram will not properly align with colorbar!\n",
" add_colorbar(\n"
]
},
Expand Down
41 changes: 19 additions & 22 deletions docs/how_to/defining_regions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -37,7 +37,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 2,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -76,7 +76,7 @@
" 'kangerlussuaq_glacier': (380000.0, 550000.0, -2340000.0, -2140000.0)})"
]
},
"execution_count": 3,
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -111,7 +111,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 3,
"metadata": {
"tags": [
"nbsphinx-thumbnail"
Expand Down Expand Up @@ -198,7 +198,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -391,7 +391,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 6,
"metadata": {
"execution": {
"iopub.execute_input": "2024-02-09T04:52:27.899835Z",
Expand All @@ -404,7 +404,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "bd039c74c3d3428a9b046cdfbab53e51",
"model_id": "577f652696034038aea1046152a512ad",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -418,15 +418,15 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "9f50a8230a1b44a59d9da52ea5733fd2",
"model_id": "5b45439b3b664d678b19dab288bd395d",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Map(center=[-90, 0], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title', 'zoom_out_tex…"
]
},
"execution_count": 9,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -446,13 +446,13 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 7,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "39f086aa8b9c4b5692665582a208ac9b",
"model_id": "fda57716494e4941833fb28274a3b434",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -466,7 +466,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "77841be8e5d044d9996fc153cb989938",
"model_id": "b64563addc844735b52674ef2806b02e",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -485,19 +485,16 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 9,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(-507043.46011953073,\n",
" -154896.19444938024,\n",
" -1074751.9508017618,\n",
" -779823.9512760969)"
"(-163839.9919487821, 344064.0181910283, -1023999.955956027, -655360.0356036923)"
]
},
"execution_count": 11,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -517,7 +514,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 10,
"metadata": {},
"outputs": [
{
Expand All @@ -526,7 +523,7 @@
"(-3330000.0, 1900000.0, -3330000.0, 1850000.0)"
]
},
"execution_count": 12,
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -544,7 +541,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 11,
"metadata": {},
"outputs": [
{
Expand All @@ -553,7 +550,7 @@
"(-3771912.2124641463, 4304153.836767693, -4390203.790700719, 4294867.885261321)"
]
},
"execution_count": 13,
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
Expand Down
10 changes: 5 additions & 5 deletions docs/how_to/download_NASA_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -425,19 +425,19 @@
" standard_name: bedrock_altitude\n",
" units: meters\n",
" grid_mapping: mapping\n",
" source: IBCSO v2 and Mathieu Morlighem</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.DataArray</div><div class='xr-array-name'>'bed'</div><ul class='xr-dim-list'><li><span class='xr-has-index'>y</span>: 13333</li><li><span class='xr-has-index'>x</span>: 13333</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-f1678130-4486-40ed-b96b-acd6c6b8f944' class='xr-array-in' type='checkbox' checked><label for='section-f1678130-4486-40ed-b96b-acd6c6b8f944' title='Show/hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-array-preview xr-preview'><span>...</span></div><div class='xr-array-data'><pre>[177768889 values with dtype=float32]</pre></div></div></li><li class='xr-section-item'><input id='section-5a35c4a7-008c-40be-977d-febd425050d9' class='xr-section-summary-in' type='checkbox' checked><label for='section-5a35c4a7-008c-40be-977d-febd425050d9' class='xr-section-summary' >Coordinates: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>x</span></div><div class='xr-var-dims'>(x)</div><div class='xr-var-dtype'>int32</div><div class='xr-var-preview xr-preview'>-3333000 -3332500 ... 3333000</div><input id='attrs-cd2eebbd-b1a8-424f-b913-28b96dff56ee' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-cd2eebbd-b1a8-424f-b913-28b96dff56ee' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-d30ff233-48b0-4f48-a2c2-e6fb888fae5a' class='xr-var-data-in' type='checkbox'><label for='data-d30ff233-48b0-4f48-a2c2-e6fb888fae5a' 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>long_name :</span></dt><dd>Cartesian x-coordinate</dd><dt><span>standard_name :</span></dt><dd>projection_x_coordinate</dd><dt><span>units :</span></dt><dd>meter</dd></dl></div><div class='xr-var-data'><pre>array([-3333000, -3332500, -3332000, ..., 3332000, 3332500, 3333000],\n",
" dtype=int32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>y</span></div><div class='xr-var-dims'>(y)</div><div class='xr-var-dtype'>int32</div><div class='xr-var-preview xr-preview'>3333000 3332500 ... -3333000</div><input id='attrs-a4257801-0eb8-43d5-bcea-6e82f9941a72' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-a4257801-0eb8-43d5-bcea-6e82f9941a72' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-95afa480-6b75-47f9-975d-f3a95bae1584' class='xr-var-data-in' type='checkbox'><label for='data-95afa480-6b75-47f9-975d-f3a95bae1584' 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>long_name :</span></dt><dd>Cartesian y-coordinate</dd><dt><span>standard_name :</span></dt><dd>projection_y_coordinate</dd><dt><span>units :</span></dt><dd>meter</dd></dl></div><div class='xr-var-data'><pre>array([ 3333000, 3332500, 3332000, ..., -3332000, -3332500, -3333000],\n",
" dtype=int32)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-e5b532cf-f875-4f0c-a3c1-43e8620e824d' class='xr-section-summary-in' type='checkbox' ><label for='section-e5b532cf-f875-4f0c-a3c1-43e8620e824d' class='xr-section-summary' >Indexes: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>x</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-adf75645-0d34-4091-9a62-9af7be32487c' class='xr-index-data-in' type='checkbox'/><label for='index-adf75645-0d34-4091-9a62-9af7be32487c' 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([-3333000, -3332500, -3332000, -3331500, -3331000, -3330500, -3330000,\n",
" source: IBCSO v2 and Mathieu Morlighem</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.DataArray</div><div class='xr-array-name'>'bed'</div><ul class='xr-dim-list'><li><span class='xr-has-index'>y</span>: 13333</li><li><span class='xr-has-index'>x</span>: 13333</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-8728ff8a-0aab-4171-8924-8322de178a39' class='xr-array-in' type='checkbox' checked><label for='section-8728ff8a-0aab-4171-8924-8322de178a39' title='Show/hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-array-preview xr-preview'><span>...</span></div><div class='xr-array-data'><pre>[177768889 values with dtype=float32]</pre></div></div></li><li class='xr-section-item'><input id='section-e741e18f-d06e-42f8-8e10-9d71933cbdb9' class='xr-section-summary-in' type='checkbox' checked><label for='section-e741e18f-d06e-42f8-8e10-9d71933cbdb9' class='xr-section-summary' >Coordinates: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>x</span></div><div class='xr-var-dims'>(x)</div><div class='xr-var-dtype'>int32</div><div class='xr-var-preview xr-preview'>-3333000 -3332500 ... 3333000</div><input id='attrs-435c8aa2-b013-405a-b877-d27e50482164' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-435c8aa2-b013-405a-b877-d27e50482164' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-c7702928-ae63-4a1c-8ce9-19de2e2852d1' class='xr-var-data-in' type='checkbox'><label for='data-c7702928-ae63-4a1c-8ce9-19de2e2852d1' 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>long_name :</span></dt><dd>Cartesian x-coordinate</dd><dt><span>standard_name :</span></dt><dd>projection_x_coordinate</dd><dt><span>units :</span></dt><dd>meter</dd></dl></div><div class='xr-var-data'><pre>array([-3333000, -3332500, -3332000, ..., 3332000, 3332500, 3333000],\n",
" dtype=int32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>y</span></div><div class='xr-var-dims'>(y)</div><div class='xr-var-dtype'>int32</div><div class='xr-var-preview xr-preview'>3333000 3332500 ... -3333000</div><input id='attrs-dd943764-87c8-4379-967b-fb29a21e4ecb' class='xr-var-attrs-in' type='checkbox' ><label for='attrs-dd943764-87c8-4379-967b-fb29a21e4ecb' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-6dfcb74a-09c8-4954-9b2b-c23e9b27a72f' class='xr-var-data-in' type='checkbox'><label for='data-6dfcb74a-09c8-4954-9b2b-c23e9b27a72f' 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>long_name :</span></dt><dd>Cartesian y-coordinate</dd><dt><span>standard_name :</span></dt><dd>projection_y_coordinate</dd><dt><span>units :</span></dt><dd>meter</dd></dl></div><div class='xr-var-data'><pre>array([ 3333000, 3332500, 3332000, ..., -3332000, -3332500, -3333000],\n",
" dtype=int32)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-19502259-c2e4-41b4-9e8a-cd14c7cddf32' class='xr-section-summary-in' type='checkbox' ><label for='section-19502259-c2e4-41b4-9e8a-cd14c7cddf32' class='xr-section-summary' >Indexes: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>x</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-29decdf9-7688-4945-b4b5-0955a7eaecdd' class='xr-index-data-in' type='checkbox'/><label for='index-29decdf9-7688-4945-b4b5-0955a7eaecdd' 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([-3333000, -3332500, -3332000, -3331500, -3331000, -3330500, -3330000,\n",
" -3329500, -3329000, -3328500,\n",
" ...\n",
" 3328500, 3329000, 3329500, 3330000, 3330500, 3331000, 3331500,\n",
" 3332000, 3332500, 3333000],\n",
" dtype=&#x27;int32&#x27;, name=&#x27;x&#x27;, length=13333))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>y</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-89b7f9f8-0eb6-4802-b888-d3513dcd2ac5' class='xr-index-data-in' type='checkbox'/><label for='index-89b7f9f8-0eb6-4802-b888-d3513dcd2ac5' 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([ 3333000, 3332500, 3332000, 3331500, 3331000, 3330500, 3330000,\n",
" dtype=&#x27;int32&#x27;, name=&#x27;x&#x27;, length=13333))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>y</div></div><div class='xr-index-preview'>PandasIndex</div><div></div><input id='index-3997825d-b3d9-44b7-bbe9-434fbe06b6f5' class='xr-index-data-in' type='checkbox'/><label for='index-3997825d-b3d9-44b7-bbe9-434fbe06b6f5' 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([ 3333000, 3332500, 3332000, 3331500, 3331000, 3330500, 3330000,\n",
" 3329500, 3329000, 3328500,\n",
" ...\n",
" -3328500, -3329000, -3329500, -3330000, -3330500, -3331000, -3331500,\n",
" -3332000, -3332500, -3333000],\n",
" dtype=&#x27;int32&#x27;, name=&#x27;y&#x27;, length=13333))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-5774b063-7874-4f19-af65-9e9acde94ab3' class='xr-section-summary-in' type='checkbox' checked><label for='section-5774b063-7874-4f19-af65-9e9acde94ab3' class='xr-section-summary' >Attributes: <span>(5)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>long_name :</span></dt><dd>bed topography</dd><dt><span>standard_name :</span></dt><dd>bedrock_altitude</dd><dt><span>units :</span></dt><dd>meters</dd><dt><span>grid_mapping :</span></dt><dd>mapping</dd><dt><span>source :</span></dt><dd>IBCSO v2 and Mathieu Morlighem</dd></dl></div></li></ul></div></div>"
" dtype=&#x27;int32&#x27;, name=&#x27;y&#x27;, length=13333))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-43f910cd-a6fc-44b3-bf52-0d0f9ef7a363' class='xr-section-summary-in' type='checkbox' checked><label for='section-43f910cd-a6fc-44b3-bf52-0d0f9ef7a363' class='xr-section-summary' >Attributes: <span>(5)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>long_name :</span></dt><dd>bed topography</dd><dt><span>standard_name :</span></dt><dd>bedrock_altitude</dd><dt><span>units :</span></dt><dd>meters</dd><dt><span>grid_mapping :</span></dt><dd>mapping</dd><dt><span>source :</span></dt><dd>IBCSO v2 and Mathieu Morlighem</dd></dl></div></li></ul></div></div>"
],
"text/plain": [
"<xarray.DataArray 'bed' (y: 13333, x: 13333)> Size: 711MB\n",
Expand Down
6 changes: 3 additions & 3 deletions docs/how_to/manipulating_regions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 4,
"metadata": {
"execution": {
"iopub.execute_input": "2024-02-09T05:04:31.155498Z",
Expand All @@ -34,7 +34,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 5,
"metadata": {
"execution": {
"iopub.execute_input": "2024-02-09T05:04:51.026428Z",
Expand Down Expand Up @@ -95,7 +95,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand Down
2 changes: 1 addition & 1 deletion docs/how_to/map_features.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 6,
"metadata": {
"execution": {
"iopub.execute_input": "2024-02-09T04:53:16.338253Z",
Expand Down
18 changes: 9 additions & 9 deletions docs/how_to/subplot_layout.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 1,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-26T09:15:02.478336Z",
Expand All @@ -29,7 +29,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -46,7 +46,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 3,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-26T09:15:06.071123Z",
Expand All @@ -69,7 +69,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 4,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-26T09:15:06.089281Z",
Expand Down Expand Up @@ -115,7 +115,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 5,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-26T09:15:25.305245Z",
Expand Down Expand Up @@ -154,7 +154,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 6,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-26T09:15:28.127797Z",
Expand Down Expand Up @@ -238,7 +238,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 7,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-26T09:15:45.184114Z",
Expand All @@ -262,7 +262,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 8,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-26T09:15:45.201614Z",
Expand Down Expand Up @@ -349,7 +349,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 9,
"metadata": {
"execution": {
"iopub.execute_input": "2024-04-26T09:16:01.453458Z",
Expand Down
6 changes: 3 additions & 3 deletions docs/how_to/switch_between_hemispheres.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 1,
"metadata": {
"execution": {
"iopub.execute_input": "2024-02-09T04:57:50.527990Z",
Expand All @@ -35,7 +35,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 2,
"metadata": {
"execution": {
"iopub.execute_input": "2024-02-09T04:58:27.578150Z",
Expand Down Expand Up @@ -86,7 +86,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand Down
Loading

0 comments on commit 4424866

Please sign in to comment.