I have created code that takes the reflectance of Landsat8 and clip it with Iraq's borders. the problem is that I can't export it to drive and I get this error messege:

Scale must be greater than 0.010000 m/pixel

I took the scale from the data catalog, but it may be that I haven't fully understood the scale idea/logic.

This is the code I wrote:

// Load a Iraq boundary from a Fusion Table.
var Iraq = ee.FeatureCollection('ft:1tdSwUL7MVpOauSgRzqVTOwdfy17KDbw-1d9omPw')
  .filter(ee.Filter.eq('Country', 'Iraq'));
Map.addLayer(Iraq, {}, 'Iraq from fusion table');  

// Load a Landsat 8 -atmospheric corrected
var collection = ee.ImageCollection('LANDSAT/LC08/C01/T1_SR') 
//surface reflectance
    .filterDate('2015-03-01', '2018-03-31');

// Get the number of images.
var count = collection.size();
print('Count: ', count);

// Sort by a cloud cover property, get the least cloudy image.
//var image = ee.Image(collection.sort('CLOUD_COVER').first());
//print('Least cloudy image: ', image);

// make a composite (mean image) of the images 
var meanImage = collection.mean().clip(Iraq);

//make image for mesopotamia only
var mesopotamia=meanImage.clip(table);

var visParams = {
  bands: ['B4', 'B3', 'B2'],
  min: 0,
  max: 3000,
  gamma: 1.4,


  // Export the image, specifying scale and region.
  image: meanImage,
  description: 'IraqLandsat8',
  region: Iraq

  // Export the image, specifying scale and region.
  image: mesopotamia,
  description: 'IraqLandsat8',
  region: table

  • The error message seems direct enough. Exporting even centimeter imagery at tenth millimeter scale increases storage by 10k/pixel. Landsat 8 30m imagery is increased by 90Gb/pixel. How many petabytes of disk do you have, and how many years do your have to download it? – Vince May 13 at 10:54
  • All Landsat 8 band scales are 30m, except for pan band that is 15m, why would you export in less than that? – Rodrigo E. Principe May 13 at 10:56
  • yeah I know it is 30m but I saw in their website that for some reason it is written as the scale so it confused me. Do you know what does this 0/0001 means in the band scale? – Reut May 13 at 12:38
  • Scale, in this case, is pixel resolution, isn't the classical cartographic scale. Change scale: 30, and try again. It should work – aldo_tapia May 13 at 12:51
  • @ReutKeller, as Aldo says, scale means pixel resolution, so you are trying to export the image with a resolution of 1 cm, so each landsat pixel will result in 9 million pixels.. that is too much. – Rodrigo E. Principe May 13 at 13:09

Your Answer

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

Browse other questions tagged or ask your own question.