1

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

6
  • Alternatively, you can download full landsat scenes directly from Google Cloud Storage as GeoTiffs cloud.google.com/storage/docs/public-datasets/landsat Commented Aug 26, 2019 at 16:15
  • Thank you for your suggestion. It really helps a lot. May I ask is there any MODIS cloud storage like this Landsat dataset you mentioned here?
    – Mr_C
    Commented Aug 28, 2019 at 7:14
  • Not at the moment. Here's the full list console.cloud.google.com/marketplace/… Commented Aug 28, 2019 at 11:29
  • Sorry to ask again. I found the DN values of Landsat-8 data downloaded from google cloud storage are different from values which are exported from Google Earth Engine, although they have exactly same name. The former may 10 times bigger than the later, is there any preprocess for Landsat-8 data in Google Earth Engine?
    – Mr_C
    Commented Sep 1, 2019 at 12:02
  • The cloud data says they are L1 processed. The Earth Engine catalog contains various products, including TOA and SR processed data. Commented Sep 1, 2019 at 12:49

1 Answer 1

2

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.

1
  • Thank you for your suggestion, but it seems the export image still exists some problems as I showed in the update of this question.
    – Mr_C
    Commented Aug 28, 2019 at 6:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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