错误:
加载时序图表过程中出现错误No features contain non-null values of "system:timestart"。这里问题的而关键在于我们不能用镶嵌后合成的影像本质是一景影像,而我们需要的是时序影像,所以在进行时序分析前,请不要进行合成或者镶嵌,以及中位数其它之类的合成。
原始代码:
var geometry =
/* color: #d63000 */
/* shown: false */
/* displayProperties: [
{
"type": "rectangle"
}
] */
ee.Geometry.Polygon(
[[[-72.76542006157098, -38.27560373792244],
[-72.76542006157098, -38.679832345979364],
[-71.86179457328971, -38.679832345979364],
[-71.86179457328971, -38.27560373792244]]], null, false);
// Función para enmascarar nubes de imagen Sentinel 2 a partir de banda QA
function maskS2clouds(image) {
var qa = image.select('QA60');
// Bits 10 y 11 son nubes y cirrus, respectivamente
var cloudBitMask = 1 << 10;
var cirrusBitMask = 1 << 11;
// Ambas indicadores deben ser 0, lo que indica un cielo despejado
var mask = qa.bitwiseAnd(cloudBitMask).eq(0)
.and(qa.bitwiseAnd(cirrusBitMask).eq(0));
return image.updateMask(mask).divide(10000);
}
// Buscar imagen
var img2023 = ee.ImageCollecti