I was trying to generate to spectral chart for 'VV','VH','angle' using Google Earth Engine. But I am getting the error
Error generating chart: Remote Request too large
I was using the following code:
var test1 = data
.filterDate('2017-06-16', '2017-08-30')
.select('VV','VH','angle')
.filterBounds(boundary);
var stack = function(collection)
{
var bond = boundary
var first = ee.Image(collection.first()).select([]);
var appendBands = function(image, previous)
{
return ee.Image(previous).addBands(image);
};
return ee.Image(collection.iterate(appendBands, first));
};
var stacked = stack(test1)
var mosaic = ee.ImageCollection(stacked).mosaic()
var clip = mosaic.clip(boundary)
print (stacked,'stacked')
print (clip,'clip')
var bandNames = stacked.bandNames();
print (bandNames)
Map.addLayer(clip)
print (clip,'clip')
var chart = ui.Chart.image.series({
imageCollection: clip,
region: paddy,
reducer: ee.Reducer.mean(),
scale: 10
});
chart.style().set({
position: 'bottom-right',
width: '500px',
height: '300px'
});
Map.add(chart);
What is wrong?
Earth Engine code link https://code.earthengine.google.co.in/82a90af6ef77a68d9e228b8aad76f17a