Skip to content

Commit 6f16932

Browse files
Update documentation
1 parent f3f2cf3 commit 6f16932

107 files changed

Lines changed: 3971 additions & 3204 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 258449c5a17eec5800d52465022ef9e1
3+
config: 09e5cea43acf49a22b9898f2336177d9
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

README.html

Lines changed: 62 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<head>
88
<meta charset="utf-8" />
9-
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />
9+
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
1010

1111
<title>Geospatial Python Tutorials &#8212; Geospatial Python Tutorials</title>
1212

@@ -16,33 +16,30 @@
1616
document.documentElement.dataset.mode = localStorage.getItem("mode") || "light";
1717
document.documentElement.dataset.theme = localStorage.getItem("theme") || "light";
1818
</script>
19-
<!--
20-
this give us a css class that will be invisible only if js is disabled
21-
-->
22-
<noscript>
23-
<style>
24-
.pst-js-only { display: none !important; }
25-
26-
</style>
27-
</noscript>
2819

2920
<!-- Loaded before other Sphinx assets -->
30-
<link href="_static/styles/theme.css?digest=8878045cc6db502f8baf" rel="stylesheet" />
31-
<link href="_static/styles/pydata-sphinx-theme.css?digest=8878045cc6db502f8baf" rel="stylesheet" />
21+
<link href="_static/styles/theme.css?digest=dfe6caa3a7d634c4db9b" rel="stylesheet" />
22+
<link href="_static/styles/bootstrap.css?digest=dfe6caa3a7d634c4db9b" rel="stylesheet" />
23+
<link href="_static/styles/pydata-sphinx-theme.css?digest=dfe6caa3a7d634c4db9b" rel="stylesheet" />
24+
25+
26+
<link href="_static/vendor/fontawesome/6.5.2/css/all.min.css?digest=dfe6caa3a7d634c4db9b" rel="stylesheet" />
27+
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.5.2/webfonts/fa-solid-900.woff2" />
28+
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.5.2/webfonts/fa-brands-400.woff2" />
29+
<link rel="preload" as="font" type="font/woff2" crossorigin href="_static/vendor/fontawesome/6.5.2/webfonts/fa-regular-400.woff2" />
3230

3331
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
34-
<link rel="stylesheet" type="text/css" href="_static/styles/sphinx-book-theme.css?v=a3416100" />
32+
<link rel="stylesheet" type="text/css" href="_static/styles/sphinx-book-theme.css?v=eba8b062" />
3533
<link rel="stylesheet" type="text/css" href="_static/togglebutton.css?v=13237357" />
3634
<link rel="stylesheet" type="text/css" href="_static/copybutton.css?v=76b2166b" />
37-
<link rel="stylesheet" type="text/css" href="_static/mystnb.4510f1fc1dee50b3e5859aac5469c37c29e427902b24a333a5f9fcb2f0b3ac41.css" />
35+
<link rel="stylesheet" type="text/css" href="_static/mystnb.8ecb98da25f57f5357bf6f572d296f466b2cfe2517ffebfabe82451661e28f02.css" />
3836
<link rel="stylesheet" type="text/css" href="_static/sphinx-thebe.css?v=4fa983c6" />
3937
<link rel="stylesheet" type="text/css" href="_static/sphinx-design.min.css?v=95c83b7e" />
4038

41-
<!-- So that users can add custom icons -->
42-
<script src="_static/scripts/fontawesome.js?digest=8878045cc6db502f8baf"></script>
4339
<!-- Pre-loaded scripts that we'll load fully later -->
44-
<link rel="preload" as="script" href="_static/scripts/bootstrap.js?digest=8878045cc6db502f8baf" />
45-
<link rel="preload" as="script" href="_static/scripts/pydata-sphinx-theme.js?digest=8878045cc6db502f8baf" />
40+
<link rel="preload" as="script" href="_static/scripts/bootstrap.js?digest=dfe6caa3a7d634c4db9b" />
41+
<link rel="preload" as="script" href="_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b" />
42+
<script src="_static/vendor/fontawesome/6.5.2/js/all.min.js?digest=dfe6caa3a7d634c4db9b"></script>
4643

4744
<script src="_static/documentation_options.js?v=9eb32ce0"></script>
4845
<script src="_static/doctools.js?v=9a2dae69"></script>
@@ -78,7 +75,6 @@
7875
<link rel="search" title="Search" href="search.html" />
7976
<meta name="viewport" content="width=device-width, initial-scale=1"/>
8077
<meta name="docsearch:language" content="en"/>
81-
<meta name="docsearch:version" content="" />
8278
</head>
8379

8480

@@ -94,24 +90,36 @@
9490
<i class="fa-solid fa-arrow-up"></i>Back to top</button>
9591

9692

97-
<dialog id="pst-search-dialog">
98-
93+
<input type="checkbox"
94+
class="sidebar-toggle"
95+
id="pst-primary-sidebar-checkbox"/>
96+
<label class="overlay overlay-primary" for="pst-primary-sidebar-checkbox"></label>
97+
98+
<input type="checkbox"
99+
class="sidebar-toggle"
100+
id="pst-secondary-sidebar-checkbox"/>
101+
<label class="overlay overlay-secondary" for="pst-secondary-sidebar-checkbox"></label>
102+
103+
<div class="search-button__wrapper">
104+
<div class="search-button__overlay"></div>
105+
<div class="search-button__search-container">
99106
<form class="bd-search d-flex align-items-center"
100107
action="search.html"
101108
method="get">
102109
<i class="fa-solid fa-magnifying-glass"></i>
103110
<input type="search"
104111
class="form-control"
105112
name="q"
113+
id="search-input"
106114
placeholder="Search this book..."
107115
aria-label="Search this book..."
108116
autocomplete="off"
109117
autocorrect="off"
110118
autocapitalize="off"
111119
spellcheck="false"/>
112120
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
113-
</form>
114-
</dialog>
121+
</form></div>
122+
</div>
115123

116124
<div class="pst-async-banner-revealer d-none">
117125
<aside id="bd-header-version-warning" class="d-none d-print-none" aria-label="Version warning"></aside>
@@ -129,8 +137,7 @@
129137

130138

131139

132-
<dialog id="pst-primary-sidebar-modal"></dialog>
133-
<div id="pst-primary-sidebar" class="bd-sidebar-primary bd-sidebar">
140+
<div class="bd-sidebar-primary bd-sidebar">
134141

135142

136143

@@ -158,17 +165,21 @@
158165

159166

160167
<img src="_static/logo.png" class="logo__image only-light" alt="Geospatial Python Tutorials - Home"/>
161-
<img src="_static/logo.png" class="logo__image only-dark pst-js-only" alt="Geospatial Python Tutorials - Home"/>
168+
<script>document.write(`<img src="_static/logo.png" class="logo__image only-dark" alt="Geospatial Python Tutorials - Home"/>`);</script>
162169

163170

164171
</a></div>
165172
<div class="sidebar-primary-item">
166173

167-
<button class="btn search-button-field search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
168-
<i class="fa-solid fa-magnifying-glass"></i>
169-
<span class="search-button__default-text">Search</span>
170-
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span>
171-
</button></div>
174+
<script>
175+
document.write(`
176+
<button class="btn search-button-field search-button__button" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
177+
<i class="fa-solid fa-magnifying-glass"></i>
178+
<span class="search-button__default-text">Search</span>
179+
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span>
180+
</button>
181+
`);
182+
</script></div>
172183
<div class="sidebar-primary-item"><nav class="bd-links bd-docs-nav" aria-label="Main">
173184
<div class="bd-toc-item navbar-nav active">
174185

@@ -233,14 +244,9 @@
233244

234245

235246
<div class="sidebar-primary-items__end sidebar-primary__section">
236-
<div class="sidebar-primary-item">
237-
<div id="ethical-ad-placement"
238-
class="flat"
239-
data-ea-publisher="readthedocs"
240-
data-ea-type="readthedocs-sidebar"
241-
data-ea-manual="true">
242-
</div></div>
243247
</div>
248+
249+
<div id="rtd-footer-container"></div>
244250

245251

246252
</div>
@@ -384,16 +390,24 @@
384390

385391

386392

387-
<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button pst-js-only" aria-label="Color mode" data-bs-title="Color mode" data-bs-placement="bottom" data-bs-toggle="tooltip">
388-
<i class="theme-switch fa-solid fa-sun fa-lg" data-mode="light" title="Light"></i>
389-
<i class="theme-switch fa-solid fa-moon fa-lg" data-mode="dark" title="Dark"></i>
390-
<i class="theme-switch fa-solid fa-circle-half-stroke fa-lg" data-mode="auto" title="System Settings"></i>
391-
</button>
393+
<script>
394+
document.write(`
395+
<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button" title="light/dark" aria-label="light/dark" data-bs-placement="bottom" data-bs-toggle="tooltip">
396+
<i class="theme-switch fa-solid fa-sun fa-lg" data-mode="light"></i>
397+
<i class="theme-switch fa-solid fa-moon fa-lg" data-mode="dark"></i>
398+
<i class="theme-switch fa-solid fa-circle-half-stroke fa-lg" data-mode="auto"></i>
399+
</button>
400+
`);
401+
</script>
392402

393403

394-
<button class="btn btn-sm pst-navbar-icon search-button search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
404+
<script>
405+
document.write(`
406+
<button class="btn btn-sm pst-navbar-icon search-button search-button__button" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip">
395407
<i class="fa-solid fa-magnifying-glass fa-lg"></i>
396-
</button>
408+
</button>
409+
`);
410+
</script>
397411
<button class="sidebar-toggle secondary-toggle btn btn-sm" title="Toggle secondary sidebar" data-bs-placement="bottom" data-bs-toggle="tooltip">
398412
<span class="fa-solid fa-list"></span>
399413
</button>
@@ -538,8 +552,7 @@ <h2>License<a class="headerlink" href="#license" title="Link to this heading">#<
538552

539553

540554

541-
<dialog id="pst-secondary-sidebar-modal"></dialog>
542-
<div id="pst-secondary-sidebar" class="bd-sidebar-secondary bd-toc"><div class="sidebar-secondary-items sidebar-secondary__inner">
555+
<div class="bd-sidebar-secondary bd-toc"><div class="sidebar-secondary-items sidebar-secondary__inner">
543556

544557

545558
<div class="sidebar-secondary-item">
@@ -605,8 +618,8 @@ <h2>License<a class="headerlink" href="#license" title="Link to this heading">#<
605618
</div>
606619

607620
<!-- Scripts loaded after <body> so the DOM is not blocked -->
608-
<script defer src="_static/scripts/bootstrap.js?digest=8878045cc6db502f8baf"></script>
609-
<script defer src="_static/scripts/pydata-sphinx-theme.js?digest=8878045cc6db502f8baf"></script>
621+
<script src="_static/scripts/bootstrap.js?digest=dfe6caa3a7d634c4db9b"></script>
622+
<script src="_static/scripts/pydata-sphinx-theme.js?digest=dfe6caa3a7d634c4db9b"></script>
610623

611624
<footer class="bd-footer">
612625
</footer>

_sources/notebooks/xarray_processing_satellite_images.ipynb

Lines changed: 58 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@
1717
"The tutorial is divided into 2 parts showing how to work with Sentinel-2 and Landsat-8 scenes."
1818
]
1919
},
20-
{
21-
"cell_type": "code",
22-
"execution_count": null,
23-
"id": "cc505f74",
24-
"metadata": {},
25-
"outputs": [],
26-
"source": []
27-
},
2820
{
2921
"cell_type": "markdown",
3022
"id": "7266cb71",
@@ -122,7 +114,7 @@
122114
"if 'google.colab' in str(get_ipython()):\n",
123115
" from google.colab import output\n",
124116
" port_to_expose = 8787 # This is the default port for Dask dashboard\n",
125-
" print(output.eval_js(f'google.colab.kernel.proxyPort({port_to_expose})'))\n"
117+
" print(output.eval_js(f'google.colab.kernel.proxyPort({port_to_expose})'))"
126118
]
127119
},
128120
{
@@ -407,6 +399,25 @@
407399
"scaled = (clipped - 1000)/10000"
408400
]
409401
},
402+
{
403+
"cell_type": "markdown",
404+
"id": "0d459ba0",
405+
"metadata": {},
406+
"source": [
407+
"We can now apply all the operations and compute the result via Dask. This will load the resulting array into memory."
408+
]
409+
},
410+
{
411+
"cell_type": "code",
412+
"execution_count": null,
413+
"id": "9d30551f",
414+
"metadata": {},
415+
"outputs": [],
416+
"source": [
417+
"%%time\n",
418+
"scaled = scaled.compute()"
419+
]
420+
},
410421
{
411422
"cell_type": "markdown",
412423
"id": "yEFS_csYWIGP",
@@ -887,6 +898,25 @@
887898
"scaled = (scene*0.0000275) - 0.2"
888899
]
889900
},
901+
{
902+
"cell_type": "markdown",
903+
"id": "1136550d",
904+
"metadata": {},
905+
"source": [
906+
"We can now apply all the operations and compute the result via Dask. This will load the resulting array into memory."
907+
]
908+
},
909+
{
910+
"cell_type": "code",
911+
"execution_count": null,
912+
"id": "740d987a",
913+
"metadata": {},
914+
"outputs": [],
915+
"source": [
916+
"%%time\n",
917+
"scaled = scaled.compute()"
918+
]
919+
},
890920
{
891921
"cell_type": "markdown",
892922
"id": "a0063b92",
@@ -1020,6 +1050,25 @@
10201050
"scene_masked"
10211051
]
10221052
},
1053+
{
1054+
"cell_type": "markdown",
1055+
"id": "b9e423e2",
1056+
"metadata": {},
1057+
"source": [
1058+
"Apply the mask and load the results into memory."
1059+
]
1060+
},
1061+
{
1062+
"cell_type": "code",
1063+
"execution_count": null,
1064+
"id": "8d1aeec7",
1065+
"metadata": {},
1066+
"outputs": [],
1067+
"source": [
1068+
"%%time\n",
1069+
"scene_masked = scene_masked.compute()"
1070+
]
1071+
},
10231072
{
10241073
"cell_type": "code",
10251074
"execution_count": null,

_static/basic.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ div.sphinxsidebarwrapper {
5555

5656
div.sphinxsidebar {
5757
float: left;
58-
width: 230px;
58+
width: 270px;
5959
margin-left: -100%;
6060
font-size: 90%;
6161
word-wrap: break-word;

0 commit comments

Comments
 (0)