其他分享
首页 > 其他分享> > 比较landsat ndvi数据集

比较landsat ndvi数据集

作者:互联网

// Load the Landsat 8 raw data, filter by location and date.
var startDate = '2014-06-01'
var endDate = '2014-06-05'
var collection1 = ee.ImageCollection('LANDSAT/LC08/C01/T1_8DAY_NDVI')
.filterDate(startDate, endDate);
print(collection1)
//print(collection)
//Map.addLayer(collection)
// if only one band in the collection, no need do select?
//var colorized = collection1.select('NDVI');
//print(colorized)

var colorizedVis = {
min: 0.0,
max: 1.0,
palette: [
'FFFFFF', 'CE7E45', 'DF923D', 'F1B555', 'FCD163', '99B718', '74A901',
'66A000', '529400', '3E8601', '207401', '056201', '004C00', '023B01',
'012E01', '011D01', '011301'
],
};
Map.addLayer(collection1, colorizedVis, 'Colorized');
Map.centerObject(mygeo,7)

///////////////////////////
var dataset = ee.ImageCollection("LANDSAT/LC08/C01/T1_TOA")
.filterDate(startDate, endDate)
//ee.Geometry.Point(-122.3252, 37.5141)
.filterBounds(mygeo)
print(dataset)
var trueColor432 = dataset.select(['B4', 'B3', 'B2']);
var trueColor432Vis = {
min: 0.0,
max: 0.4,
};

Map.addLayer(trueColor432, trueColor432Vis, 'True Color (432)');

标签:Map,endDate,startDate,landsat,print,collection1,var,ndvi,数据
来源: https://www.cnblogs.com/arcserver/p/16150888.html