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

Your task after the exercise

Modify the script of exercise 3.2 in such a way that:

  • it uses the location of your own area of interest
  • it shows the band combination R = NIR, G = RED, B = GREEN



Ultime modifiche: lunedì, 19 luglio 2021, 15:39