79 timeseries
Visualizing time series images interactively with a time slider
Uncomment the following line to install leafmap if needed.
In [1]:
Copied!
# %pip install -U leafmap
# %pip install -U leafmap
In [2]:
Copied!
from leafmap import leafmap
from leafmap import leafmap
Download sample data here.
In [3]:
Copied!
url = "https://open.gishub.org/data/landsat/timeseries.zip"
leafmap.download_file(url)
url = "https://open.gishub.org/data/landsat/timeseries.zip"
leafmap.download_file(url)
Downloading... From: https://open.gishub.org/data/landsat/timeseries.zip To: /home/runner/work/leafmap/leafmap/docs/notebooks/timeseries.zip
0%| | 0.00/27.4M [00:00<?, ?B/s]
100%|██████████| 27.4M/27.4M [00:00<00:00, 281MB/s]
Extracting files...
Out[3]:
'/home/runner/work/leafmap/leafmap/docs/notebooks/timeseries.zip'
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.
In [4]:
Copied!
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
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