I am attempting to use USGS Landsat 7 Level 2, Collection 2, Tier 1 data to calculate NDVI. My first step is to try to create a cloud-free composite image using ee.Algorithms.Landsat.simpleComposite
// Load a Landsat 7 ImageCollection.
var collection = ee.ImageCollection("LANDSAT/LE07/C02/T1_L2")
.filterDate('2003-06-01', '2003-09-30');
// Create a cloud-free composite with default parameters.
var composite = ee.Algorithms.Landsat.simpleComposite(collection);
// Create a cloud-free composite with custom parameters for
// cloud score threshold and percentile.
var customComposite = ee.Algorithms.Landsat.simpleComposite({
collection: collection,
percentile: 75,
cloudScoreRange: 5
});
Map.addLayer(composite, {bands: ['B4', 'B3', 'B2'], max: 128}, 'TOA composite');
When I try to apply the ee.Algorithms.Landsat.simpleComposite
function to make the composite however, I get an error saying that the image collection band names do not match a Landsat instrument. After examining the data, it looks like this level 2 data has no bands, but instead a list of features which themselves contain the bands. Am I right in this interpretation, and how would I go about compositing this level 2 data for a cloud mask?