I want to export a strip image in GEE, and the image I want to export looks like:
The export code is:
Export.image.toDrive({
image: img,
description: descp,
scale: 30,
folder: folder,
fileFormat: 'TFRecord',
region: img.geometry(),
formatOptions: {
'patchDimensions': [256, 256],
maxFileSize: 104857600,
compressed: true,
},
skipEmptyTiles: true,
});
However, when I read the exported tfrecord files, I still get a lot of image patches which are full of zero values. So I'm wondering how can I avoid this kind of situation?