0

I am trying to export an image to Google Drive but after the Task is done running I can see multiple images exported to the drive. Shouldn't it export just one image?

The code I'm using is

var pak_boundaries = ee.FeatureCollection("FAO/GAUL/2015/level0")
              .filter(ee.Filter.eq('ADM0_NAME', 'Pakistan'));
              
var landcover_esa =ee.ImageCollection("ESA/WorldCover/v100").first()

var viz_esa = {
 bands: ['Map'],
};

var pak_geometries = pak_boundaries.geometry()
var pak_landcover = landcover_esa.clip(pak_geometries);  

Export.image.toDrive({
 image:pak_landcover,
 description:'pak_landcover_esa_10s',
 scale: 10,
 maxPixels: 23741603435,
 region:pak_geometries
});

This is what my Drive looks like:

Screenshot of my Google Drive

Ideally I want to see just one GeoTIFF image.

1 Answer 1

2

There's a 4GB limit built into the GeoTIFF standard. So large outputs have to be split into pieces smaller than that.

4
  • But the combined size of all these files is less than 500Mb Dec 8, 2021 at 5:21
  • 1
    That's including compression and/or masked pixels. The sizing is done based on the raw number of pixels and shoots for a file size of 1G each. Dec 8, 2021 at 16:09
  • Hey, I've downloaded the files and can see that they have numbers appended to them after the description I picked. For example, I have files named pak_landcover_esa_10s-0000000000-0000000000, pak_landcover_esa_10s-0000000000-0000065536, pak_landcover_esa_10s-0000000000-0000131072 and so on. Would you happen to know what these numbers mean? Dec 9, 2021 at 19:15
  • Those are pixels coordinates of the upper left corner of the tile. Dec 10, 2021 at 13:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.