Exercise 3.2: Creating Mosaics and Composites from ImageCollections
Conditions d’achèvement
Consulter
The default order of the collection is by date. So when you display the collection, it implicitly creates a mosaic with the latest pixels on top. You can call
.mosaic()
on an ImageCollection to create a mosaic image from the pixels
at the top.
We can also create a composite image by applying selection criteria to each pixel from all pixels in the stack. Here we use the median()
function to create a composite where each pixel value is the median of all pixels from the
stack.
Tip: If you need to create a mosaic where the images are in a specific order, you can use the
.sort()
function to sort your collection by a property first.Watch this video:
The code for this exercise is available in this repository under Module3/Exercise2
Modifié le: samedi 10 juillet 2021, 13:29