Skip to content

Commit b652a07

Browse files
committed
typo
1 parent 3de8fe2 commit b652a07

File tree

2 files changed

+21
-34
lines changed

2 files changed

+21
-34
lines changed

docs/basic.ipynb

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1820,21 +1820,6 @@
18201820
"id": "later-baseline",
18211821
"metadata": {},
18221822
"outputs": [
1823-
{
1824-
"name": "stdout",
1825-
"output_type": "stream",
1826-
"text": [
1827-
"[########################### ] | 67% Completed | 38.1s"
1828-
]
1829-
},
1830-
{
1831-
"name": "stderr",
1832-
"output_type": "stream",
1833-
"text": [
1834-
"/Users/gabe/Library/Caches/pypoetry/virtualenvs/stackstac-FdRcOknL-py3.8/lib/python3.8/site-packages/numpy/lib/nanfunctions.py:1113: RuntimeWarning: All-NaN slice encountered\n",
1835-
" r, k = function_base._ureduce(a, func=_nanmedian, axis=axis, out=out,\n"
1836-
]
1837-
},
18381823
{
18391824
"name": "stdout",
18401825
"output_type": "stream",

docs/cluster.ipynb

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,22 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "homeless-registration",
5+
"id": "hairy-entrepreneur",
66
"metadata": {},
77
"source": [
88
"# Running on a cluster\n",
99
"\n",
1010
"We'll use a Dask cluster in the cloud—in this case, using [Coiled](https://coiled.io/)—to use many machines to process the data in parallel. We can also run in a data center near* where the data is stored for better performance.\n",
1111
"\n",
12-
"\\*_these Sentinel-2 COGs are in AWS's `us-west-2`; Coiled currently only offers `us-west-1`. But it's close enough._"
12+
"If you use Coiled (which is both easy to use, and currently free!), you can set `software=\"gjoseph92/stackstac\"` to get a software environment where the latest version of `stackstac` is already installed.\n",
13+
"\n",
14+
"_*these Sentinel-2 COGs are in AWS's `us-west-2`; Coiled currently only offers `us-west-1`. But it's close enough._"
1315
]
1416
},
1517
{
1618
"cell_type": "code",
1719
"execution_count": 1,
18-
"id": "occupied-opening",
20+
"id": "clinical-pastor",
1921
"metadata": {},
2022
"outputs": [
2123
{
@@ -73,7 +75,7 @@
7375
{
7476
"cell_type": "code",
7577
"execution_count": 2,
76-
"id": "scheduled-batman",
78+
"id": "metallic-dodge",
7779
"metadata": {},
7880
"outputs": [],
7981
"source": [
@@ -85,7 +87,7 @@
8587
},
8688
{
8789
"cell_type": "markdown",
88-
"id": "bright-massachusetts",
90+
"id": "first-marshall",
8991
"metadata": {},
9092
"source": [
9193
"### Search for a full year of Sentinel-2 data over Santa Fe, New Mexico.\n",
@@ -96,7 +98,7 @@
9698
{
9799
"cell_type": "code",
98100
"execution_count": 3,
99-
"id": "rocky-exercise",
101+
"id": "opposite-weather",
100102
"metadata": {},
101103
"outputs": [
102104
{
@@ -131,13 +133,13 @@
131133
},
132134
{
133135
"cell_type": "markdown",
134-
"id": "detected-belief",
136+
"id": "noble-minneapolis",
135137
"metadata": {},
136138
"source": [
137139
"### Set a coarser resolution to speed up the computation\n",
138140
"\n",
139141
"We'll have `stackstac` retrieve the data at 100m resolution, instead of its native 10m.\n",
140-
"Since the data is stored in [Cloud-Optimized GeoTIFFs](https://www.cogeo.org/), with internal overviews, fetching lower-resolution data is very efficient and requires processing an order of magnitude less data.\n",
142+
"Since the data is stored in [Cloud-Optimized GeoTIFFs](https://www.cogeo.org/) with internal overviews, fetching lower-resolution data is very efficient and requires processing an order of magnitude less data.\n",
141143
"\n",
142144
"(Internally, `stackstac` is just telling rasterio/GDAL to build a VRT at this resolution. GDAL then automatically figures out which overview level to fetch data from.)\n",
143145
"\n",
@@ -147,7 +149,7 @@
147149
{
148150
"cell_type": "code",
149151
"execution_count": 4,
150-
"id": "elder-swaziland",
152+
"id": "scheduled-memphis",
151153
"metadata": {},
152154
"outputs": [
153155
{
@@ -172,7 +174,7 @@
172174
{
173175
"cell_type": "code",
174176
"execution_count": 5,
175-
"id": "stuck-organ",
177+
"id": "medieval-killing",
176178
"metadata": {},
177179
"outputs": [
178180
{
@@ -1102,7 +1104,7 @@
11021104
},
11031105
{
11041106
"cell_type": "markdown",
1105-
"id": "registered-leonard",
1107+
"id": "fitting-apollo",
11061108
"metadata": {},
11071109
"source": [
11081110
"For comparison, this is how much data we'd be processing if we'd used full 10m resolution:"
@@ -1111,7 +1113,7 @@
11111113
{
11121114
"cell_type": "code",
11131115
"execution_count": 6,
1114-
"id": "duplicate-daniel",
1116+
"id": "about-stadium",
11151117
"metadata": {},
11161118
"outputs": [
11171119
{
@@ -1132,7 +1134,7 @@
11321134
},
11331135
{
11341136
"cell_type": "markdown",
1135-
"id": "pediatric-kazakhstan",
1137+
"id": "perfect-consideration",
11361138
"metadata": {},
11371139
"source": [
11381140
"### Prepare monthly RGB composites\n",
@@ -1143,7 +1145,7 @@
11431145
{
11441146
"cell_type": "code",
11451147
"execution_count": 7,
1146-
"id": "legendary-power",
1148+
"id": "tracked-festival",
11471149
"metadata": {},
11481150
"outputs": [
11491151
{
@@ -1640,7 +1642,7 @@
16401642
},
16411643
{
16421644
"cell_type": "markdown",
1643-
"id": "fatty-death",
1645+
"id": "dynamic-water",
16441646
"metadata": {},
16451647
"source": [
16461648
"### Compute in parallel on the cluster"
@@ -1649,7 +1651,7 @@
16491651
{
16501652
"cell_type": "code",
16511653
"execution_count": 8,
1652-
"id": "pending-celtic",
1654+
"id": "accomplished-insertion",
16531655
"metadata": {},
16541656
"outputs": [
16551657
{
@@ -1667,7 +1669,7 @@
16671669
},
16681670
{
16691671
"cell_type": "markdown",
1670-
"id": "blessed-bookmark",
1672+
"id": "revised-alberta",
16711673
"metadata": {},
16721674
"source": [
16731675
"Using 4 Coiled workers (4 CPU, 16 GiB memory each), we processed the ~10 GB of data into median composites in a couple minutes.\n",
@@ -1678,7 +1680,7 @@
16781680
{
16791681
"cell_type": "code",
16801682
"execution_count": 9,
1681-
"id": "dietary-cambodia",
1683+
"id": "guided-council",
16821684
"metadata": {},
16831685
"outputs": [
16841686
{
@@ -1710,7 +1712,7 @@
17101712
},
17111713
{
17121714
"cell_type": "markdown",
1713-
"id": "stone-forwarding",
1715+
"id": "polar-bridal",
17141716
"metadata": {},
17151717
"source": [
17161718
"According to the Coiled dashboard, this cost about 74 cents. Was this picture worth 74 cents to you?"

0 commit comments

Comments
 (0)