我正在使用谷歌的地球引擎API来访问陆地卫星图像。 该程序如下所示。
import ee
ee.Initialize()
加载一张陆地卫星图像并选择三个波段。
landsat = ee.Image('LANDSAT/LC8_L1T_TOA
/LC81230322014135LGN00').select(['B4', 'B3', 'B2']);
创建一个代表出口区域的几何体。
geometry = ee.Geometry.Rectangle([116.2621, 39.8412, 116.4849, 40.01236]);
输出图像,指定比例和区域。
export.image.toDrive({
image: landsat,
description: 'imageToDriveExample',
scale: 30,
region: geometry
it throws the following error.
Traceback (most recent call last):
File "e6.py", line 11, in <module>
export.image.toDrive({
NameError: name 'export' is not defined
请帮助。我无法找到正确的功能来下载图片。