土地利用数据|气象数据|社会经济数据|npp数据|ndvi数据-地理遥感生态网

GEE学习笔记 四十一:飞燕和山竹

GEE学习笔记 四十一:飞燕和山竹
GEE学习笔记 四十一:飞燕和山竹

详细信息

小程序测试,查找台风飞燕和山竹。

var geometry = /* color: #d63000 */ee.Geometry.Point([125.22968749999995, 27.82420959247294]);
//find typhoon
var mod09ga = ee.ImageCollection("MODIS/006/MOD09GA");
var myd09ga = ee.ImageCollection("MODIS/006/MYD09GA");
var modCol = mod09ga.merge(myd09ga);
var start = "2018-9-1";
var end = "2018-10-1";
Map.centerObject(geometry, 3);
var showImage = function(range){
  var col = modCol.filterDate(range.start(), range.end());
  var mosaic = col.mosaic().unitScale(0, 10000);
  var visParams = {bands: ["sur_refl_b01","sur_refl_b04","sur_refl_b03"], min: 0, max:1};
  var layer = ui.Map.Layer(mosaic, visParams, "layer");
  Map.layers().set(0, layer);
};


showImage(ee.DateRange(start, ee.Date(start).advance(1, "day")));
ee.DateRange(start, end).evaluate(function(range) {
  var dateSlider = ui.DateSlider({
    start: range['dates'][0],
    end: range['dates'][1],
    value: start,
    period: 1,
    onChange: showImage,
    style: {
      width: "200px",
      padding: "2px"
    }
  });
  var main_panel = ui.Panel({
    widgets: [dateSlider],
    style: {
      width: "280px",
      padding: "4px"
    }
  });
  ui.root.insert(0, main_panel);
});

 

9.3日,飞燕


9.4日,飞燕

 

9.13日,山竹

 

9.15日,山竹