I am trying to sample image and to get scatter plot of its' two bands- NDVI and db from senttinel 1. For some reason, probably because of the size of the shapefile, I get the error:
Error generating chart: Collection query aborted after accumulating over 5000 elements.
Collection query aborted after accumulating over 5000 elements
That's happens after I try to sample my image using this:
// Generate a sample of points within the region
var sample = pairedImage.sampleRegions(geometry, null,3);
I have playes with the last number in the funnction , I started with 50 but then went down to 30,10,5 ,1 and 3, but non of them worked and in all I have gotten the same error. is it possible that it happens because of the size of the image and there is nothing I can do?
Here is a link to my code:
My end goal: to be able to sample this image and create the chart