十五
ineDashStyle: [1, 1], pointSize: 1,
}, // Original NDVI
1: {color: \''red\'', lineWidth: 2 }, // Smoothed NDVI
//2: {color: \''yellow\'', lineWidth: 1},
},
})
print(chart)
//生成动画,动画中只能用矩形边界,不可以用矢量边界
var ndviVis = {min:0, max: 0.7, palette: [
\''#fdae61\'',\''#fee08b\'',\''#d9ef8b\'',
\''#a6d96a\'',\''#66bd63\'',\''#1a9850\'',\''#006837\'']
}
var visualizeImage = function(image) {
return image.visualize(ndviVis).clip(geometry)
}
var visCollectionOriginal = ndviCol
.map(visualizeImage)
var visCollectionInterpolated = smoothed
.map(visualizeImage)
var videoArgs = {
dimensions: 400,
region: geometry,
framesPerSecond: 2,
crs: \''EPSG:3857\'',
};
//输出动画
print(\''Original NDVI Images\'', visCollectionOriginal.getVideoThumbURL(videoArgs))
var videoArgs = {
dimensions: 400,
region: geometry,
framesPerSecond: 5,
crs: \''EPSG:3857\'',
};
print(\''SG Filtered NDVI Images\'', visCollectionInterpolated.getVideoThumbURL(videoArgs))