Skip to content

Commit 77edb12

Browse files
author
Tom Augspurger
authored
Fixups (#290)
1 parent 5395ab7 commit 77edb12

File tree

6 files changed

+48642
-1917
lines changed

6 files changed

+48642
-1917
lines changed

datasets/3dep/3dep-seamless-example.ipynb

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
},
6262
{
6363
"cell_type": "code",
64-
"execution_count": 6,
64+
"execution_count": 3,
6565
"metadata": {},
6666
"outputs": [
6767
{
@@ -73,7 +73,7 @@
7373
" 84.00166666666]]}"
7474
]
7575
},
76-
"execution_count": 6,
76+
"execution_count": 3,
7777
"metadata": {},
7878
"output_type": "execute_result"
7979
}
@@ -95,7 +95,7 @@
9595
},
9696
{
9797
"cell_type": "code",
98-
"execution_count": 7,
98+
"execution_count": 6,
9999
"metadata": {},
100100
"outputs": [
101101
{
@@ -112,7 +112,7 @@
112112
"buffer = 0.1\n",
113113
"bbox = [longitude - buffer, latitude - buffer, longitude + buffer, latitude + buffer]\n",
114114
"search = catalog.search(collections=\"3dep-seamless\", bbox=bbox)\n",
115-
"items = list(search.get_items())\n",
115+
"items = list(search.item_collection())\n",
116116
"print(f\"{len(items)} items found\")"
117117
]
118118
},
@@ -128,7 +128,7 @@
128128
},
129129
{
130130
"cell_type": "code",
131-
"execution_count": 12,
131+
"execution_count": 7,
132132
"metadata": {},
133133
"outputs": [],
134134
"source": [
@@ -146,11 +146,14 @@
146146
},
147147
{
148148
"cell_type": "code",
149-
"execution_count": 13,
149+
"execution_count": 17,
150150
"metadata": {},
151151
"outputs": [],
152152
"source": [
153153
"import stackstac\n",
154+
"import warnings\n",
155+
"\n",
156+
"warnings.filterwarnings(\"ignore\", message=\"The argument\")\n",
154157
"\n",
155158
"low_res_data = stackstac.stack(items_low_res, bounds=bbox).squeeze().compute()\n",
156159
"high_res_data = stackstac.stack(items_high_res, bounds=bbox).squeeze().compute()"
@@ -164,10 +167,10 @@
164167
{
165168
"data": {
166169
"text/html": [
167-
"<img src=\"https://ai4edatasetspublicassets.blob.core.windows.net/assets/notebook-output/datasets-3dep-3dep-seamless-example.ipynb/14.png\"/>"
170+
"<img src=\"https://ai4edatasetspublicassets.blob.core.windows.net/assets/notebook-output/.-datasets-3dep-3dep-seamless-example.ipynb/14.png\"/>"
168171
],
169172
"text/plain": [
170-
"<Figure size 1728x864 with 2 Axes>"
173+
"<Figure size 2400x1200 with 2 Axes>"
171174
]
172175
},
173176
"metadata": {},
@@ -177,8 +180,6 @@
177180
"source": [
178181
"import matplotlib.pyplot as plt\n",
179182
"\n",
180-
"plt.style.use(\"seaborn-talk\")\n",
181-
"\n",
182183
"fig, axes = plt.subplots(ncols=2, figsize=(24, 12), sharex=True, sharey=True)\n",
183184
"low_res_data.plot.imshow(ax=axes[0], add_colorbar=False)\n",
184185
"high_res_data.plot.imshow(ax=axes[1], add_colorbar=False)\n",
@@ -207,11 +208,26 @@
207208
"name": "python",
208209
"nbconvert_exporter": "python",
209210
"pygments_lexer": "ipython3",
210-
"version": "3.9.10"
211+
"version": "3.11.8"
211212
},
212213
"widgets": {
213214
"application/vnd.jupyter.widget-state+json": {
214-
"state": {},
215+
"state": {
216+
"550e9c6c01c647a9afe71d92d7471681": {
217+
"model_module": "@jupyter-widgets/base",
218+
"model_module_version": "2.0.0",
219+
"model_name": "LayoutModel",
220+
"state": {}
221+
},
222+
"821e2fa4ecba410ab745f3f401f362c4": {
223+
"model_module": "@jupyter-widgets/controls",
224+
"model_module_version": "2.0.0",
225+
"model_name": "VBoxModel",
226+
"state": {
227+
"layout": "IPY_MODEL_550e9c6c01c647a9afe71d92d7471681"
228+
}
229+
}
230+
},
215231
"version_major": 2,
216232
"version_minor": 0
217233
}

0 commit comments

Comments
 (0)