创建区域GIF
本文分享如何创建澳大利亚区域NDVI变化GIF缩略图
//创建包含澳大利亚区域的矩形
var rect = ee.Geometry.Rectangle({
coords: [[110, -44], [155, -10]],
geodesic: false
});
Map.addLayer(rect);
Map.centerObject(rect, 3);
// 选择MODSI的NDVI影像
var collection = ee.ImageCollection("MODIS/006/MOD13Q1")
.filterDate('2018-01-01', '2019-01-01')
.select('NDVI');
// Add the first image to the map, just as a preview.
var im = ee.Image(collection.first());
Map.addLayer(im, {}, "first image");
// 设置可视化参数
var args = {
crs: 'EPSG:3857', // Maps Mercator
dimensions: '300',
region: rect,
min: -2000,
max: 10000,
palette: 'black, blanchedalmond, green, green',
framesPerSecond: 12,
};
// 添加一个缩略图,选择数据集参数
var thumb = ui.Thumbnail({
image: collection,
params: args,
style: {
position: 'bottom-right',
width: '320px'
}});
Map.add(thumb);
代码运行结果