0

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);
  });
  • what do you mean by stack? do you want to see (visualize) all images in the collection? – Rodrigo E. Principe Nov 22 '17 at 23:37
  • An ImageCollection is effectively a stack of images in the spatial as well as temporal dimensions. What is your goal? – Kersten Nov 23 '17 at 8:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.