[GIS] Exporting full Landsat image to GeoTIFF in Google Earth Engine

google-earth-engine

I am trying to get a complete Landsat image in Google Earth Engine, but the export shows some mistakes like this:
enter image description here

I have calculated the total pixel numbers and it is impossible to have such a huge amount of pixels: 7621X7761X4=236586324

enter image description here

The link of code is here:https://code.earthengine.google.com/38c19f74ee68ff44a0c2c22c0231cb87

I am wondering is there any wrong with this export code? And is there any way to output GeoTIFF image in patches like we export images in tfrecord?

Update:

Although I tried to set the maxPiexels to successfully export a Landsat image according to the suggestion from Sean, it still has some problems:
First, the exported data are automatically separated into some files and I do not know how:
enter image description here

Second, when I downloaded all these images and open them in ENVI, the total size of these patches is not correct, and all values are 0.

enter image description here

Best Answer

Not sure why you get such a large number of pixels. I tested your script at found a little over 600 mio pixels. If you set maxPixels parameter of the export to a number large enough to allow the export it should work.

Export.image.toDrive({
  image: study_l1.first().select('B4','B5','B2','B3'),
  description: 'test_landsat',
  scale: 30,
  folder: 'landsat8_sample',
  maxPixels: 6.2e
});

Alternatively export each band individually to further reduce the maxPixels.

Related Question