little helper function to get the job done
// Helper function to convert image collection into stack of image bands
function newCollectionToImage(collection){
var stack = ee.Image(collection.iterate(function(img, prev) {
return ee.Image(prev).addBands(img);
}, ee.Image(1)));
stack = stack.select(ee.List.sequence(1, stack.bandNames().size().subtract(1)));
return stack;
}
i have a doubt in this link
https://onlyknowledged.blogspot.com/2020/12/the-delhi-sultanate.html
How to do it inversely? I mean from an Image with multiple bands to a feature list with all those bands?