我希望将 NDVI 图层作为图像导出到我的 Google Drive。我可以无缝运行代码,但在代码执行后没有任何内容导出到我的驱动器中。这是我的代码:import eeimport ee.mapclientimport datetimeimport ee.batch as batchee.Initialize()roi_lat = 14.82762roi_lon = 101.079659ullat = roi_lat + 0.01ullon = roi_lon - 0.01lrlat = roi_lat - 0.01lrlon = roi_lon + 0.01geometry = ([ullon,ullat], [lrlon, ullat],[lrlon, lrlat],[ullon, lrlat])l8 = ee.ImageCollection('LANDSAT/LC08/C01/T1_TOA')image = ee.Image( (l8.filterBounds(point) .filterDate(datetime.datetime(2018, 1, 1), datetime.datetime(2018, 12, 31)) .sort('CLOUD_COVER') .first() ))def NDVI(image): return image.expression('float(b("B5") - b("B4")) / (b("B5") + b("B4"))')ndvi = l8.map(NDVI).mean()visualization = ndvi.visualize({ 'min': 0, 'max': 1, 'palette': ['FFFFFF', 'CE7E45', 'DF923D', 'F1B555', 'FCD163', '99B718', '74A901', '66A000', '529400', '3E8601', '207401', '056201', '004C00', '023B01', '012E01', '011D01', '011301']})task_config = { 'description': 'NDVI', 'scale': 30, 'region':geometry}print("Starting to create a image")out = ee.batch.Export.image(visualization,'l8_ndvi', task_config)process = batch.Task.start(out)print("Process sent to cloud")如果有人有任何知识。请赐教我哪里出错了?
6 回答
宝慕林4294392
TA贡献2021条经验 获得超8个赞
添加回答
举报
0/150
提交
取消