Skip to content

79 timeseries

image image image

Visualizing time series images interactively with a time slider

Uncomment the following line to install leafmap if needed.

1
# %pip install -U leafmap
1
from leafmap import leafmap

Download sample data here.

1
2
url = "https://opengeos.org/data/landsat/timeseries.zip"
leafmap.download_file(url)

Visualize time series images interactively with a time slider. You can pass a list of file paths or a string representing a directory to the add_time_slider function.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
m = leafmap.Map()
images = "landsat"
m.add_time_slider(
    images,
    time_interval=0.5,
    position="bottomright",
    band=[1, 2, 3],
    zoom_to_layer=True,
)
m