Skip to content

Commit 7bc2533

Browse files
committed
Updated rasterio syntax.
1 parent 3d8b19d commit 7bc2533

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

jupyter-notebooks/coastal-erosion-example/2_rasterbands.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@
149149
"source": [
150150
"# Minimum bounding box in projected units (meters), in our zone\n",
151151
"\n",
152-
"\n",
153152
"print(satdat.bounds)"
154153
]
155154
},
@@ -265,7 +264,10 @@
265264
"source": [
266265
"# PlanetScope 3-band band order: BGR\n",
267266
"\n",
268-
"blue, green, red = satdat.read()"
267+
"with rasterio.open(image_file) as src:\n",
268+
" blue = src.read(1)\n",
269+
" green = src.read(2)\n",
270+
" red = src.read(3)"
269271
]
270272
},
271273
{

0 commit comments

Comments
 (0)