I want to export a Sentinel-2 image from February (a mosaic). I got an error indicating request payload size exceeds the limit. I played around with scale and maxpixel, but the error kept coming. I attached related screenshots.
ROI: https://code.earthengine.google.com/?asset=projects/ee-israthesis/assets/bati_akdeniz_havzasi
//Map.addLayer(roi_simp);
//Map.addLayer(bah2)
//// Sentinel-2 Images ////
//cloud maks//
function maskS2clouds(image) {
var qa = image.select('QA60');
var cloudBitMask = 1 << 10;
var cirrusBitMask = 1 << 11;
var mask = qa.bitwiseAnd(cloudBitMask).eq(0)
.and(qa.bitwiseAnd(cirrusBitMask).eq(0));
return image.updateMask(mask).divide(10000);
}
//mosaic per month//
var febr = ee.ImageCollection('COPERNICUS/S2_SR_HARMONIZED')
.filterBounds(roi)
.filterDate('2024-02-01', '2024-02-28')
.filterMetadata('CLOUDY_PIXEL_PERCENTAGE', 'less_than', 10)
.select(['B2', 'B3', 'B4', 'B5', 'B6', 'B7', 'B8', 'B8A', 'B11', 'B12','QA60'])
.map(maskS2clouds)
.median();
Export.image.toDrive({
image: febr,
region: roi,
description: 'febr',
scale: 10,
maxPixels: 1e13});
!!I might found the answer: First of all, my ROI was a feature collection, ending up too many vertices. I simply draw a geometry covering my ROI on GEE geometry tool. Then I run the code and it worked. What do you think?



code formatting.