GEE下载Landsat数据
程序员文章站
2022-07-13 07:57:40
...
var roi = ee.FeatureCollection("users/ChenLK/Beijing");
var batch = require('users/fitoprincipe/geetools:batch')//下载所需的调用接口
var collection = ee.ImageCollection("LANDSAT/LC08/C01/T1_SR")//原始影像LANDSAT/LC08/C01/T1,按需求选择影像源
.filterDate('2020-3-1', '2020-6-29')
.filterBounds(roi)
.filter(ee.Filter.lte('CLOUD_COVER',5))//云量筛选
.sort('CLOUD_COVER')//筛选后再按云量排序
print(collection)
Map.centerObject(roi, 5);
Map.addLayer(collection,{min: 0, max: 3500, bands: ['B4', 'B3', 'B2']},'cf_img')
Map.addLayer(roi.style({color: "red",fillColor:'00000000',width:1}),{}, "roi");
// COLLECTION导出
batch.Download.ImageCollection.toDrive(collection,"result", {
scale: 30,
region: roi, //研究区域
maxPixels:34e10, //此处值设置大一些,防止溢出
type:"int16" })
上一篇: 递归算法算和