Does anyone know how can I stack all this collection?
I made my own collection from January Landsat images (L7 and L5) and I would like to stack all the images to check which are the areas with more data (without clouds).
var col = imageCollection
.sort('system:time_start')
.filterBounds(region)
.map(function(image) {
var date = ee.Date(image.get('system:time_start'));
var savi = image.expression(
'(1 + L) * float(nir - red)/ (nir + red + L)',
{
'nir': image.select('B4'),
'red': image.select('B3'),
'L': 0.5
});
var mask = image.select(['cfmask']).neq((1,2,3,4));
return ee.Image(1).addBands(savi).updateMask(mask);
});