GEE数据导出注意事项
一些设置:
- region: roi.geometry().bounds()
- crs: "EPSG:4326"
- maxPixels: 1e13
var gldas = ee.ImageCollection("NASA/GLDAS/V021/NOAH/G025/T3H"); //数据选择
var fCol = ee.FeatureCollection("users/xxx/province");
var sCol = fCol.filter(ee.Filter.eq("PINYIN_NAM", "Beijing")); //选出北京市边界矢量
var tem = gldas.filterDate("2018-3-1", "2018-4-1")
.select("Tair_f_inst")
.first();
Export.image.toDrive({
image: tem.clip(sCol),
description: "xxx",
folder: "xxxx",
//fileNamePrefix: "xxxx", //名字前缀
region: sCol.geometry().bounds(), //设置范围
crs: "EPSG:4326", //设置投影方式
crsTransform: [0.25,0,-180,0,-0.25,90], //0.25为分辨率
maxPixels: 1e13 //设置最大像素值
});
将影像集合中的影像导出为视频
var l8 = ee.ImageCollection("LANDSAT/LC08/C01/T1_RT_TOA");
var selectCol = l8.filterBounds(roi)
.filterDate("2017-1-1", "2017-12-31");
var exportCol = selectCol.map(function(img) {
img = img.clip(roi);
return img.multiply(768).uint8(); //0~255
});
print("image count is: ", exportCol.size());
//导出指定区域的时间序列的rgb影像,帧率12,分辨率30,区域是roi区域
Export.video.toDrive({
collection: exportCol.select(["B3", "B2", "B1"]),
description: "Drive-exportL8Video",
fileNamePrefix: "l8Video",
//folder: "xxx",
scale: 30,
framesPerSecond: 12,
region: roi
});