39 inspector tool
Uncomment the following line to install leafmap if needed.
In [1]:
Copied!
# !pip install leafmap
# !pip install leafmap
In [2]:
Copied!
import leafmap
import leafmap
Create an interactive map.
In [3]:
Copied!
m = leafmap.Map()
m = leafmap.Map()
Add Cloud Optimized GeoTIFF (COG) from Planetary Computer.
In [4]:
Copied!
collection = "landsat-8-c2-l2"
item = "LC08_L2SP_047027_20201204_02_T1"
collection = "landsat-8-c2-l2"
item = "LC08_L2SP_047027_20201204_02_T1"
In [5]:
Copied!
m.add_stac_layer(
collection=collection,
item=item,
assets="SR_B7,SR_B5,SR_B4",
name="Landsat Band-754",
)
m.add_stac_layer(
collection=collection,
item=item,
assets="SR_B7,SR_B5,SR_B4",
name="Landsat Band-754",
)
In [6]:
Copied!
m.add_stac_layer(
collection=collection,
item=item,
assets="SR_B5,SR_B4,SR_B3",
name="Landsat Band-543",
)
m.add_stac_layer(
collection=collection,
item=item,
assets="SR_B5,SR_B4,SR_B3",
name="Landsat Band-543",
)
In [7]:
Copied!
m
m
Out[7]: