i am trying to compute the time series graph of the particular location i m getting this error no idea what to do i m using "MODIS/006/MOD11A"

var lst = lstImg.select('LST_Day_1km')
             .filter(ee.Filter.date('2000-01-01', '2019-12-31'))
             .map(function(image){return image.clip(table)})
            .sort('CLOUD COVERAGE',false)
    var lstVis = {
      min: 13000.0,
      max: 16500.0,
      palette: [
        '040274', '040281', '0502a3', '0502b8', '0502ce', '0502e6',
        '0602ff', '235cb1', '307ef3', '269db1', '30c8e2', '32d3ef',
        '3be285', '3ff38f', '86e26f', '3ae237', 'b5e22e', 'd6e21f',
        'fff705', 'ffd611', 'ffb613', 'ff8b13', 'ff6e08', 'ff500d',
        'ff0000', 'de0101', 'c21301', 'a71001', '911003'
    //Map.setCenter(6.746, 46.529, 2);
    print(ui.Chart.image.series(lst.select('LST_Day_1km'), table, ee.Reducer.mean(),30));


Error generating chart: Collection query aborted after accumulating over 5000 elements.

Collection query aborted after accumulating over 5000 elements.

Script link


1 Answer 1


The error is very simple. You are selecting the daily temperature reading, for 19 years.

19*365 = 6935

This is greater than the maximum allowed of 5000.

Reduce your dates to encompass less dates and it should work.

I drew a random polygon on your map, set dates from 2000-2010 and got this chart.


  • I have calculated chart for ndvi and ndwi on same dates that work without problem and i cant change dates as it will cause errors in further analysis so any other option Feb 27, 2020 at 14:21
  • And is possible to calculate same thing with landsat ? Feb 27, 2020 at 14:22
  • Reduce the frequency. For NDVI, it won't change daily, so you could probably take weekly images. this will be 52 per year, so it will reduce considerably your chart data Feb 27, 2020 at 14:26
  • What it i export image and compute chart on Arcgis or qgis ? Feb 27, 2020 at 15:51
  • Or can you tel me how to do that i m beginner to gis Feb 27, 2020 at 16:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.