Select acquisition dates range 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.temporalSliderRange 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 False Color RGB composition is returned by the getprocessing python function.

In this case the slider allows for the selection of a range of acquisition dates

In [ ]:
map = Map(center=[48.6, 1.85], zoom=10)
map
In [ ]:
coll = inter.ImageCollection("S2")
coll = coll.filterOnGeoName("Paris",1).filterOnDate(2016,8,25, 2016,12,31)
coll = coll.filterOn("cloudcover", "<=", 5).filterOn("jrc_filepath", "<>", "")
coll.sort("cloudcover",True)
coll.limit(100)

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

inter.temporalSliderRange(coll,map,getprocessing)

By operating on the slider a range of dates is selected and the corresponding images are displayed on the map

In [ ]: