老问题了,这里做个记录
报错信息:
Error: Export too large: specified 80301082752 pixels (max: 10000000000). Specify higher maxPixels value if you intend to export a large area.
问题分析:
python下的报错代码
task = ee.batch.Export.image.toDrive(
image = image,
description = out_image_base,
folder = FOLDER,
fileNamePrefix = out_image_base,
scale = 100,
fileFormat = 'TFRecord',
maxPixels = 1e10,
crs ='EPSG:4326',
formatOptions = {
'patchDimensions': KERNEL_SHAPE,
'kernelSize': kernel_buffer,
'compressed': True,
'maxFileSize': 314572800
}
)
就是这里的maxPixels
可以更大(注意不是maxFileSize
!),一般最大可以到1e13
,其实平时默认设置到1e13
即可
解决方案:
将maxPixels = 1e10,
换成maxPixels = 1e13,
即可
P.S. 如果还有更大的,可能需要将roi适当调整了(遇到再更新,应该不久就遇到了,祈祷)