前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Google Earth Engine(GEE)——MODIS/061/MOD09GQ数据缺失波段信息(官方引入数据超时)

Google Earth Engine(GEE)——MODIS/061/MOD09GQ数据缺失波段信息(官方引入数据超时)

作者头像
此星光明
发布2024-02-02 13:55:33
1670
发布2024-02-02 13:55:33
举报

问题:

​ 我注意到每日 MODIS 版本 061 (MODIS/061/MOD09GQ) 存在已弃用的数据集没有的问题 (MODIS/061/MOD09GQ)。

在这里,您可以看到两个数据集中可用的第一张图像的日期相同,但是,当尝试加载两个图像时,061 版本找不到波段:

I've noticed that version 061 of daily MODIS (MODIS/061/MOD09GQ) is having problems where the deprecated dataset don't (MODIS/061/MOD09GQ).

Here you can see how the first image available in both datasets is of the same date, but however, when trying to load both images, the 061 version doesn't find bands:

Link: https://code.earthengine.google.com/dd44f9725cad62a3e4173adb10e48e22

Is there any problem with this new version 061?

官方回复

A few recent mosaics are timing out on ingestion. Trying to tune this.

最近的一些马赛克在引入时超时。试图调整这个。

代码:

代码语言:javascript
复制
 var table = ee.Geometry.Polygon([[-123.33565602090923, 36.191180192685735],
  [-118.35884938028423,36.191180192685735],
  [-118.35884938028423,38.52246956396676],
  [-123.33565602090923,38.52246956396676],
  [-123.33565602090923,36.191180192685735]]);
  
var dataset006 = ee.ImageCollection('MODIS/006/MOD09GQ')
    .filterBounds(table); 
var historical006 = dataset006.limit(1, 'system:time_start', false)
var firstImage006 = historical006.first();
print(firstImage006, 'firstImage006');
var doi006 = firstImage006.get('system:time_start');
var dateFirst006 = ee.Date(doi006)
print(dateFirst006)

var dataset061 = ee.ImageCollection('MODIS/061/MOD09GQ')
    .filterBounds(table); 
var historical061 = dataset061.limit(1, 'system:time_start', false)
var firstImage061 = historical061.first();
print(firstImage061, 'firstImage061');
var doi061 = firstImage061.get('system:time_start');
var dateFirst061 = ee.Date(doi061)
print(dateFirst061)


var day1 = dateFirst061 
var day2 = dateFirst061.advance(-1, 'day')


var collection1 = ee.ImageCollection('MODIS/006/MOD09GQ')
                  .filter(ee.Filter.date(day2, day1))
                  .filterBounds(table);

var collection_med1 = collection1.median();
var image1 = collection_med1.clip(table);
var ndvi1 = image1.expression(
    '((NIR - RED) / (NIR + RED))', {
      'NIR': image1.select('sur_refl_b02'),
      'RED': image1.select('sur_refl_b01'),});
Map.addLayer(ndvi1, {min:-0.2, max:1}, 'ndvimask1');

var collection61 = ee.ImageCollection('MODIS/061/MOD09GQ')
                  .filter(ee.Filter.date(day2, day1))
                  .filterBounds(table);

var collection_med61 = collection61.median();
var image61 = collection_med61.clip(table);
var ndvi61 = image61.expression(
    '((NIR - RED) / (NIR + RED))', {
      'NIR': image61.select('sur_refl_b02'),
      'RED': image61.select('sur_refl_b01'),});
Map.addLayer(ndvi61, {min:-0.2, max:1}, 'ndvimask61');
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2024-02-01,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档