Google Earth Engine(GEE)预处理landsat影像

var geometry = 
    /* color: #0b4a8b */
    /* displayProperties: [
      {
        "type": "rectangle"
      }
    ] */
    ee.Geometry.Polygon(
        [[[77.07373046875, 38.84382273520147],
          [77.07373046875, 35.928922837806645],
          [82.47900390625, 35.928922837806645],
          [82.47900390625, 38.84382273520147]]], null, false),
    sandPer = ee.Image("OpenLandMap/SOL/SOL_SAND-WFRACTION_USDA-3A1A1A_M/v02");
/**
 * Using landsat8 data, extract indexes and study certain geographical phenomena
 * And because of the lack of necessary data, the script cannot run successfully directly
 * 
 * Saibo Li
 * Update 20191119
 * 
 * ------------------------------
 * 1、It is recommended to refer to the algorithm in the script. 
 * The data in the script is test data. 
 * It is recommended not to use the direct running results for other purposes.
 * 
 * 2、Lack of relevant data(trainpoint* and so on)
 */
Map.setOptions("SATELLITE");
Map.centerObject(geometry,5)
Map.addLayer(geometry, {color: "black",optional:1},'geometry');
 
//Landsat8 SR数据去云
function rmCloud(image) {
  var cloudShadowBitMask = (1 << 3);
  var cloudsBitMask = (1 << 5);
  var qa = image.select("pixel_qa");
  var mask = qa.bitwiseAnd(cloudShadowBitMask).eq(0)
                 .and(qa.bitwiseAnd(cloudsBitMask).eq(0));
  return image.updateMask(mask);
}

//缩放
function scaleImage(image) {
  var time_start = image.get("system:time_start");
  image = image.multiply(0.0001);
  image = image.set("system:time_start", time_start);
  return image;
}

//NDVI
function NDVI(image) {
  return image.addBands(
    image.normalizedDifference(["B5", "B4"])
         .rename("NDVI"));
}
var l8Col = ee.ImageCollection("LANDSAT/LC08/C01/T1_SR")
              .filterBounds(geometry)
              .filterDate("2015-02-01", "2015-9-30")
              .filter(ee.Filter.lte("CLOUD_COVER", 50))
              .map(rmCloud)
              .map(scaleImage)
              .map(NDVI);
              
l8Col = l8Col.qualityMosaic("NDVI").clip(geometry)

这里分界线

安利个看美剧背单词,练习听说的工具|美剧词典
在这里插入图片描述
美剧词典是一款短情景形式的英语学习工具。首先呢,颜值是十分高的,界面简洁,配色清新;其次,有才华啊,目前共收录了近10万条字幕数据,10万条短情景和80万条词汇。短情景均为几秒的无字幕原声经典美剧视频片段,不占用多少时间就能让你get到原汁原味的单词含义和用处啦。美剧词典现包括“查询”、“单词本”、“音频"和"我的”四项功能。

发布了13 篇原创文章 · 获赞 5 · 访问量 7738

猜你喜欢

转载自blog.csdn.net/weixin_43123242/article/details/103490685