Skip to content

Commit 3f55ea0

Browse files
authored
Add band index description to markdown cells (#814)
1 parent c71ead6 commit 3f55ea0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/src/examples/notebooks/Working_with_STAC_simple.ipynb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261
"cell_type": "markdown",
262262
"metadata": {},
263263
"source": [
264-
"Apply Expression between assets"
264+
"Use an expression to calculate a band index (NDVI) based on information contained in multiple assets."
265265
]
266266
},
267267
{
@@ -302,6 +302,13 @@
302302
"m"
303303
]
304304
},
305+
{
306+
"cell_type": "markdown",
307+
"metadata": {},
308+
"source": [
309+
"If you don't use the `asset_as_band=True` option, you need to append the band to the asset name within the expression. For example, `nir` becomes `nir_b1`."
310+
]
311+
},
305312
{
306313
"cell_type": "code",
307314
"execution_count": null,
@@ -313,7 +320,6 @@
313320
" f\"{titiler_endpoint}/stac/WebMercatorQuad/tilejson.json\",\n",
314321
" params = (\n",
315322
" (\"url\", stac_item),\n",
316-
" # if you don't use `asset_as_band=True` option you need to pass the band indexes within the expression\n",
317323
" (\"expression\", \"(nir_b1-red_b1)/(nir_b1+red_b1)\"), # NDVI\n",
318324
" (\"rescale\", \"-1,1\"),\n",
319325
" (\"minzoom\", 8),\n",

0 commit comments

Comments
 (0)