Google Earth Engine波段值为空/“无”

时间:2018-12-29 06:46:01

标签: python google-earth-engine

我正在从事一个项目,其中包括创建随时间推移的NDVI值的时间序列分析(以及使用ndvi蒙版获取ndvi值/图像)。我决定在python中使用google Earth引擎api,并且在使用受支持的Google Cloud Datalab(Jupyter Notebook)。

当我尝试从集合区域中检索波段值时,我得到的值是'None'(如下代码片段所示)。但是,有些坐标给出有效的波段值,而另一些坐标(大多数)给出值“无”。我很困惑,因为我要过滤的日期范围很大(1年),并且我得到的是带有不同坐标和时间戳的真实图像,但是它们的波段值都用“无”填充。

我的问题是:为什么某些坐标给出有效的波段值,而其他坐标却没有?另外,如何确保我选择的一组坐标具有波段值?

(我没有放置依赖项代码段来节省空间,但是如果需要可以添加它。我没有收到任何错误)。

# Set start and end date
startTime = datetime.datetime(2014, 1, 2)
endTime = datetime.datetime(2017, 12, 2)

# Create image collection
collection = ee.ImageCollection('LANDSAT/LC08/C01/T1_SR').filterDate(startTime, endTime).limit(2500)
point = {'type':'Point', 'coordinates':[32.9661871, -117.1794014]};
#Retrieve information over image collection
info = collection.getRegion(point,500).getInfo()
pp.pprint(info)

这将导致: [[u'id',   你的经度   你的纬度   你的时间,   u'B1',   u'B2',   u'B3',   u'B4',   u'B5',   u'B6',   u'B7',   u'B10',   u'B11',   u'sr_aerosol',   u'pixel_qa',   u'radsat_qa'],  [u'LC08_001004_20140524',   32.96592513897614,   -117.17849144876068,   1400940473520.0,   没有,   没有,   没有,   没有,   没有,   没有,   没有,   没有,   没有,   没有,   没有,   没有],  [u'LC08_001004_20140609',   32.96592513897614,   -117.17849144876068,   1402322883990.0,   没有,   没有,   没有,   没有,   没有,   没有,   没有,   没有,   没有,   没有,   没有,   无],+ 2500个类似元素...

0 个答案:

没有答案