I've written below code in Google Earth Engine for carbon monthly product from sentinel-5 but when I click on the run button for save in Google drive, it shows error. How can I solve this problem?

Invalid value at 'max_pixels.value' (TYPE_INT64), "10000000000000000000"

enter image description here

code link: https://code.earthengine.google.com/fdfa4d5b14c4b64d84da667eba7c2631


var carbon = ee.ImageCollection('COPERNICUS/S5P/NRTI/L3_CO')

  var thr = img.lt(10)
  var mask = img.updateMask(thr);

  return mask.clip(table)

var monthly_map = function(collection, start, count, interval, units){

  var sequence = ee.List.sequence(0,ee.Number(count).subtract(1));
  var original_date = ee.Date(start);
  return ee.ImageCollection(sequence.map(function(i){

    var start_date = original_date.advance(ee.Number(interval).multiply(i),units);
    var end_date = original_date.advance(ee.Number(interval).multiply(ee.Number(i).add(1)),units);

    return collection.filterDate(start_date,end_date).median()

var carbon_product = monthly_map(carbon,'2018-11-22',12,1,'month');


var carbon_stack = carbon_product.toBands();


  image: carbon_stack,
  description: 'carbon',
  scale: 1000,
  region: table,
  crs: 'EPSG:4326',
  maxPixels: 1e19

1 Answer 1


In my experience, I've found that the maximum value allowed for the maxPixels parameter is 1e13. Try using it instead of 1e19.


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.