Skip to content

Commit 73c0556

Browse files
committed
Updated notebook (xarray section)
1 parent 7607591 commit 73c0556

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

examples/notebooks/89_image_array_viz.ipynb

+1-17
Original file line numberDiff line numberDiff line change
@@ -227,22 +227,6 @@
227227
"masked_array = xr.where(array < 2000, 0, 1)"
228228
]
229229
},
230-
{
231-
"cell_type": "markdown",
232-
"metadata": {},
233-
"source": [
234-
"Create an in-memory raster dataset from the elevation class array and use the projection and extent of the DEM."
235-
]
236-
},
237-
{
238-
"cell_type": "code",
239-
"execution_count": null,
240-
"metadata": {},
241-
"outputs": [],
242-
"source": [
243-
"image = leafmap.array_to_image(masked_array, source=dem)"
244-
]
245-
},
246230
{
247231
"cell_type": "markdown",
248232
"metadata": {},
@@ -258,7 +242,7 @@
258242
"source": [
259243
"m = leafmap.Map()\n",
260244
"m.add_raster(dem, colormap=\"terrain\", layer_name=\"DEM\")\n",
261-
"m.add_raster(image, colormap=\"coolwarm\", layer_name=\"Classified DEM\")\n",
245+
"m.add_raster(masked_array, colormap=\"coolwarm\", layer_name=\"Classified DEM\")\n",
262246
"m"
263247
]
264248
}

0 commit comments

Comments
 (0)