Cycle over all available acquisition dates for a Sentinel 2 collection¶

This sample notebook presents a temporal slider that can help in displaying all available acquisition dates for a specific Sentinel 2 images collection.
To display the slider (created by using ipyWidgets) a call to the inter.temporalSlider method is needed, that requires as arguments:
1) the collection object;
2) the map where the images have to be displayed;
3) the name of a python function to be used as callback. This function will receive as argument a reference to the collection element and has to return a processing element to be displayed on the map. In this example a True Color RGB composition is returned by the getprocessing python function.

In [ ]:
map = Map(center=[45.81, 8.628], zoom=14)
map
In [ ]:
coll = inter.ImageCollection("S2")
coll = coll.filterOnGeoName("Ispra")
coll = coll.filterOnDate(2016,1,1, 2017,12,31)
coll = coll.filterOn("cloudcover", "<=", 50)
coll = coll.filterOn("jrc_filepath", "<>", "")

def getprocessing(collection):
    return collection.process().bands("B04","B03","B02",1.1).opacity(255)

inter.temporalSlider(coll,map,getprocessing,2000)

By operating on the slider a single acquisition day is selected and the corresponding images are displayed on the map

In [ ]: