Statistics on the coverage of a certain satellite image in a certain area.
Taking Shandong Province as an example, statistics on the total coverage of Landsat images in 2021 are as follows:
code
//研究区
var roi = ee.FeatureCollection("users/sihaixiang/shandong").geometry();
Map.centerObject(roi, 7);
Map.addLayer(roi, {color:"black"}, "roi");
//数据集
var l8 = ee.ImageCollection("LANDSAT/LC08/C01/T1_TOA");
var Count = l8.filterDate('2021-1-1','2021-12-31')
.filterBounds(roi)
.select("B1")
.reduce(ee.Reducer.count())
.clip(roi);
var visParams = {
min:0,
max: 80,
palette: ["#28C9EC","#41CFDA","#5FD6C2","#84DFA3","#B4EC78","#D3F457","#F2FC33"]
};
Map.addLayer(Count, visParams, "Count");
exhibit