比较landsat ndvi数据集

2022/4/15 23:16:25

本文主要是介绍比较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)');



这篇关于比较landsat ndvi数据集的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程