1

[![I am getting this error in my code,I want to analyse time series, Any suggestions how to deal with it?][1]][1][! [][1]][1]

[1]: here is the code link https://code.earthengine.google.com/f81d964229bff9f264c18e17cb0a98ff

here is the asset file https://code.earthengine.google.com/?asset=users/atupelye/Rungwa_dissolved

2
  • Can you share your asset?
    – Jobbo90
    Nov 7, 2019 at 13:31
  • thanks, I have shared the asset
    – atu
    Nov 8, 2019 at 3:12

1 Answer 1

2

Definetly one issue is that your system:time_start property is missing for the Landtrendr Algorithm. When you create a median annual composite it needs to be define, for example as the minimum value inside the annual collection:

// Map over the list of years to generate a composite for each year.
var yearCompList = yearList.map(function(year){
  var yearCol = col.filter(ee.Filter.calendarRange(year, year, 'year'));

   var yearComp = yearCol.reduce(myReducer);
  var imgList = yearCol.aggregate_array('constant');
  var systemStart = yearCol.reduceColumns(ee.Reducer.min(), ['system:time_start']).get('min');
  // Reduce (composite) the images for this year.
  var nBands = yearComp.bandNames().size();
 return yearComp.set({
    'year': year,
    'image_list': imgList,
    'n_bands': nBands,
    'system:time_start': systemStart
  });
});

Can't be for sure though without the asset.

2
  • I have run it, but I am still getting another error, Tile error: Internal error has occured, I wonder if its linked to the previous error
    – atu
    Nov 8, 2019 at 3:45
  • Most likely a scaling error: developers.google.com/earth-engine/debugging
    – Jobbo90
    Nov 8, 2019 at 14:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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