GEE错误——加载时序图表过程中出现错误No features contain non-null values of “system:time_start“

在使用Google Earth Engine (GEE) 加载时序图表时遇到'No features contain non-null values of "system:time_start"'错误。错误源于使用了镶嵌或合成操作,导致无法进行时序分析。解决方法是在进行时序分析前,保持原始影像集,用map函数裁剪每一景影像并计算NDVI,同时为每个时段的影像附上NDVI和时间信息,以便绘制图表。
摘要由CSDN通过智能技术生成

错误:

加载时序图表过程中出现错误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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

此星光明

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值