Google Earth Engine(GEE)实例代码学习二十一——创建GIF缩略图

创建区域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);

代码运行结果
在这里插入图片描述

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值