Skip to content

39 inspector tool

image image image

Uncomment the following line to install leafmap if needed.

1
# !pip install leafmap
1
import leafmap

Create an interactive map.

1
m = leafmap.Map()

Add Cloud Optimized GeoTIFF (COG) from Planetary Computer.

1
2
collection = "landsat-8-c2-l2"
item = "LC08_L2SP_047027_20201204_02_T1"
1
2
3
4
5
6
m.add_stac_layer(
    collection=collection,
    item=item,
    assets="SR_B7,SR_B5,SR_B4",
    name="Landsat Band-754",
)
1
2
3
4
5
6
m.add_stac_layer(
    collection=collection,
    item=item,
    assets="SR_B5,SR_B4,SR_B3",
    name="Landsat Band-543",
)
1
m