Due to the necessity that I have to process the model in specific CRS (EPSG:3006), I try to reproject the ImageCollection after calculating all the vegetation indices I need. I use the code below to reproject that whole imagecollection so that I can continue the further analysis.
var res2L2017c_Veg = s2L2017c_Veg.reduceRegion({
reducer: ee.Reducer.median(),
geometry: ROI,
scale: 10, // meters
crs: 'EPSG:3006', //sweref99 tm
});
print(res2L2017c_Veg)
However, it shows the error:
Dictionary (Error) Image.reduceRegion: Too many pixels in the region. Found 41709676124, but maxPixels allows only 10000000. Ensure that you are not aggregating at a higher resolution than you intended; that is a frequent cause of this error. If not, then you may set the 'maxPixels' argument to a limit suitable for your computation; set 'bestEffort' to true to aggregate at whatever scale results in 'maxPixels' total pixels; or both.
Does it mean that it exceeds the computation affordability of GEE? How should I correct this error?
This is the link to my code: https://code.earthengine.google.com/6a40e656de80a79aa4308c97f313b756
This is the geometry "ROI": https://code.earthengine.google.com/?asset=projects/ee-sweden2023study/assets/ROI