What I would like to do is iterate through an Imagecollection dataset and process each image.What i would like to do is extract each image compute the NDVI using this:
var image2 = Filtered_Free_image.clip(geometry);
Map.addLayer(image2, {bands:['B4','B3','B2'], min:0, max:1});
var NDVI = image2.expression(
"(NIR - RED) / (NIR + RED)",
{
RED: image2.select("B4"), // RED
NIR: image2.select("B8"), // NIR
BLUE: image2.select("B2") // BLUE
});
and then print this using:
Map.addLayer(NDVI, {min: 0.1, max: 0.8}, "NDVI");
Using this code:
var Filtered_Region = imageCollection.filterBounds(geometry); //Load the dataset
var Filtered_Free_image = Filtered_Region.first();//Take the first image
I am able to take the 1st image from the dataset but I don't know how to proceed. How can I take the 2nd,3rd..etc image using something like this:Filtered_Free_image[2],Filtered_Free_image[3]
?
Should I first convert this to a list? If yes, how?