我正在尝试将JavaScript地球引擎代码翻译为Python。我下面代码的最后一行尝试将结果输出导出到我的Google云端硬盘,但无济于事。代码似乎在我的Linux虚拟机上运行。
... some processing ...
# Export CSV file
ee.batch.Export.table.toDrive(collection=AOI, folder='data_earth_engine', description='lossyear', fileFormat='CSV', selectors=props)
答案 0 :(得分:1)
这对我有用。它启动了任务并将结果保存在我的Google云端硬盘上。
mytask = ee.batch.Export.table.toDrive(collection=AOI, folder='data_earth_engine', description='lossyear', fileFormat='CSV', selectors=props)
ee.batch.data.startProcessing(mytask.id, mytask.config)