Skip to content

Commit 33a7367

Browse files
authored
Testing and Updating Examples (#837)
* updated viewshed gpu example * updated classification notebook with more reliable data source and rioxarray loading * bunch of notebook updates * ran and cleared example noe notebooks * The sentienl cloudless mosaic notebook will removed because it relies on an external service and only uses the true_color function from xarray-spatial, so its generally unfocused and won't be maintained. * tested and cleared all notebooks
1 parent 90bb8f6 commit 33a7367

24 files changed

+2614
-1557
lines changed

docs/source/user_guide/classification.ipynb

Lines changed: 78 additions & 44 deletions
Large diffs are not rendered by default.

docs/source/user_guide/focal.ipynb

Lines changed: 64 additions & 37 deletions
Large diffs are not rendered by default.

docs/source/user_guide/local.ipynb

Lines changed: 109 additions & 32 deletions
Large diffs are not rendered by default.

docs/source/user_guide/multispectral.ipynb

Lines changed: 458 additions & 261 deletions
Large diffs are not rendered by default.

docs/source/user_guide/pathfinding.ipynb

Lines changed: 50 additions & 22 deletions
Large diffs are not rendered by default.

docs/source/user_guide/proximity.ipynb

Lines changed: 115 additions & 52 deletions
Large diffs are not rendered by default.

docs/source/user_guide/surface.ipynb

Lines changed: 186 additions & 110 deletions
Large diffs are not rendered by default.

docs/source/user_guide/zonal.ipynb

Lines changed: 72 additions & 38 deletions
Large diffs are not rendered by default.

examples/Pathfinding_Austin_Road_Network.ipynb

Lines changed: 63 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,14 @@
2424
{
2525
"cell_type": "code",
2626
"execution_count": null,
27-
"metadata": {},
27+
"metadata": {
28+
"execution": {
29+
"iopub.execute_input": "2026-01-23T19:13:31.469085Z",
30+
"iopub.status.busy": "2026-01-23T19:13:31.468977Z",
31+
"iopub.status.idle": "2026-01-23T19:13:32.421379Z",
32+
"shell.execute_reply": "2026-01-23T19:13:32.420650Z"
33+
}
34+
},
2835
"outputs": [],
2936
"source": [
3037
"import datashader as ds\n",
@@ -62,12 +69,17 @@
6269
{
6370
"cell_type": "code",
6471
"execution_count": null,
65-
"metadata": {},
72+
"metadata": {
73+
"execution": {
74+
"iopub.execute_input": "2026-01-23T19:13:32.423409Z",
75+
"iopub.status.busy": "2026-01-23T19:13:32.422938Z",
76+
"iopub.status.idle": "2026-01-23T19:13:34.034515Z",
77+
"shell.execute_reply": "2026-01-23T19:13:34.033712Z"
78+
}
79+
},
6680
"outputs": [],
6781
"source": [
68-
"streets = geopandas.read_file(\n",
69-
" \"data/geo_export_9c395dda-0b29-41ec-89b4-a51a898f7104.shp\"\n",
70-
")\n",
82+
"streets = geopandas.read_file(\"../xrspatial-examples/data/geo_export_9c395dda-0b29-41ec-89b4-a51a898f7104.shp\")\n",
7183
"streets = streets.to_crs(\"EPSG:4326\")\n",
7284
"streets = streets.explode(\"geometry\").reset_index(drop=True)\n",
7385
"streets_spd = spatialpandas.GeoDataFrame(streets, geometry=\"geometry\")"
@@ -92,7 +104,14 @@
92104
{
93105
"cell_type": "code",
94106
"execution_count": null,
95-
"metadata": {},
107+
"metadata": {
108+
"execution": {
109+
"iopub.execute_input": "2026-01-23T19:13:34.036027Z",
110+
"iopub.status.busy": "2026-01-23T19:13:34.035787Z",
111+
"iopub.status.idle": "2026-01-23T19:13:34.054300Z",
112+
"shell.execute_reply": "2026-01-23T19:13:34.053635Z"
113+
}
114+
},
96115
"outputs": [],
97116
"source": [
98117
"xmin, ymin, xmax, ymax = (\n",
@@ -109,7 +128,14 @@
109128
{
110129
"cell_type": "code",
111130
"execution_count": null,
112-
"metadata": {},
131+
"metadata": {
132+
"execution": {
133+
"iopub.execute_input": "2026-01-23T19:13:34.072052Z",
134+
"iopub.status.busy": "2026-01-23T19:13:34.071884Z",
135+
"iopub.status.idle": "2026-01-23T19:13:36.136717Z",
136+
"shell.execute_reply": "2026-01-23T19:13:36.136054Z"
137+
}
138+
},
113139
"outputs": [],
114140
"source": [
115141
"H, W = 600, 800\n",
@@ -153,7 +179,14 @@
153179
{
154180
"cell_type": "code",
155181
"execution_count": null,
156-
"metadata": {},
182+
"metadata": {
183+
"execution": {
184+
"iopub.execute_input": "2026-01-23T19:13:36.137998Z",
185+
"iopub.status.busy": "2026-01-23T19:13:36.137876Z",
186+
"iopub.status.idle": "2026-01-23T19:13:37.131601Z",
187+
"shell.execute_reply": "2026-01-23T19:13:37.131064Z"
188+
}
189+
},
157190
"outputs": [],
158191
"source": [
159192
"# find the path from start to goal,\n",
@@ -166,11 +199,32 @@
166199
"path_shaded = dynspread(shade(path_agg, cmap=[\"green\"]), threshold=1, max_px=1)\n",
167200
"set_background(stack(street_shaded, path_shaded, start_shaded, goal_shaded), \"black\")"
168201
]
202+
},
203+
{
204+
"cell_type": "code",
205+
"execution_count": null,
206+
"metadata": {},
207+
"outputs": [],
208+
"source": []
169209
}
170210
],
171211
"metadata": {
212+
"kernelspec": {
213+
"display_name": "Python 3 (ipykernel)",
214+
"language": "python",
215+
"name": "python3"
216+
},
172217
"language_info": {
173-
"name": "python"
218+
"codemirror_mode": {
219+
"name": "ipython",
220+
"version": 3
221+
},
222+
"file_extension": ".py",
223+
"mimetype": "text/x-python",
224+
"name": "python",
225+
"nbconvert_exporter": "python",
226+
"pygments_lexer": "ipython3",
227+
"version": "3.14.2"
174228
}
175229
},
176230
"nbformat": 4,

examples/cloudless-mosaic-sentinel2.ipynb

Lines changed: 0 additions & 225 deletions
This file was deleted.

0 commit comments

Comments
 (0)