Create a map and a label
from ipywidgets import widgets
map = Map()
label = widgets.Label(layout=widgets.Layout(width='100%', max_width='1000px'))
widgets.VBox([map, label])
NDVI collection is created. From the original data (1998 to 2013) the first two months of 2000 are selected
Then a processing element is derived from the collection and displayed on the map, activating the identify marker to query the pixel values and output them to the label
coll = inter.ImageCollection("NDVI")
coll = coll.filterOnDate(2000,1,1,2001,7,28)
p = coll.process().bands()
map.clear()
tlayer = map.addLayer(p.toLayer())
mark = inter.identify(map,p,label)
A temporal slider with play button can be created from the collection and NVDI data can be displayed using a custom legend
def getprocessing(collection):
p = collection.process()
colors = ["Red", "Orange", "Yellow", "Green", "#005500"]
p.colorCustom(colors)
return p
inter.temporalSliderAnimate(coll,map,getprocessing,2000)